Fix up CL.
[official-gcc.git] / gcc / ChangeLog
blob240a17c483cc37f56572cf2c3089c0db90bd60fd
1 2013-11-25  Marek Polacek  <polacek@redhat.com>
3         PR sanitizer/59258
4         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
6 2013-11-25  Richard Biener  <rguenther@suse.de>
8         * tree-dfa.c: Remove unused convert.h include.
10 2013-11-25  Terry Guo  <terry.guo@arm.com>
12         * doc/invoke.texi (-mslow-flash-data): Document new option.
13         * config/arm/arm.opt (mslow-flash-data): New option.
14         * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
15         it.
16         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
17         are disabled.
18         (arm_disable_literal_pool): Declare it.
19         * config/arm/arm.c (arm_disable_literal_pool): New variable.
20         (arm_option_override): Handle new option.
21         (thumb2_legitimate_address_p): Don't allow symbol references when
22         literal pools are disabled.
23         (arm_max_const_double_inline_cost): New function.
24         * config/arm/arm.md (types.md): Include it before ...
25         (use_literal_pool): New attribute.
26         (enabled): Use new attribute.
27         (split pattern): Replace symbol+offset with MOVW/MOVT.
29 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
31         PR bootstrap/59279
32         Revert previous commit.
34 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
36         * jump.c (reset_insn_reg_label_operand_notes): New function,
37         split out from ...
38         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
39         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
40         split out from ...
41         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
42         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
43         expensive CFG cleanup is called for.
44         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
45         (cfg_layout_finalize): Delete dead jump tables before re-building
46         the insns chain.
47         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
48         basic blocks, not before.
49         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
51         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
52         insns chain of a scheduling extended basic block, they cannot appear
53         there in cfglayout mode.
55 2013-11-24  Tobias Burnus  <burnus@net-b.de>
57         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
59 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
61         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
62         for little endian.
64 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
66         * graphite-sese-to-poly.c: Don't include extra "expr.h".
68 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
70         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
72 2013-11-23  David Edelson  <dje.gcc@gmail.com>
73             Andrew Dixie  <andrewd@gentrack.com>
75         PR target/33704
76         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
77         (COLLECT_SHARED_FINI_FUNC): Define.
79         * collect2.c (aix_shared_initname): Declare.
80         (aix_shared_fininame): Declare.
81         (symkind): Add SYM_AIXI and SYM_AIXD.
82         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
83         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
84         (aixlazy_flag): Parse.
85         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
86         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
88 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
90         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
91         (rs6000_xcoff_select_section): Place decls with stricter alignment
92         into named sections.
93         (rs6000_xcoff_unique_section): Allow unique sections for
94         uninitialized data with strict alignment.
96 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
98         PR tree-optimization/59154
99         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
100         rhs1 of a cast and new_op is invariant, fold_convert it.
101         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
102         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
104 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
106         PR target/56788
107         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
108         Declare as MULTI_ARG_1_SF instruction.
109         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
110         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
111         from *xop_vmfrcz_<mode>.
112         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
113         to merge scalar result with __A.
114         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
115         result with __A.
117 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
119         * gimplify.h (recalculate_side_effects): Delete.
120         * gimplify.c (recalculate_side_effects): Make static and add comment.
122 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
124         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
125         for the destination of a define_peephole2.  Likewise register_operand
126         rather than arith_reg_operand.  Remove constraints from
127         define_peephole2s.
129 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
131         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
132         Delete.
133         (mn10300_store_multiple_operation_p): Declare.
134         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
135         Rename to...
136         (mn10300_store_multiple_operation_p): ...this and remove mode
137         argument.
138         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
139         Define.
141 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
143         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
144         (pop_multiple_operation): Delete.
145         (analyze_push_multiple_operation): Declare.
146         (analyze_pop_multiple_operation): Declare.
147         * config/bfin/bfin.c (push_multiple_operation): Rename to...
148         (analyze_push_multiple_operation): ...this and remove mode argument.
149         (pop_multiple_operation): Rename to...
150         (analyze_pop_multiple_operation): ...this and remove mode argument.
151         * config/bfin/predicates.md (push_multiple_operation): Define.
152         (pop_multiple_operation): Likewise.
154 2013-11-23  Alan Modra  <amodra@gmail.com>
156         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
158 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
160         PR sanitizer/59061
161         * common.opt (static-liblsan): Add.
162         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
163         Define.
164         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
165         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
166         SANITIZE_RETURN.
167         * opts.c (common_handle_option): Handle -fsanitize=leak.
168         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
169         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
170         (LIBUBSAN_EARLY_SPEC): Remove.
171         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
172         (SANITIZER_SPEC): Add -fsanitize=leak handling.
173         (sanitize_spec_function): Handle %sanitize(leak).
174         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
176 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
177             Jakub Jelinek  <jakub@redhat.com>
179         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
180         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
181         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
182         (ipa_modify_formal_parameters): Adjust caller.  Remove
183         synth_parm_prefix argument.  Use operator enum instead of bit fields.
184         Add assert for properly handling vector of references.  Handle
185         creating brand new parameters.
186         (ipa_modify_call_arguments): Use operator enum instead of bit
187         fields.
188         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
189         used.
190         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
191         New functions.
192         (ipa_dump_param_adjustments): Rename reduction to new_decl.
193         Use operator enum instead of bit fields.
194         * ipa-prop.h (enum ipa_parm_op): New.
195         (struct ipa_parm_adjustment): New field op.  Rename reduction
196         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
197         and copy_param.
198         (ipa_modify_formal_parameters): Remove last argument.
199         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
200         ipa_get_adjustment_candidate): New prototypes.
201         * tree-sra.c (turn_representatives_into_adjustments): Use operator
202         enum.  Set arg_prefix.
203         (get_adjustment_for_base): Use operator enum.
204         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
205         ipa-prop.c.
206         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
207         (ipa_sra_modify_function_body): Same.  No longer static.
208         (sra_ipa_reset_debug_stmts): Use operator enum.
209         (modify_function): Do not pass prefix argument.
211 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
213         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
214         (ubsan_pass): Ignore clobber stmts.
216         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
217         * opts.c (common_handle_option): Add -fsanitize=return.
218         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
219         or it into SANITIZE_UNDEFINED.
221         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
222         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
223         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
224         Don't instrument accesses to VAR_DECLs which are known to fit
225         into their bounds and the vars are known to have shadow bytes
226         indicating allowed access.
227         (asan_dynamic_init_call): New function.
228         (asan_add_global): If vnode->dynamically_initialized,
229         set __has_dynamic_init to 1 instead of 0.
230         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
231         * asan.h (asan_dynamic_init_call): New prototype.
232         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
234 2013-11-22  Martin Jambor  <mjambor@suse.cz>
236         PR rtl-optimization/10474
237         * ira.c (interesting_dest_for_shprep_1): New function.
238         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
239         also check parallels.
241 2013-11-22  Jeff Law  <law@redhat.com>
243         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
244         NULL for RHS, which we used to invalidate equivalences.
245         (record_temporary_equivalences_from_phis): New bitmap arguments
246         and a boolean indicating if we have passed a backedge.  If we
247         have passed a backedge, then set the appropriate bit in the
248         bitmaps for the SRC & DEST of PHIs creating equivalences.
249         (invalidate_equivalences, dummy_simplify): New functions.
250         (cond_arg_set_in_b): Remove.
251         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
252         arguments and a boolean indicating if we have passed a backedge.
253         If we have passed a backedge, then perform invalidations as needed.
254         (thread_around_empty_blocks): If we have seen a backedge, then
255         use the dummy simplify routine.
256         (thread_through_normal_block): Likewise.  Pass bitmaps and
257         backedge status to children.  Do not pessimize so much when
258         traversing backedges in the CFG.
259         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
260         If we have seen a backedge, then use the dummy simplify routine.
261         Do not pessimize so much when traversing backedges.
263 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
265         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
266         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
268 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
270         * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
271         PTA_PCLMUL and PTA_RDRND for Silvermont.
272         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
273         for Silvermont.
275         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
277 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
279         * hooks.h (hook_uint_mode_0): Add Prototype.
280         * hooks.c (hook_uint_mode_0): New default function.
281         * target.def (atomic_align_for_mode): New target hook.
282         * tree.c (build_atomic_base): Add alignment override parameter.
283         (build_common_tree_nodes): Use atomic alignment override.
284         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
285         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
287 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
289         * gimple.h: Remove all includes.
290         (recalculate_side_effects): Move prototype to gimplify.h.
291         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
292         * gengtype.c (open_base_files): Add gimple.h include list.
293         * gimplify.h (recalculate_side_effects): Relocate prototype here.
294         * gimple.c: Adjust include list.
295         (recalculate_side_effects): Move to gimplify.c.
296         * gimplify.c: Adjust include list.
297         (recalculate_side_effects): Relocate from gimple.c.
298         * alias.c: Add required include files removed from gimple.h.
299         * asan.c: Likewise.
300         * builtins.c: Likewise.
301         * calls.c: Likewise.
302         * cfgexpand.c: Likewise.
303         * cfgloop.c: Likewise.
304         * cfgloopmanip.c: Likewise.
305         * cgraphbuild.c: Likewise.
306         * cgraph.c: Likewise.
307         * cgraphclones.c: Likewise.
308         * cgraphunit.c: Likewise.
309         * cilk-common.c: Likewise.
310         * data-streamer.c: Likewise.
311         * data-streamer-in.c: Likewise.
312         * data-streamer-out.c: Likewise.
313         * dse.c: Likewise.
314         * dwarf2out.c: Likewise.
315         * emit-rtl.c: Likewise.
316         * except.c: Likewise.
317         * expr.c: Likewise.
318         * fold-const.c: Likewise.
319         * function.c: Likewise.
320         * gimple-builder.c: Likewise.
321         * gimple-expr.c: Likewise.
322         * gimple-fold.c: Likewise.
323         * gimple-iterator.c: Likewise.
324         * gimple-low.c: Likewise.
325         * gimple-pretty-print.c: Likewise.
326         * gimple-ssa-isolate-paths.c: Likewise.
327         * gimple-ssa-strength-reduction.c: Likewise.
328         * gimple-streamer-in.c: Likewise.
329         * gimple-streamer-out.c: Likewise.
330         * gimple-walk.c: Likewise.
331         * gimplify-me.c: Likewise.
332         * graphite-blocking.c: Likewise.
333         * graphite.c: Likewise.
334         * graphite-clast-to-gimple.c: Likewise.
335         * graphite-dependences.c: Likewise.
336         * graphite-interchange.c: Likewise.
337         * graphite-optimize-isl.c: Likewise.
338         * graphite-poly.c: Likewise.
339         * graphite-scop-detection.c: Likewise.
340         * graphite-sese-to-poly.c: Likewise.
341         * internal-fn.c: Likewise.
342         * ipa.c: Likewise.
343         * ipa-cp.c: Likewise.
344         * ipa-devirt.c: Likewise.
345         * ipa-inline-analysis.c: Likewise.
346         * ipa-inline.c: Likewise.
347         * ipa-profile.c: Likewise.
348         * ipa-prop.c: Likewise.
349         * ipa-pure-const.c: Likewise.
350         * ipa-reference.c: Likewise.
351         * ipa-split.c: Likewise.
352         * ipa-utils.c: Likewise.
353         * langhooks.c: Likewise.
354         * lto-cgraph.c: Likewise.
355         * lto-compress.c: Likewise.
356         * lto-opts.c: Likewise.
357         * lto-section-in.c: Likewise.
358         * lto-section-out.c: Likewise.
359         * lto-streamer.c: Likewise.
360         * lto-streamer-in.c: Likewise.
361         * lto-streamer-out.c: Likewise.
362         * omp-low.c: Likewise.
363         * opts-global.c: Likewise.
364         * passes.c: Likewise.
365         * predict.c: Likewise.
366         * profile.c: Likewise.
367         * sese.c: Likewise.
368         * stmt.c: Likewise.
369         * stor-layout.c: Likewise.
370         * symtab.c: Likewise.
371         * targhooks.c: Likewise.
372         * toplev.c: Likewise.
373         * tracer.c: Likewise.
374         * trans-mem.c: Likewise.
375         * tree-affine.c: Likewise.
376         * tree.c: Likewise.
377         * tree-call-cdce.c: Likewise.
378         * tree-cfg.c: Likewise.
379         * tree-cfgcleanup.c: Likewise.
380         * tree-chrec.c: Likewise.
381         * tree-complex.c: Likewise.
382         * tree-data-ref.c: Likewise.
383         * tree-dfa.c: Likewise.
384         * tree-eh.c: Likewise.
385         * tree-emutls.c: Likewise.
386         * tree-if-conv.c: Likewise.
387         * tree-inline.c: Likewise.
388         * tree-into-ssa.c: Likewise.
389         * tree-loop-distribution.c: Likewise.
390         * tree-nested.c: Likewise.
391         * tree-nrv.c: Likewise.
392         * tree-object-size.c: Likewise.
393         * tree-outof-ssa.c: Likewise.
394         * tree-parloops.c: Likewise.
395         * tree-phinodes.c: Likewise.
396         * tree-predcom.c: Likewise.
397         * tree-pretty-print.c: Likewise.
398         * tree-profile.c: Likewise.
399         * tree-scalar-evolution.c: Likewise.
400         * tree-sra.c: Likewise.
401         * tree-ssa-address.c: Likewise.
402         * tree-ssa-alias.c: Likewise.
403         * tree-ssa.c: Likewise.
404         * tree-ssa-ccp.c: Likewise.
405         * tree-ssa-coalesce.c: Likewise.
406         * tree-ssa-copy.c: Likewise.
407         * tree-ssa-copyrename.c: Likewise.
408         * tree-ssa-dce.c: Likewise.
409         * tree-ssa-dom.c: Likewise.
410         * tree-ssa-dse.c: Likewise.
411         * tree-ssa-forwprop.c: Likewise.
412         * tree-ssa-ifcombine.c: Likewise.
413         * tree-ssa-live.c: Likewise.
414         * tree-ssa-loop.c: Likewise.
415         * tree-ssa-loop-ch.c: Likewise.
416         * tree-ssa-loop-im.c: Likewise.
417         * tree-ssa-loop-ivcanon.c: Likewise.
418         * tree-ssa-loop-ivopts.c: Likewise.
419         * tree-ssa-loop-manip.c: Likewise.
420         * tree-ssa-loop-niter.c: Likewise.
421         * tree-ssa-loop-prefetch.c: Likewise.
422         * tree-ssa-loop-unswitch.c: Likewise.
423         * tree-ssa-math-opts.c: Likewise.
424         * tree-ssanames.c: Likewise.
425         * tree-ssa-operands.c: Likewise.
426         * tree-ssa-phiopt.c: Likewise.
427         * tree-ssa-phiprop.c: Likewise.
428         * tree-ssa-pre.c: Likewise.
429         * tree-ssa-propagate.c: Likewise.
430         * tree-ssa-reassoc.c: Likewise.
431         * tree-ssa-sccvn.c: Likewise.
432         * tree-ssa-sink.c: Likewise.
433         * tree-ssa-strlen.c: Likewise.
434         * tree-ssa-structalias.c: Likewise.
435         * tree-ssa-tail-merge.c: Likewise.
436         * tree-ssa-ter.c: Likewise.
437         * tree-ssa-threadedge.c: Likewise.
438         * tree-ssa-threadupdate.c: Likewise.
439         * tree-ssa-uncprop.c: Likewise.
440         * tree-ssa-uninit.c: Likewise.
441         * tree-stdarg.c: Likewise.
442         * tree-streamer.c: Likewise.
443         * tree-streamer-in.c: Likewise.
444         * tree-streamer-out.c: Likewise.
445         * tree-switch-conversion.c: Likewise.
446         * tree-tailcall.c: Likewise.
447         * tree-vect-data-refs.c: Likewise.
448         * tree-vect-generic.c: Likewise.
449         * tree-vect-loop.c: Likewise.
450         * tree-vect-loop-manip.c: Likewise.
451         * tree-vectorizer.c: Likewise.
452         * tree-vect-patterns.c: Likewise.
453         * tree-vect-slp.c: Likewise.
454         * tree-vect-stmts.c: Likewise.
455         * tree-vrp.c: Likewise.
456         * tsan.c: Likewise.
457         * ubsan.c: Likewise.
458         * value-prof.c: Likewise.
459         * varpool.c: Likewise.
460         * var-tracking.c: Likewise.
461         * vtable-verify.c: Likewise.
462         * config/darwin.c: Likewise.
463         * config/aarch64/aarch64-builtins.c: Likewise.
464         * config/aarch64/aarch64.c: Likewise.
465         * config/alpha/alpha.c: Likewise.
466         * config/i386/i386.c: Likewise.
467         * config/i386/winnt.c: Likewise.
468         * config/ia64/ia64.c: Likewise.
469         * config/m32c/m32c.c: Likewise.
470         * config/mep/mep.c: Likewise.
471         * config/mips/mips.c: Likewise.
472         * config/rs6000/rs6000.c: Likewise.
473         * config/s390/s390.c: Likewise.
474         * config/sh/sh.c: Likewise.
475         * config/sparc/sparc.c: Likewise.
476         * config/spu/spu.c: Likewise.
477         * config/stormy16/stormy16.c: Likewise.
478         * config/tilegx/tilegx.c: Likewise.
479         * config/tilepro/tilepro.c: Likewise.
480         * config/xtensa/xtensa.c: Likewise.
482 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
484         PR target/59216
485         * arm.md (negdi_extendsidi): Fix invalid split.
487 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
489         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
490         (vmov_n_f64): Likewise.
491         (vmov_n_p8): Likewise.
492         (vmov_n_p16): Likewise.
493         (vmov_n_s8): Likewise.
494         (vmov_n_s16): Likewise.
495         (vmov_n_s32): Likewise.
496         (vmov_n_s64): Likewise.
497         (vmov_n_u8): Likewise.
498         (vmov_n_u16): Likewise.
499         (vmov_n_u32): Likewise.
500         (vmov_n_u64): Likewise.
501         (vmovq_n_f32): Likewise.
502         (vmovq_n_f64): Likewise.
503         (vmovq_n_p8): Likewise.
504         (vmovq_n_p16): Likewise.
505         (vmovq_n_s8): Likewise.
506         (vmovq_n_s16): Likewise.
507         (vmovq_n_s32): Likewise.
508         (vmovq_n_s64): Likewise.
509         (vmovq_n_u8): Likewise.
510         (vmovq_n_u16): Likewise.
511         (vmovq_n_u32): Likewise.
512         (vmovq_n_u64): Likewise.
514 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
516         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
517         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
518         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
519         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
520         and also change to float UNSPEC.
521         (reduc_maxmin_uns>_<mode>): Remove V2DI.
522         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
523         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
524         result access for big-endian.
525         (__LANE0): New macro used to fix up lane access of 'across-lanes'
526         intrinsics for big-endian.
527         * config/aarch64/iterators.md (VDQV): Add V2DI.
528         (VDQV_S): New.
529         (vp): New mode attribute.
531 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
533         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
534         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
535         big-endian.
537 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
539         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
540         for big-endian element order.
541         (aarch64_simd_vec_setv2di): Likewise.
542         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
543         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
544         (vec_extract): Expand using aarch64_get_lane.
545         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
547 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
549         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
550         and stores to be ABI compliant.
552 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
554         * input.h (input_line): Remove.
555         (input_filename): Likewise.
556         (in_system_header): Likewise.
557         * tree.h (EXPR_LOC_OR_HERE): Remove.
558         * config/bfin/bfin.c (output_file_start): Remove use of
559         input_filename macro.
560         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
561         * gimplify.c (internal_get_tmp_var): Likewise.
562         EXPR_LOC_OR_HERE macro.
563         (shortcut_cond_expr): Likewise.
564         * tree-diagnostic.c (diagnostic_report_current_function): Remove
565         use of input_filename macro.
566         * tree.c (get_file_function_name): Likewise.
568 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
570         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
572 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
574         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
575         (same sized) elements even if the type of the CONSTRUCTOR has
576         vector mode and target is a REG.
578 2013-11-22  Richard Biener  <rguenther@suse.de>
580         Revert
581         2013-11-21  Richard Biener  <rguenther@suse.de>
583         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
584         nb_iterations_upper_bound by one.
586 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
588         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
589         for Silvermont.
591         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
592         core-avx-i, core-avx2 and slm.
594 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
596         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
598 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
600         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
601         (stzx_24_<mode>): Likewise mra_operand.
603 2013-11-22  Jeff Law  <law@redhat.com>
605         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
606         (thread_block_1): Do not cancel jump threads which go from
607         inside a loop, through the header, then back inside the loop.
608         (bb_ends_with_multiway_branch): New function.
609         (thread_through_all_blocks): Handle threading cases which start
610         in a loop through the loop header to a point in the loop.
612         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
613         jump thread path properly.
615 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
617         * vec.h (auto_vec): New class.
618         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
619         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
620         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
621         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
622         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
623         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
624         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
625         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
626         appropriate instead of vec for local variables.
628 2013-11-21  Teresa Johnson  <tejohnson@google.com>
630         PR target/59233
631         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
632         not understood by old_insns_match_p.
634 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
636         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
637         little endian change.
638         (vec_pack_sfix_trunc_v2df): Likewise.
639         (vec_pack_ufix_trunc_v2df): Likewise.
640         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
641         double checking of endianness.
643 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
645         * tree-vect-generic.c (optimize_vector_constructor): New function.
646         (expand_vector_operations_1): Call it.
648 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
650         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
651         ix86_zero_extend_to_Pmode where appropriate.
652         (ix86_expand_builtin): Ditto.
654 2013-11-21  Cary Coutant  <ccoutant@google.com>
656         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
657         (add_linkage_name): Don't add linkage name for -g1.
658         (decls_for_scope): Process subblocks for -g1.
659         (dwarf2out_source_line): Output line tables for -g1.
660         (dwarf2out_finish): Likewise.
661         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
662         unused scopes for -g1.
663         * opts.c (common_handle_option): Handle -g same as -g2.
664         * doc/invoke.texi: Update description for -g1.
666 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
668         * doc/extend.texi: Document htm builtins.
670 2013-11-21  Jeff Law  <law@redhat.com>
672         PR tree-optimization/59221
673         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
674         temporary equivalences when threading through joiner blocks.
676 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
678         PR rtl-optimization/55950
679         * real.c (real_sqrt): Remove function.
680         * real.h (real_sqrt): Remove prototype.
681         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
682         SQRT using real_sqrt.
684 2013-11-21  Richard Biener  <rguenther@suse.de>
686         PR tree-optimization/59058
687         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
688         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
689         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
690         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
691         (NITERS_KNOWN_P): Fold into ...
692         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
693         (LOOP_VINFO_PEELING_FOR_NITER): Add.
694         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
695         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
696         (vect_do_peeling_for_alignment): Re-use precomputed niter
697         instead of re-emitting it.
698         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
699         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
700         * tree-vect-loop.c (vect_get_loop_niters): Use
701         number_of_latch_executions.
702         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
703         (vect_analyze_loop_form): Simplify.
704         (vect_analyze_loop_operations): Move epilogue peeling code ...
705         (vect_analyze_loop_2): ... here and adjust it to compute
706         LOOP_VINFO_PEELING_FOR_NITER.
707         (vect_estimate_min_profitable_iters): Use
708         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
709         (vect_build_loop_niters): Emit on the preheader.
710         (vect_generate_tmps_on_preheader): Likewise.
711         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
712         of recomputing it.  Adjust.
714 2013-11-21  Richard Biener  <rguenther@suse.de>
716         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
717         LOC_LINE): Remove wrappers and fix all users.
718         (struct _loop_vec_info): Remove loop_line_number member.
719         (LOOP_VINFO_LOC): Remove.
720         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
721         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
722         and LOC_LINE.
724 2013-11-21  Richard Biener  <rguenther@suse.de>
726         * tree-ssa-forwprop.c (simplify_vce): New function.
727         (ssa_forward_propagate_and_combine): Call it.
729 2013-11-21  Richard Biener  <rguenther@suse.de>
731         * tree-vect-loop-manip.c (vect_build_loop_niters,
732         vect_generate_tmps_on_preheader): Move ...
733         * tree-vect-loop.c (vect_build_loop_niters,
734         vect_generate_tmps_on_preheader): ... here and simplify.
735         (vect_transform_loop): Call them here and pass down results
736         to consumers.
737         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
738         Get niter variables from caller.
739         (vect_do_peeling_for_alignment): Likewise.
740         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
741         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
742         Adjust prototypes.
744 2013-11-21  Richard Biener  <rguenther@suse.de>
746         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
747         nb_iterations_upper_bound by one.
749 2013-11-21  Richard Biener  <rguenther@suse.de>
751         PR tree-optimization/59058
752         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
753         (build_size_arg_loc): Apply niter adjustment here.
754         (generate_memset_builtin): Adjust.
755         (generate_memcpy_builtin): Likewise.
756         (classify_partition): Do not use number_of_exit_cond_executions
757         but record whether niter needs to be adjusted.
759 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
761         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
762         could throw.
764 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
766         PR target/53976
767         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
768         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
769         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
770         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
771         sh_optimize_sett_clrt pass.o to extra_objs.
773 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
775         * cfg.c (dump_edge_info): Remove redundant comment.
776         * cfgcleanup.c (outgoing_edges_match): Reword reference to
777         EXIT_BLOCK_PTR in comment.
778         (try_optimize_cfg): Likewise.
779         * cfgrtl.c (last_bb_in_partition): Likewise.
780         * cgraph.c (cgraph_node_cannot_return): Likewise.
781         * function.c (thread_prologue_and_epilogue_insns): Likewise.
782         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
783         * ipa-split.c (consider_split): Likewise.
784         * profile.c (find_spanning_tree): Likewise.
785         * sched-int.h (common_sched_info_def.add_block): Likewise.
786         * dominance.c (calc_dfs_tree_nonrec): Reword references in
787         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
788         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
789         in comments to now removed ENTRY_BLOCK_PTR macro.
790         (tree_forwarder_block_p): Reword reference in comment to
791         EXIT_BLOCK_PTR.
792         * tree-inline.c (copy_cfg_body): Reword references in comments to
793         now removed ENTRY_BLOCK_PTR macro.
794         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
795         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
796         a comma to the comment to clarify the meaning.
798 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
800         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
801         Move to gimplify.c.
802         (free_gimplify_stack): Add prototype.
803         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
804         (struct gimplify_ctx): Relocate here.
805         (gimplify_ctxp): Make static.
806         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
807         list of struct gimplify_ctx.
808         (push_gimplify_context): Add default parameters and allocate a struct
809         from the pool.
810         (pop_gimplify_context): Free a struct back to the pool.
811         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
812         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
813         use a local 'struct gimplify_ctx'.
814         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
815         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
816         Likewise.
817         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
818         lower_omp_ordered, lower_omp_critical, lower_omp_for,
819         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
820         lower_omp_teams, execute_lower_omp): Likewise.
821         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
822         * tree-inline.c (optimize_inline_calls): Likewise.
824 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
826         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
827         (vsx_extract_<mode>): Likewise.
828         (*vsx_extract_<mode>_one_le): New LE variant on
829         *vsx_extract_<mode>_zero.
830         (vsx_extract_v4sf): Adjust for little endian.
832 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
834         PR rtl-optimization/59133
835         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
836         new pseudos.
837         (lra_create_new_reg_with_unique_value): Pass new argument value.
838         (lra_emit_add, lra_emit_move): Ditto.
839         * lra-constraints.c (in_class_p): Add check for move for a new insn.
840         (change_class): Rename to lra_change_class.  Move to lra-int.h.
841         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
842         change_class.
843         (process_addr_reg, process_addr): Ditto.
844         (curr_insn_transform): Ditto.  Add check on old pseudo for
845         optional reload.
846         * lra-int.h (lra_get_regno_hard_regno): Move below.
847         (lra_change_class): Renamed change_class from lra.c.
849 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
851         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
852         the children of a NULL pointer.
854 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
856         * lra.c (lra): Set lra_in_progress before check_rtl call.
857         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
858         adding clobber regs when LRA is running.
860 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
862         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
863         restriction for ISA_MIPS32R2.
864         (ISA_HAS_LXC1_SXC1): New macro.
865         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
866         (ISA_HAS_NMADD4_NMSUB4): Likewise.
867         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
868         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
869         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
870         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
871         (*<ANYF:storex>_<P:mode>): Likewise.
873 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
875         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
876         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
877         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
878         * config/mips/mips.md (recip_condition): Remove mode attribute.
879         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
880         <recip_condition>.
881         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
883 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
885         PR target/59207
886         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
887         Make sure neg2_ovf is set before being used.
889 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
891         * plugin.def: Add comment about register_callback and
892         invoke_plugin_callbacks_full.
894         * plugin.c (register_callback, invoke_plugin_callbacks_full):
895         Handle PLUGIN_INCLUDE_FILE event.
897 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
899         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
900         allow subregs of TDmode in FPRs of smaller size in little-endian.
901         (rs6000_split_multireg_move): When splitting an access to TDmode
902         in FPRs, do not use simplify_gen_subreg.
904 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
906         PR middle-end/21718
907         * real.c: Remove comment about decimal string conversion and
908         rounding errors.
909         (real_from_string): Use MPFR to convert nonzero decimal constant
910         to REAL_VALUE_TYPE.
912 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
914         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
915         endianness of the D registers for the legacy encodings.
917 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
919         PR rtl-optimization/54300
920         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
921         outputs in a single-set are killed from the value chains.
923 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
925         * cgraph.h (varpool_node): Add need_bounds_init field.
926         * lto-cgraph.c (lto_output_varpool_node): Output
927         need_bounds_init value.
928         (input_varpool_node): Read need_bounds_init value.
929         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
931 2013-11-20  Jan Hubicka  <jh@suse.cz>
933         * opts.c (finish_options): Imply -ffat-lto-objects with
934         -fno-use-linker-plugin.
935         * common.opt (fuse-linker-plugin): Add var.
937 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
939         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
940         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
941         (gen_type_die_with_usage): Skip pointer bounds.
942         (dwarf2out_global_decl): Likewise.
944 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
946         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
947         from all insns.
949 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
951         PR target/57756
952         * config/i386/i386.c (ix86_option_override_internal): Add missed
953         argument prefix for 'ix86_fpmath'.
954         * config/i386/ssemath.h: Add missed definition of
955         TARGET_FPMATH_DEFAULT_P macros.
957 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
958             Mike Stump  <mikestump@comcast.net>
959             Richard Sandiford  <rdsandiford@googlemail.com>
961         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
962         instead of TREE_INT_CST_LOW, in cases where there is a protecting
963         tree_fits_shwi_p or tree_fits_uhwi_p.
964         * builtins.c (fold_builtin_powi): Likewise.
965         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
966         Likewise.
967         * dbxout.c (dbxout_symbol): Likewise.
968         * expr.c (expand_expr_real_1): Likewise.
969         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
970         (fold_binary_loc): Likewise.
971         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
972         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
973         * omp-low.c (lower_omp_for_lastprivate): Likewise.
974         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
975         * stor-layout.c (compute_record_mode): Likewise.
976         * tree-cfg.c (verify_expr): Likewise.
977         * tree-dfa.c (get_ref_base_and_extent): Likewise.
978         * tree-pretty-print.c (dump_array_domain): Likewise.
979         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
980         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
981         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
982         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
983         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
984         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
985         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
986         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
987         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
988         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
989         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
990         (create_variable_info_for_1): Likewise.
991         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
992         (vect_verify_datarefs_alignment): Likewise.
993         (vect_analyze_data_ref_accesses): Likewise.
994         (vect_prune_runtime_alias_test_list): Likewise.
995         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
997 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
999         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
1000         overflow.  Use tree_to_shwi.
1002 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
1004         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
1005         HOST_WIDE_INTs when folding (x >> c) << c.
1007 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1008             Dominik Vogt  <vogt@linux.vnet.ibm.com>
1010         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
1011         int comparisons with an out of range condition code.
1012         (s390_optimize_nonescaping_tx): Skip empty BBs.
1013         Generate the new tbegin RTX when removing the FPR clobbers (with
1014         two SETs).
1015         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
1016         result before doing the retry calculations.
1017         (s390_init_builtins): Make tbegin "returns_twice" and tabort
1018         "noreturn".
1019         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
1020         the TDB setting part of an tbegin.
1021         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
1022         ("tx_assist"): Set unused argument to an immediate zero instead of
1023         loading zero into a GPR and pass it as argument.
1024         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
1025         Remove inline and related attributes.
1026         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
1027         (__TM_is_illegal, __TM_is_footprint_exceeded)
1028         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
1030 2013-11-20  Richard Biener  <rguenther@suse.de>
1032         PR lto/59035
1033         * lto-opts.c (lto_write_options): Write defaults only if
1034         they were not explicitely specified.  Also write
1035         -ffp-contract default.
1036         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
1037         conservatively.
1038         (run_gcc): Pass through -ffp-contract.
1040 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1042         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
1044 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
1046         * gcc/config/aarch64/aarch64-builtins.c
1047         (aarch64_simd_itype): Remove.
1048         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
1049         (VAR1): Use qualifiers.
1050         (aarch64_build_scalar_type): New.
1051         (aarch64_build_vector_type): Likewise.
1052         (aarch64_build_type): Likewise.
1053         (aarch64_init_simd_builtins): Refactor, remove special cases,
1054         consolidate main loop.
1055         (aarch64_simd_expand_args): Likewise.
1057 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1059         PR c/53001
1060         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
1062 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
1064         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
1066 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1068         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
1069         to "vec<>" instances.
1070         (build_pretty_printer): Register the vec<>* prettyprinter.
1072 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1074         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
1075         (GdbSubprinter.handles_type): New.
1076         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
1077         (GdbSubprinterRegex): New subclass of GdbSubprinter.
1078         (GdbPrettyPrinters.add_printer): Remove in favor of...
1079         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
1080         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
1081         (GdbPrettyPrinters.__call__): Update search for subprinter
1082         to use handles_type method.
1083         (build_pretty_printer): Update registration of subprinters to
1084         use the new API above, supporting multiple spelling of each type,
1085         and allowing for future regex-based subprinters.
1087 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1089         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
1090         V16QI vector splat case for little endian.
1092 2013-11-19  Jeff Law  <law@redhat.com>
1094         * tree-ssa-threadedge.c (thread_across_edge): After threading
1095         through a joiner, allow threading a normal block requiring duplication.
1097         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
1098         jump threading requests that would muck up the loop structures.
1100         * tree-ssa-threadupdate.c: Fix trailing whitespace.
1101         * tree-ssa-threadupdate.h: Likewise.
1103 2013-11-19  Mike Stump  <mikestump@comcast.net>
1105         * gdbinit.in: Add pmz to print out mpz values.
1107 2013-11-20  Jan Hubicka  <jh@suse.cz>
1109         * common.opt (ffat-lto-objects): Disable by default.
1110         * doc/invoke.texi (fat-lto-objects): Update documentation.
1111         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
1113 2013-11-19  Martin Jambor  <mjambor@suse.cz>
1115         PR rtl-optimization/59099
1116         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
1117         here.
1118         (ira): Move init_reg_equiv and call to
1119         split_live_ranges_for_shrink_wrap up, remove analyses around call
1120         to find_moveable_pseudos.
1122 2013-11-20  Alan Modra  <amodra@gmail.com>
1124         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
1125         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
1126         to strict alignment on older processors when little-endian.
1127         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
1128         for ELFv2.
1130 2013-11-19  Teresa Johnson  <tejohnson@google.com>
1132         * common/config/i386/i386-common.c: Enable
1133         -freorder-blocks-and-partition at -O2 and up for x86.
1134         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
1135         * opts.c (finish_options): Only warn if
1136         -freorder-blocks-and-partition was set on command line.
1138 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
1140         * final.c (final_scan_insn): Emit a label for the split
1141         cold function part.  Label name is formed by suffixing
1142         the original function name with "cold".
1144 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1146         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
1147         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
1148         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
1149         (EXIT_BLOCK_PTR_FOR_FN): ...this.
1150         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
1151         cfun be explicit.
1152         (EXIT_BLOCK_PTR): Likewise.
1153         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
1154         (FOR_ALL_BB_FN): Update for renaming of
1155         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
1157         * cfg.c (init_flow): Likewise.
1158         (check_bb_profile): Likewise.
1159         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
1160         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
1161         * cfghooks.c (account_profile_record): Likewise.
1162         * cfgloop.c (init_loops_structure): Likewise.
1163         * cgraphbuild.c (record_eh_tables): Likewise.
1164         (compute_call_stmt_bb_frequency): Likewise.
1165         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
1166         * lto-streamer-in.c (input_cfg): Likewise.
1167         * predict.c (maybe_hot_frequency_p): Likewise.
1168         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1169         * tree-inline.c (initialize_cfun): Likewise.
1170         (copy_cfg_body): Likewise.
1171         (copy_body): Likewise.
1172         (tree_function_versioning): Likewise.
1174         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
1175         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1176         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
1177         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
1178         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1179         (connect_traces): Likewise.
1180         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1181         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
1182         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
1183         macro.
1184         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
1185         EXIT_BLOCK_PTR.
1186         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
1187         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
1188         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
1189         (rotate_loop): Likewise.
1190         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
1191         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1192         EXIT_BLOCK_PTR.
1193         (alloc_aux_for_edges): Likewise.
1194         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
1195         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1196         EXIT_BLOCK_PTR.
1197         (compact_blocks): Likewise.
1198         (clear_edges): Likewise.
1199         * cfganal.c (single_pred_before_succ_order): Remove usage of
1200         ENTRY_BLOCK_PTR macro.
1201         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1202         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1203         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1204         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1205         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1206         EXIT_BLOCK_PTR.
1207         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
1208         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1209         EXIT_BLOCK_PTR.
1210         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
1211         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1212         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1213         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1214         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1215         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
1216         EXIT_BLOCK_PTR.
1217         (print_edge_list): Likewise.
1218         (create_edge_list): Likewise.
1219         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1220         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1221         EXIT_BLOCK_PTR.
1222         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
1223         macro.
1224         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1225         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1226         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
1227         (try_optimize_cfg): Likewise.
1228         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
1229         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
1230         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
1231         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
1232         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
1233         (try_forward_edges): Likewise.
1234         (try_simplify_condjump): Likewise.
1235         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
1236         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1237         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
1238         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
1239         EXIT_BLOCK_PTR.
1240         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
1241         (expand_gimple_tailcall): Likewise.
1242         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
1243         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1244         (tidy_fallthru_edges): Likewise.
1245         (verify_flow_info): Likewise.
1246         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
1247         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
1248         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
1249         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1250         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
1251         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
1252         (get_loop_body_in_dom_order): Likewise.
1253         (get_loop_body): Likewise.
1254         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
1255         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1256         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
1257         macro.
1258         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
1259         (fix_bb_placement): Likewise.
1260         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
1261         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1262         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
1263         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1264         EXIT_BLOCK_PTR.
1265         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1266         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
1267         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1268         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
1269         macro.
1270         (fixup_fallthru_exit_predecessor): Remove uses of macros:
1271         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1272         (fixup_reorder_chain): Likewise.
1273         (relink_block_chain): Likewise.
1274         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
1275         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
1276         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
1277         (force_one_exit_fallthru): Likewise.
1278         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
1279         EXIT_BLOCK_PTR.
1280         (rtl_verify_edges): Likewise.
1281         (commit_edge_insertions): Likewise.
1282         (commit_one_edge_insertion): Likewise.
1283         (rtl_split_edge): Likewise.
1284         (force_nonfallthru_and_redirect): Likewise.
1285         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
1286         (skip_insns_after_block): Likewise.
1287         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
1288         EXIT_BLOCK_PTR.
1289         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
1290         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
1291         EXIT_BLOCK_PTR.
1292         (contains_no_active_insn_p): Likewise.
1293         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1294         (entry_of_function): Likewise.
1295         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
1296         (fixup_new_cold_bb): Likewise.
1297         (patch_jump_insn): Likewise.
1298         (try_redirect_by_replacing_jump): Likewise.
1299         (block_label): Likewise.
1300         (could_fall_through): Likewise.
1301         (can_fallthru): Likewise.
1302         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
1303         ENTRY_BLOCK_PTR macro.
1304         (rebuild_cgraph_edges): Likewise.
1305         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
1306         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1307         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
1308         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
1309         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
1310         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
1311         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
1312         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
1313         macro.
1314         (reg_nonzero_bits_for_combine): Likewise.
1315         (set_nonzero_bits_and_sign_copies): Likewise.
1316         (combine_instructions): Likewise.
1317         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
1318         EXIT_BLOCK_PTR.
1319         (bypass_conditional_jumps): Likewise.
1320         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
1321         (find_implicit_sets): Likewise.
1322         (cprop_jump): Likewise.
1323         * cse.c (cse_cc_succs): Likewise.
1324         (cse_find_path): Likewise.
1325         * df-problems.c (df_lr_confluence_0): Likewise.
1326         * df-scan.c (df_entry_block_defs_collect): Remove usage of
1327         ENTRY_BLOCK_PTR macro.
1328         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
1329         * dominance.c (iterate_fix_dominators): Remove usage of
1330         ENTRY_BLOCK_PTR macro.
1331         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1332         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
1333         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
1334         EXIT_BLOCK_PTR.
1335         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
1336         macro.
1337         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
1338         EXIT_BLOCK_PTR.
1339         * domwalk.c (cmp_bb_postorder): Likewise.
1340         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
1341         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
1342         macro.
1343         (sjlj_emit_function_enter): Likewise.
1344         * final.c (compute_alignments): Likewise.
1345         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
1346         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1347         (reposition_prologue_and_epilogue_notes): Remove usage of
1348         EXIT_BLOCK_PTR macro.
1349         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
1350         EXIT_BLOCK_PTR.
1351         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
1352         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
1353         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
1354         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
1355         (compute_code_hoist_vbeinout): Likewise.
1356         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
1357         (pre_expr_reaches_here_p_work): Likewise.
1358         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1359         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
1360         EXIT_BLOCK_PTR.
1361         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
1362         ENTRY_BLOCK_PTR macro.
1363         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
1364         macro.
1365         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
1366         ENTRY_BLOCK_PTR macro.
1367         * graphite-scop-detection.c (build_scops): Likewise.
1368         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
1369         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
1370         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
1371         macro.
1372         (unlink_bb_notes): Likewise.
1373         (create_check_block_twin): Likewise.
1374         (init_before_recovery): Likewise.
1375         (sched_extend_bb): Likewise.
1376         (priority): Likewise.
1377         * hw-doloop.c (reorder_loops): Likewise.
1378         (discover_loop): Likewise.
1379         * ifcvt.c (dead_or_predicable): Remove uses of macros:
1380         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1381         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
1382         (block_has_only_trap): Likewise.
1383         (cond_exec_find_if_block): Likewise.
1384         (merge_if_block): Likewise.
1385         * ipa-inline-analysis.c (param_change_prob): Remove usage of
1386         ENTRY_BLOCK_PTR macro.
1387         (record_modified): Likewise.
1388         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
1389         EXIT_BLOCK_PTR macro.
1390         (local_pure_const): Likewise.
1391         * ipa-split.c (split_function): Remove uses of macros:
1392         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1393         (find_split_points): Likewise.
1394         (consider_split): Likewise.
1395         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
1396         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
1397         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
1398         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
1399         * ira-emit.c (entered_from_non_parent_p): Remove usage of
1400         ENTRY_BLOCK_PTR macro.
1401         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
1402         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
1403         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
1404         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1405         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
1406         macro.
1407         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
1408         EXIT_BLOCK_PTR.
1409         (compute_farthest): Likewise.
1410         (compute_available): Likewise.
1411         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
1412         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
1413         EXIT_BLOCK_PTR.
1414         (compute_earliest): Likewise.
1415         (compute_antinout_edge): Likewise.
1416         * loop-iv.c (simplify_using_initial_values): Remove usage of
1417         ENTRY_BLOCK_PTR macro.
1418         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
1419         macro.
1420         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
1421         macro.
1422         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
1423         macro.
1424         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
1425         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1426         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
1427         macro.
1428         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
1429         macro.
1430         * lto-streamer-out.c (output_cfg): Likewise.
1431         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
1432         EXIT_BLOCK_PTR.
1433         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
1434         * mode-switching.c (optimize_mode_switching): Likewise.
1435         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
1436         * modulo-sched.c (rest_of_handle_sms): Likewise.
1437         (canon_loop): Likewise.
1438         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
1439         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
1440         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1441         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
1442         macro.
1443         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
1444         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
1445         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
1446         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
1447         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
1448         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
1449         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
1450         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
1451         (gimple_predict_edge): Likewise.
1452         (probably_never_executed): Likewise.
1453         * profile.c (find_spanning_tree): Remove uses of macros:
1454         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1455         (branch_prob): Likewise.
1456         (compute_branch_probabilities): Likewise.
1457         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
1458         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
1459         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
1460         (set_bb_counts): Likewise.
1461         (correct_negative_edge_counts): Likewise.
1462         (get_exec_counts): Likewise.
1463         (instrument_values): Likewise.
1464         (instrument_edges): Likewise.
1465         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
1466         EXIT_BLOCK_PTR.
1467         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1468         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
1469         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1470         (reg_to_stack): Likewise.
1471         * regs.h (REG_N_SETS): Likewise.
1472         * reload.c (find_dummy_reload): Likewise.
1473         (combine_reloads): Likewise.
1474         (push_reload): Likewise.
1475         * reload1.c (has_nonexceptional_receiver): Remove usage of
1476         EXIT_BLOCK_PTR macro.
1477         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
1478         macro.
1479         (find_basic_block): Likewise.
1480         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
1481         (schedule_ebbs): Likewise.
1482         * sched-int.h (sel_sched_p): Likewise.
1483         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
1484         macro.
1485         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
1486         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
1487         EXIT_BLOCK_PTR.
1488         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
1489         (extend_rgns): Likewise.
1490         (find_single_block_region): Likewise.
1491         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
1492         ENTRY_BLOCK_PTR macro.
1493         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
1494         (sel_create_recovery_block): Likewise.
1495         (bb_ends_ebb_p): Likewise.
1496         (sel_bb_end): Likewise.
1497         (sel_bb_head): Likewise.
1498         (free_lv_sets): Likewise.
1499         (init_lv_sets): Likewise.
1500         (tidy_control_flow): Likewise.
1501         (maybe_tidy_empty_bb): Likewise.
1502         * sel-sched-ir.h (_succ_iter_cond): Likewise.
1503         (_succ_iter_start): Likewise.
1504         (sel_bb_empty_or_nop_p): Likewise.
1505         (get_loop_exit_edges_unique_dests): Likewise.
1506         (inner_loop_header_p): Likewise.
1507         * sel-sched.c (create_block_for_bookkeeping): Likewise.
1508         (find_block_for_bookkeeping): Likewise.
1509         * store-motion.c (remove_reachable_equiv_notes): Likewise.
1510         (insert_store): Likewise.
1511         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
1512         ENTRY_BLOCK_PTR macro.
1513         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
1514         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
1515         (gate_tm_init): Likewise.
1516         (tm_region_init): Likewise.
1517         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
1518         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1519         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
1520         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1521         EXIT_BLOCK_PTR.
1522         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
1523         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
1524         EXIT_BLOCK_PTR.
1525         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
1526         macro.
1527         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
1528         EXIT_BLOCK_PTR.
1529         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
1530         macro.
1531         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1532         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1533         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1534         (build_gimple_cfg): Likewise.
1535         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
1536         (gimple_can_merge_blocks_p): Likewise.
1537         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
1538         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1539         * tree-complex.c (update_parameter_components): Remove usage of
1540         ENTRY_BLOCK_PTR macro.
1541         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
1542         EXIT_BLOCK_PTR macro.
1543         * tree-inline.c (tree_function_versioning): Remove uses of macros:
1544         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1545         (delete_unreachable_blocks_update_callgraph): Likewise.
1546         (initialize_cfun): Likewise.
1547         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
1548         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
1549         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
1550         * tree-into-ssa.c (update_ssa): Likewise.
1551         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
1552         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
1553         (rewrite_into_ssa): Likewise.
1554         (rewrite_debug_stmt_uses): Likewise.
1555         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
1556         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1557         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
1558         ENTRY_BLOCK_PTR macro.
1559         * tree-scalar-evolution.h (block_before_loop): Likewise.
1560         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1561         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
1562         EXIT_BLOCK_PTR.
1563         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
1564         macro.
1565         (propagate_dereference_distances): Remove uses of macros:
1566         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1567         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
1568         macro.
1569         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
1570         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
1571         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
1572         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
1573         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1574         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
1575         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
1576         (mark_control_dependent_edges_necessary): Remove uses of macros:
1577         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1578         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
1579         ENTRY_BLOCK_PTR macro.
1580         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
1581         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
1582         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1583         (calculate_live_on_exit): Likewise.
1584         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1585         (loe_visit_block): Likewise.
1586         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
1587         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1588         (live_on_entry): Likewise.
1589         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
1590         EXIT_BLOCK_PTR macro.
1591         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
1592         ENTRY_BLOCK_PTR macro.
1593         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
1594         (bound_difference): Likewise.
1595         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
1596         of EXIT_BLOCK_PTR macro.
1597         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
1598         of ENTRY_BLOCK_PTR macro.
1599         * tree-ssa-math-opts.c (register_division_in): Likewise.
1600         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
1601         * tree-ssa-pre.c (compute_avail): Likewise.
1602         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
1603         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
1604         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1605         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
1606         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
1607         EXIT_BLOCK_PTR.
1608         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
1609         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
1610         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1611         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
1612         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1613         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
1614         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
1615         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
1616         (find_pdom): Likewise.
1617         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
1618         * tree-stdarg.c (reachable_at_most_once): Likewise.
1619         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
1620         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1621         (eliminate_tail_call): Likewise.
1622         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
1623         macro.
1624         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
1625         * var-tracking.c (vt_initialize): Remove uses of macros:
1626         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1627         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
1628         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
1629         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
1630         EXIT_BLOCK_PTR.
1631         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
1632         macro.
1633         * config/bfin/bfin.c (hwloop_optimize): Likewise.
1634         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
1635         of EXIT_BLOCK_PTR macro.
1636         * config/arm/arm.c (require_pic_register): Remove usage of
1637         ENTRY_BLOCK_PTR macro.
1638         (arm_r3_live_at_start_p): Likewise.
1639         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
1640         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1641         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
1642         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
1643         ENTRY_BLOCK_PTR macro.
1644         * config/i386/i386.c (ix86_count_insn): Likewise.
1645         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
1646         (ix86_pad_short_function): Likewise.
1647         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
1648         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
1649         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
1650         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
1651         (ix86_expand_epilogue): Likewise.
1652         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
1653         (ia64_expand_prologue): Likewise.
1655 2013-11-19  Catherine Moore  <clm@codesourcery.com>
1657         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
1658         * config/mips/mips.opt (mfix-rm7000): New option.
1659         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
1660         * config/mips/mips.c (mips_reorg_process_insns): Disable
1661         noreorder for TARGET_FIX_RM7000.
1663 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
1665         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
1667 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1669         * config/arm/arm.c (arm_new_rtx_costs):
1670         Handle narrow mode add-shifts properly.
1671         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
1672         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
1673         Declare extern.
1675 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
1677         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
1679 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1681         * config/rs6000/vector.md ("mov<mode>"): Do not call
1682         rs6000_emit_le_vsx_move to move into or out of GPRs.
1683         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
1684         source and destination are not GPR hard regs.
1686 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1688         * basic-block.h (n_edges_for_function): Rename macro to...
1689         (n_edges_for_fn): ...this.
1690         (n_edges): Eliminate macro as work towards making uses of
1691         cfun be explicit.
1693         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
1694         to "n_edges_for_fn".
1696         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
1697         (clear_edges): Likewise.
1698         (free_edge): Likewise.
1699         * cfghooks.c (dump_flow_info): Likewise.
1700         * cprop.c (is_too_expensive): Likewise.
1701         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1702         * gcse.c (is_too_expensive): Likewise.
1703         (prune_insertions_deletions): Likewise.
1704         * mcf.c (create_fixup_graph): Likewise.
1705         * sched-rgn.c (haifa_find_rgns): Likewise.
1706         * tree-cfg.c (gimple_dump_cfg): Likewise.
1707         * var-tracking.c (variable_tracking_main_1): Likewise.
1709 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1711         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
1712         length lines.
1714 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1716         * config/aarch64/aarch64.md
1717         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
1719 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1721         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
1723 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
1725         * varasm.c (align_variable): Give error instead of warning for
1726         unsupported alignment.
1727         (assemble_noswitch_variable): Likewise.
1729 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1731         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
1732         cb_file_change.
1734 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
1736         * loop-doloop.c (doloop_optimize_loops): Remove unused
1737         loop iterator argument from FOR_EACH_LOOP.
1739 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1741         Convert gimple types from a union to C++ inheritance.
1742         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
1743         * coretypes.h (union gimple_statement_d): Remove declaration.
1744         (gimple): Convert from being a "union gimple_statement_d *"
1745         to a "struct gimple_statement_base *".
1746         (const_gimple): Likewise (with "const").
1747         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
1748         (ggc_alloc_cleared_gimple_statement_stat): ...this.
1749         * gimple-pretty-print.c (debug): Change parameter from a
1750         "gimple_statement_d &" to a "gimple_statement_base &".
1751         (debug): Change parameter from a "gimple_statement_d *" to
1752         a "gimple_statement_base *".
1753         * gimple-pretty-print.h (debug): Update declarations as above.
1754         * gimple.c (gimple_alloc_stat): Update for renaming of
1755         ggc_alloc_cleared_gimple_statement_d_stat to
1756         ggc_alloc_cleared_gimple_statement_stat.
1757         * gimple.h: Include "is-a.h" for use by is_a_helper
1758         specializations in followup autogenerated patch.
1759         (struct gimple statement_base): Make this type usable as a base
1760         class by adding "desc", "tag" and "variable_size" to GTY, thus
1761         using opting-in to gengtype's support for simple inheritance.
1762         (gimple_statement_with_ops_base): Convert to a subclass of
1763         gimple_statement_base, dropping initial "gsbase" field.  Note that
1764         this type is abstract, with no GSS_ value, and thus no GTY tag value.
1765         (gimple_statement_with_ops): Convert to a subclass of
1766         gimple_statement_with_ops_base, dropping initial "opbase" field.
1767         Add tag value to GTY marking.  Update marking of op field to
1768         reflect how num_ops field is accessed via inheritance.
1769         (gimple_statement_with_memory_ops_base): Convert to a subclass of
1770         gimple_statement_with_ops_base, dropping initial "opbase" field.
1771         Add tag value to GTY marking.
1772         (gimple_statement_with_memory_ops): Convert to a subclass of
1773         public gimple_statement_with_memory_ops_base, dropping initial
1774         "membase" field.  Add tag value to GTY marking.  Update marking
1775         of op field to reflect how num_ops field is accessed via inheritance.
1776         (gimple_statement_call): Analogous changes that also update the
1777         marking of the "u" union.
1778         (gimple_statement_omp): Convert to a subclass of
1779         gimple_statement_base, dropping initial "gsbase" field, adding
1780         tag value to GTY marking.
1781         (gimple_statement_bind): Likewise.
1782         (gimple_statement_catch): Likewise.
1783         (gimple_statement_eh_filter): Likewise.
1784         (gimple_statement_eh_else): Likewise.
1785         (gimple_statement_eh_mnt): Likewise.
1786         (gimple_statement_phi): Likewise.
1787         (gimple_statement_eh_ctrl): Likewise.
1788         (gimple_statement_try): Likewise.
1789         (gimple_statement_wce): Likewise.
1790         (gimple_statement_asm): Convert to a subclass of
1791         gimple_statement_with_memory_ops_base, dropping initial
1792         "membase" field, adding tag value to GTY marking, and updating
1793         marking of op field.
1794         (gimple_statement_omp_critical): Convert to a subclass of
1795         gimple_statement_omp, dropping initial "omp" field, adding tag
1796         value to GTY marking.
1797         (gimple_statement_omp_for): Likewise.
1798         (gimple_statement_omp_parallel): Likewise.
1799         (gimple_statement_omp_task): Convert to a subclass of
1800         gimple_statement_omp_parallel, dropping initial "par" field,
1801         adding tag value to GTY marking.
1802         (gimple_statement_omp_sections): Convert to a subclass of
1803         gimple_statement_omp, dropping initial "omp" field, adding
1804         tag value to GTY marking.
1805         (gimple_statement_omp_continue): Convert to a subclass of
1806         gimple_statement_base, dropping initial "gsbase" field, adding
1807         tag value to GTY marking.
1808         (gimple_statement_omp_single): Convert to a subclass of
1809         gimple_statement_omp, dropping initial "omp" field, adding
1810         tag value to GTY marking.
1811         (gimple_statement_omp_atomic_load): Convert to a subclass of
1812         gimple_statement_base, dropping initial "gsbase" field, adding
1813         tag value to GTY marking.
1814         (gimple_statement_omp_atomic_store): Convert to a subclass of
1815         gimple_statement_base, dropping initial "gsbase" field, adding
1816         tag value to GTY marking.
1817         (gimple_statement_transaction): Convert to a subclass of
1818         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
1819         field, adding tag value to GTY marking.
1820         (union gimple_statement_d): Remove.
1821         * system.h (CONST_CAST_GIMPLE): Update to use
1822         "struct gimple_statement_base *" rather than
1823         "union gimple_statement_d *".
1824         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
1825         gimple_statement_d to gimple_statement_base.
1827         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
1828         (gimple_set_use_ops): Port from union to usage of as_a.
1829         (gimple_set_vuse): Likewise.
1830         (gimple_set_vdef): Likewise.
1831         (gimple_call_internal_fn): Port from union to a static_cast,
1832         given that the type has already been asserted.
1833         (gimple_omp_body_ptr): Port from unchecked union usage to
1834         a static_cast.
1835         (gimple_omp_set_body): Likewise.
1837         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
1838         gimple types to a true class hierarchy.
1839         (update_call_edge_frequencies): Likewise.
1840         (gsi_insert_seq_nodes_before): Likewise.
1841         (gsi_insert_seq_nodes_after): Likewise.
1842         (gsi_split_seq_after): Likewise.
1843         (gsi_set_stmt): Likewise.
1844         (gsi_split_seq_before): Likewise.
1845         (gsi_remove): Likewise.
1846         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
1847         (gsi_next): Likewise.
1848         (gsi_prev): Likewise.
1849         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
1850         * gimple-ssa.h (gimple_vuse_op): Likewise.
1851         (gimple_vdef_op): Likewise.
1852         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
1853         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1854         * gimple.c (gimple_set_code): Likewise.
1855         (gimple_alloc_stat): Likewise.
1856         (gimple_set_subcode): Likewise.
1857         (gimple_build_call_internal_1): Likewise.
1858         (gimple_check_failed): Likewise.
1859         (gimple_call_flags): Likewise.
1860         (gimple_set_bb): Likewise.
1861         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
1862         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
1863         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
1864         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
1865         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
1866         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
1867         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
1868         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
1869         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
1870         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
1871         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
1872         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
1873         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
1874         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
1875         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
1876         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
1877         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
1878         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
1879         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
1880         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
1881         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
1882         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
1883         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
1884         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
1885         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
1886         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
1887         Likewise.
1888         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
1889         Likewise.
1890         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
1891         Likewise.
1892         (is_a_helper <const gimple_statement_omp_atomic_store>
1893         (const_gimple)): Likewise.
1894         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
1895         Likewise.
1896         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
1897         Likewise.
1898         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
1899         Likewise.
1900         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
1901         Likewise.
1902         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
1903         Likewise.
1904         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
1905         Likewise.
1906         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
1907         Likewise.
1908         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
1909         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
1910         Likewise.
1911         (gimple_seq_last): Update for conversion of gimple types to a true
1912         class hierarchy.
1913         (gimple_seq_set_last): Likewise.
1914         (gimple_code): Likewise.
1915         (gimple_bb): Likewise.
1916         (gimple_block): Likewise.
1917         (gimple_set_block): Likewise.
1918         (gimple_location): Likewise.
1919         (gimple_location_ptr): Likewise.
1920         (gimple_set_location): Likewise.
1921         (gimple_no_warning_p): Likewise.
1922         (gimple_set_no_warning): Likewise.
1923         (gimple_set_visited): Likewise.
1924         (gimple_visited_p): Likewise.
1925         (gimple_set_plf): Likewise.
1926         (gimple_plf): Likewise.
1927         (gimple_set_uid): Likewise.
1928         (gimple_uid): Likewise.
1929         (gimple_init_singleton): Likewise.
1930         (gimple_modified_p): Likewise.
1931         (gimple_set_modified): Likewise.
1932         (gimple_expr_code): Likewise.
1933         (gimple_has_volatile_ops): Likewise.
1934         (gimple_set_has_volatile_ops): Likewise.
1935         (gimple_omp_subcode): Likewise.
1936         (gimple_omp_set_subcode): Likewise.
1937         (gimple_omp_return_set_nowait): Likewise.
1938         (gimple_omp_section_set_last): Likewise.
1939         (gimple_omp_parallel_set_combined_p): Likewise.
1940         (gimple_omp_atomic_set_need_value): Likewise.
1941         (gimple_omp_atomic_set_seq_cst): Likewise.
1942         (gimple_num_ops): Likewise.
1943         (gimple_set_num_ops): Likewise.
1944         (gimple_assign_nontemporal_move_p): Likewise.
1945         (gimple_assign_set_nontemporal_move): Likewise.
1946         (gimple_assign_rhs_code): Likewise.
1947         (gimple_assign_set_rhs_code): Likewise.
1948         (gimple_call_internal_p): Likewise.
1949         (gimple_call_with_bounds_p): Likewise.
1950         (gimple_call_set_with_bounds): Likewise.
1951         (gimple_call_set_tail): Likewise.
1952         (gimple_call_tail_p): Likewise.
1953         (gimple_call_set_return_slot_opt): Likewise.
1954         (gimple_call_return_slot_opt_p): Likewise.
1955         (gimple_call_set_from_thunk): Likewise.
1956         (gimple_call_from_thunk_p): Likewise.
1957         (gimple_call_set_va_arg_pack): Likewise.
1958         (gimple_call_va_arg_pack_p): Likewise.
1959         (gimple_call_set_nothrow): Likewise.
1960         (gimple_call_set_alloca_for_var): Likewise.
1961         (gimple_call_alloca_for_var_p): Likewise.
1962         (gimple_call_copy_flags): Likewise.
1963         (gimple_cond_code): Likewise.
1964         (gimple_cond_set_code): Likewise.
1965         (gimple_cond_make_false): Likewise.
1966         (gimple_cond_make_true): Likewise.
1967         (gimple_asm_volatile_p): Likewise.
1968         (gimple_asm_set_volatile): Likewise.
1969         (gimple_asm_set_input): Likewise.
1970         (gimple_asm_input_p): Likewise.
1971         (gimple_try_kind): Likewise.
1972         (gimple_try_set_kind): Likewise.
1973         (gimple_try_catch_is_cleanup): Likewise.
1974         (gimple_try_set_catch_is_cleanup): Likewise.
1975         (gimple_wce_cleanup_eh_only): Likewise.
1976         (gimple_wce_set_cleanup_eh_only): Likewise.
1977         (gimple_debug_bind_p): Likewise.
1978         (gimple_debug_source_bind_p): Likewise.
1979         (gimple_omp_for_set_kind): Likewise.
1980         (gimple_omp_for_set_combined_p): Likewise.
1981         (gimple_omp_for_set_combined_into_p): Likewise.
1982         (gimple_omp_target_set_kind): Likewise.
1983         (gimple_transaction_subcode): Likewise.
1984         (gimple_transaction_set_subcode): Likewise.
1985         (gimple_predict_predictor): Likewise.
1986         (gimple_predict_set_predictor): Likewise.
1987         (gimple_predict_outcome): Likewise.
1988         (gimple_predict_set_outcome): Likewise.
1989         (gimple_transaction_set_label): Likewise.
1990         (gimple_transaction_set_body): Likewise.
1991         (gimple_transaction_label_ptr): Likewise.
1992         (gimple_transaction_label): Likewise.
1993         (gimple_transaction_body_ptr): Likewise.
1994         (gimple_omp_continue_set_control_use): Likewise.
1995         (gimple_omp_continue_control_use_ptr): Likewise.
1996         (gimple_omp_continue_control_use): Likewise.
1997         (gimple_omp_continue_set_control_def): Likewise.
1998         (gimple_omp_continue_control_def_ptr): Likewise.
1999         (gimple_omp_continue_control_def): Likewise.
2000         (gimple_omp_atomic_load_rhs_ptr): Likewise.
2001         (gimple_omp_atomic_load_rhs): Likewise.
2002         (gimple_omp_atomic_load_set_rhs): Likewise.
2003         (gimple_omp_atomic_load_lhs_ptr): Likewise.
2004         (gimple_omp_atomic_load_lhs): Likewise.
2005         (gimple_omp_atomic_load_set_lhs): Likewise.
2006         (gimple_omp_atomic_store_val_ptr): Likewise.
2007         (gimple_omp_atomic_store_val): Likewise.
2008         (gimple_omp_atomic_store_set_val): Likewise.
2009         (gimple_omp_for_cond): Likewise.
2010         (gimple_omp_for_set_cond): Likewise.
2011         (gimple_omp_sections_set_control): Likewise.
2012         (gimple_omp_sections_control_ptr): Likewise.
2013         (gimple_omp_sections_control): Likewise.
2014         (gimple_omp_sections_set_clauses): Likewise.
2015         (gimple_omp_sections_clauses_ptr): Likewise.
2016         (gimple_omp_sections_clauses): Likewise.
2017         (gimple_omp_teams_set_clauses): Likewise.
2018         (gimple_omp_teams_clauses_ptr): Likewise.
2019         (gimple_omp_teams_clauses): Likewise.
2020         (gimple_omp_target_set_data_arg): Likewise.
2021         (gimple_omp_target_data_arg_ptr): Likewise.
2022         (gimple_omp_target_data_arg): Likewise.
2023         (gimple_omp_target_set_child_fn): Likewise.
2024         (gimple_omp_target_child_fn_ptr): Likewise.
2025         (gimple_omp_target_child_fn): Likewise.
2026         (gimple_omp_target_set_clauses): Likewise.
2027         (gimple_omp_target_clauses_ptr): Likewise.
2028         (gimple_omp_target_clauses): Likewise.
2029         (gimple_omp_single_set_clauses): Likewise.
2030         (gimple_omp_single_clauses_ptr): Likewise.
2031         (gimple_omp_single_clauses): Likewise.
2032         (gimple_omp_task_set_arg_align): Likewise.
2033         (gimple_omp_task_arg_align_ptr): Likewise.
2034         (gimple_omp_task_arg_align): Likewise.
2035         (gimple_omp_task_set_arg_size): Likewise.
2036         (gimple_omp_task_arg_size_ptr): Likewise.
2037         (gimple_omp_task_arg_size): Likewise.
2038         (gimple_omp_task_set_copy_fn): Likewise.
2039         (gimple_omp_task_copy_fn_ptr): Likewise.
2040         (gimple_omp_task_copy_fn): Likewise.
2041         (gimple_omp_task_set_data_arg): Likewise.
2042         (gimple_omp_task_data_arg_ptr): Likewise.
2043         (gimple_omp_task_data_arg): Likewise.
2044         (gimple_omp_task_set_child_fn): Likewise.
2045         (gimple_omp_task_child_fn_ptr): Likewise.
2046         (gimple_omp_task_child_fn): Likewise.
2047         (gimple_omp_task_set_clauses): Likewise.
2048         (gimple_omp_task_clauses_ptr): Likewise.
2049         (gimple_omp_task_clauses): Likewise.
2050         (gimple_omp_parallel_set_data_arg): Likewise.
2051         (gimple_omp_parallel_data_arg_ptr): Likewise.
2052         (gimple_omp_parallel_data_arg): Likewise.
2053         (gimple_omp_parallel_set_child_fn): Likewise.
2054         (gimple_omp_parallel_child_fn_ptr): Likewise.
2055         (gimple_omp_parallel_child_fn): Likewise.
2056         (gimple_omp_parallel_set_clauses): Likewise.
2057         (gimple_omp_parallel_clauses_ptr): Likewise.
2058         (gimple_omp_parallel_clauses): Likewise.
2059         (gimple_omp_for_set_pre_body): Likewise.
2060         (gimple_omp_for_pre_body_ptr): Likewise.
2061         (gimple_omp_for_set_incr): Likewise.
2062         (gimple_omp_for_incr_ptr): Likewise.
2063         (gimple_omp_for_incr): Likewise.
2064         (gimple_omp_for_set_final): Likewise.
2065         (gimple_omp_for_final_ptr): Likewise.
2066         (gimple_omp_for_final): Likewise.
2067         (gimple_omp_for_set_initial): Likewise.
2068         (gimple_omp_for_initial_ptr): Likewise.
2069         (gimple_omp_for_initial): Likewise.
2070         (gimple_omp_for_set_index): Likewise.
2071         (gimple_omp_for_index_ptr): Likewise.
2072         (gimple_omp_for_index): Likewise.
2073         (gimple_omp_for_collapse): Likewise.
2074         (gimple_omp_for_set_clauses): Likewise.
2075         (gimple_omp_for_clauses_ptr): Likewise.
2076         (gimple_omp_for_clauses): Likewise.
2077         (gimple_omp_critical_set_name): Likewise.
2078         (gimple_omp_critical_name_ptr): Likewise.
2079         (gimple_omp_critical_name): Likewise.
2080         (gimple_eh_dispatch_set_region): Likewise.
2081         (gimple_eh_dispatch_region): Likewise.
2082         (gimple_resx_set_region): Likewise.
2083         (gimple_resx_region): Likewise.
2084         (gimple_phi_set_arg): Likewise.
2085         (gimple_phi_arg): Likewise.
2086         (gimple_phi_set_result): Likewise.
2087         (gimple_phi_result_ptr): Likewise.
2088         (gimple_phi_result): Likewise.
2089         (gimple_phi_num_args): Likewise.
2090         (gimple_phi_capacity): Likewise.
2091         (gimple_wce_set_cleanup): Likewise.
2092         (gimple_wce_cleanup_ptr): Likewise.
2093         (gimple_try_set_cleanup): Likewise.
2094         (gimple_try_set_eval): Likewise.
2095         (gimple_try_cleanup_ptr): Likewise.
2096         (gimple_try_eval_ptr): Likewise.
2097         (gimple_eh_else_set_e_body): Likewise.
2098         (gimple_eh_else_set_n_body): Likewise.
2099         (gimple_eh_else_e_body_ptr): Likewise.
2100         (gimple_eh_else_n_body_ptr): Likewise.
2101         (gimple_eh_must_not_throw_set_fndecl): Likewise.
2102         (gimple_eh_must_not_throw_fndecl): Likewise.
2103         (gimple_eh_filter_set_failure): Likewise.
2104         (gimple_eh_filter_set_types): Likewise.
2105         (gimple_eh_filter_failure_ptr): Likewise.
2106         (gimple_eh_filter_types_ptr): Likewise.
2107         (gimple_eh_filter_types): Likewise.
2108         (gimple_catch_set_handler): Likewise.
2109         (gimple_catch_set_types): Likewise.
2110         (gimple_catch_handler_ptr): Likewise.
2111         (gimple_catch_types_ptr): Likewise.
2112         (gimple_catch_types): Likewise.
2113         (gimple_asm_string): Likewise.
2114         (gimple_asm_set_label_op): Likewise.
2115         (gimple_asm_label_op): Likewise.
2116         (gimple_asm_set_clobber_op): Likewise.
2117         (gimple_asm_clobber_op): Likewise.
2118         (gimple_asm_set_output_op): Likewise.
2119         (gimple_asm_output_op_ptr): Likewise.
2120         (gimple_asm_output_op): Likewise.
2121         (gimple_asm_set_input_op): Likewise.
2122         (gimple_asm_input_op_ptr): Likewise.
2123         (gimple_asm_input_op): Likewise.
2124         (gimple_asm_nlabels): Likewise.
2125         (gimple_asm_nclobbers): Likewise.
2126         (gimple_asm_noutputs): Likewise.
2127         (gimple_asm_ninputs): Likewise.
2128         (gimple_bind_set_block): Likewise.
2129         (gimple_bind_block): Likewise.
2130         (gimple_bind_add_seq): Likewise.
2131         (gimple_bind_add_stmt): Likewise.
2132         (gimple_bind_set_body): Likewise.
2133         (gimple_bind_body_ptr): Likewise.
2134         (gimple_bind_append_vars): Likewise.
2135         (gimple_bind_set_vars): Likewise.
2136         (gimple_bind_vars): Likewise.
2137         (gimple_call_clobber_set): Likewise.
2138         (gimple_call_use_set): Likewise.
2139         (gimple_call_set_internal_fn): Likewise.
2140         (gimple_call_set_fntype): Likewise.
2141         (gimple_call_fntype): Likewise.
2142         (gimple_omp_return_lhs_ptr): Likewise.
2143         (gimple_omp_return_lhs): Likewise.
2144         (gimple_omp_return_set_lhs): Likewise.
2145         (gimple_omp_taskreg_set_data_arg): Likewise.
2146         (gimple_omp_taskreg_data_arg_ptr): Likewise.
2147         (gimple_omp_taskreg_data_arg): Likewise.
2148         (gimple_omp_taskreg_set_child_fn): Likewise.
2149         (gimple_omp_taskreg_child_fn_ptr): Likewise.
2150         (gimple_omp_taskreg_child_fn): Likewise.
2151         (gimple_omp_taskreg_set_clauses): Likewise.
2152         (gimple_omp_taskreg_clauses_ptr): Likewise.
2153         (gimple_omp_taskreg_clauses): Likewise.
2154         (gimple_vuse): Likewise.
2155         (gimple_vdef): Likewise.
2156         (gimple_vuse_ptr): Likewise.
2157         (gimple_vdef_ptr): Likewise.
2158         * tree-inline.c (copy_debug_stmt): Likewise.
2159         * tree-phinodes.c (make_phi_node): Likewise.
2161         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
2162         (is_a_helper <gimple_statement_with_ops>::test): New.
2163         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
2164         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
2166         * gimple-streamer-in.c (input_gimple_stmt): Port from union
2167         access to use of as_a.
2168         * gimple.c (gimple_build_asm_1): Likewise.
2169         (gimple_build_try): Likewise.  Also, return a specific subclass
2170         rather than just gimple.
2171         (gimple_build_resx): Port from union access to use of as_a.
2172         (gimple_build_eh_dispatch): Likewise.
2173         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
2174         now that gengtype no longer provides a typed allocator function.
2175         (gimple_copy): Likewise.
2176         * gimple.h (gimple_build_try): Return a specific subclass rather
2177         than just gimple.
2178         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
2179         with subclass access by making use of new return type of
2180         gimple_build_try.
2181         * tree-phinodes.c: (allocate_phi_node): Return a
2182         "gimple_statement_phi *" rather than just a gimple.
2183         (resize_phi_node): Likewise.
2184         (make_phi_node): Replace union access with subclass access by
2185         making use of new return type of allocate_phi_node.
2186         (reserve_phi_args_for_new_edge): Replace union access with as_a.
2187         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
2188         than just a gimple.
2189         (remove_phi_args): Update for change to remove_phi_arg_num.
2191         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
2192         code field to reflect inheritance, rather than embedding of
2193         the base gimple type.
2195 2013-11-19  Richard Biener  <rguenther@suse.de>
2197         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
2198         and destructor and make fel_next a member function.
2199         (fel_next): Transform into ...
2200         (loop_iterator::next): ... this.
2201         (fel_init): Transform into ...
2202         (loop_iterator::loop_iterator): ... this.
2203         (loop_iterator::~loop_iterator): New.
2204         (FOR_EACH_LOOP): Remove loop-iterator argument.
2205         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
2206         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
2207         graphite-clast-to-gimple.c, graphite-scop-detection.c,
2208         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
2209         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
2210         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
2211         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
2212         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
2213         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
2214         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2215         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
2216         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
2217         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
2218         FOR_EACH_LOOP_BREAK with break.
2220 2013-11-19  Richard Biener  <rguenther@suse.de>
2222         PR tree-optimization/59164
2223         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2224         Uncomment assert.
2225         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
2226         whether we can create an epilogue loop to reflect thecases where
2227         we create one.
2229 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
2231         * graphite-sese-to-poly.c: Include expr.h.
2233 2013-11-19  Richard Biener  <rguenther@suse.de>
2235         PR middle-end/58956
2236         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
2237         loads into stmts that may clobber it.
2239 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
2241         * cgraphunit.c (symtab_terminator): New variable.
2242         (queued_nodes): Renamed from first.  Use symtab_terminator as
2243         initializer.
2244         (analyze_functions): Adjust accordingly.
2245         (cgraph_process_new_functions): Return void.
2246         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
2248 2013-11-19  Marek Polacek  <polacek@redhat.com>
2250         * opts.c (common_handle_option): Add -fsanitize=null option.
2251         Turn off -fdelete-null-pointer-checks option when doing the
2252         NULL pointer checking.
2253         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
2254         * tree-pass.h (make_pass_ubsan): Declare.
2255         (make_pass_sanopt): Declare.
2256         * timevar.def (TV_TREE_UBSAN): New timevar.
2257         * passes.def: Add pass_sanopt and pass_ubsan.
2258         * ubsan.h (ubsan_null_ckind): New enum.
2259         (ubsan_mismatch_data): New struct.
2260         (ubsan_expand_null_ifn): Declare.
2261         (ubsan_create_data): Adjust declaration.
2262         (ubsan_type_descriptor): Likewise.
2263         * asan.c: Include "ubsan.h".
2264         (pass_data_sanopt): New pass.
2265         (execute_sanopt): New function.
2266         (gate_sanopt): Likewise.
2267         (make_pass_sanopt): Likewise.
2268         (class pass_sanopt): New class.
2269         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
2270         gimple-iterator.h and cfgloop.h.
2271         (PROB_VERY_UNLIKELY): Define.
2272         (tree_type_map_hash): New function.
2273         (ubsan_type_descriptor): Add new parameter.
2274         Improve type name generation.
2275         (ubsan_create_data): Add new parameter.  Add pointer data into
2276         ubsan structure.
2277         (ubsan_expand_null_ifn): New function.
2278         (instrument_member_call): Likewise.
2279         (instrument_mem_ref): Likewise.
2280         (instrument_null): Likewise.
2281         (ubsan_pass): Likewise.
2282         (gate_ubsan): Likewise.
2283         (make_pass_ubsan): Likewise.
2284         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
2285         (class pass_ubsan): New class.
2286         (pass_data_ubsan): New pass.
2287         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
2288         * internal-fn.c (expand_UBSAN_NULL): New function.
2289         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
2290         even when !flag_toplevel_reorder.
2291         * internal-fn.def (UBSAN_NULL): New.
2293 2013-11-19  Jan Hubicka  <jh@suse.cz>
2295         * cgraph.c (cgraph_create_indirect_edge): Use
2296         get_polymorphic_call_info.
2297         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
2298         maybe_in_construction and maybe_derived_type.
2299         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
2300         (ipa_dummy_polymorphic_call_context): New global var.
2301         (possible_polymorphic_call_targets): Add context paramter.
2302         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
2303         (possible_polymorphic_call_target_p): Likewise.
2304         (get_polymorphic_call_info): New function.
2305         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
2306         (add_type_duplicate): Remove forgotten debug output.
2307         (method_class_type): Add sanity check.
2308         (maybe_record_node): Add FINALP parameter.
2309         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
2310         by info by get_binfo_at_offset.
2311         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
2312         parameters; pass them to record-binfo.
2313         (polymorphic_call_target_d): Add context and FINAL.
2314         (polymorphic_call_target_hasher::hash): Hash context.
2315         (polymorphic_call_target_hasher::equal): Compare context.
2316         (free_polymorphic_call_targets_hash):
2317         (get_class_context): New function.
2318         (contains_type_p): New function.
2319         (get_polymorphic_call_info): New function.
2320         (walk_bases): New function.
2321         (possible_polymorphic_call_targets): Add context parameter; honnor it.
2322         (dump_possible_polymorphic_call_targets): Dump context.
2323         (possible_polymorphic_call_target_p): Add context.
2324         (update_type_inheritance_graph): Update comment.s
2325         (ipa_set_jf_known_type): Assert that compoentn type is known.
2326         (ipa_note_param_call): Do not tamper with offsets.
2327         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
2328         outer type.
2329         (update_indirect_edges_after_inlining): Likewise.
2330         (ipa_write_indirect_edge_info): Stream new fields.
2331         (ipa_read_indirect_edge_info): Stream in new fields.
2333 2013-11-19  Jan Hubicka  <jh@suse.cz>
2335         * tree-pretty-print.c (dump_generic_node): Print class type of
2336         OBJ_TYPE_REF.
2338 2013-11-19  Joey Ye  <joey.ye@arm.com>
2340         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
2341         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
2342         for new option.
2343         * config/arm/arm.c (arm_option_override): By default disable
2344         -marm-pic-data-is-text-relative.
2345         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
2346         (arm_assemble_integer): Likewise.
2347         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
2348         New macro to initialize -marm-pic-data-is-text-relative.
2350 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
2352         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
2353         (address_cost_data): New field.
2354         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
2355         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
2357 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2359         * config/aarch64/aarch64.md: Remove v8type from all insns.
2361 2013-11-19  Richard Biener  <rguenther@suse.de>
2363         PR tree-optimization/57517
2364         * tree-predcom.c (combinable_refs_p): Verify the combination
2365         is always executed when the refs are.
2367 2013-11-19  Jeff Law  <law@redhat.com>
2369         * tree-ssa-threadupdate.c: Include ssa-iterators.h
2370         (copy_phi_arg_into_existing_phi): New function.
2371         (any_remaining_duplicated_blocks): Likewise.
2372         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
2373         blocks on a jump threading path.
2375         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
2376         thread through a joiner which has the latch edge.
2378 2013-11-19  Jan Hubicka  <jh@suse.cz>
2380         * md.texi (setmem): Document new parameter.
2381         * optabs.c (maybe_gen_insn): Support 9 operands.
2382         * builtins.c (determine_block_size): Add probable_max_size;
2383         support anti-ranges.
2384         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
2385         probable_max_size.
2386         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
2387         emit_block_move, clear_storage_hints, set_storage_via_setmem):
2388         Likewise.
2389         * expr.h (emit_block_move_hints, clear_storage_hints,
2390         set_storage_via_setmem): Update prototype.
2391         * i386.md (setmem, movmem patterns): Add 9th operand.
2392         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
2393         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
2394         argument; pass it to decide_alg.
2396 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2398         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
2399         (n_basic_blocks_for_fn): ...this.
2401         (n_basic_blocks): Eliminate macro as work towards making uses of
2402         cfun be explicit.
2404         * cfgloop.c (init_loops_structure): Update for renaming of
2405         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
2406         * graph.c (draw_cfg_nodes_no_loops): Likewise.
2407         * ipa-utils.c (ipa_merge_profiles): Likewise.
2408         * lto-streamer-in.c (make_new_block): Likewise.
2409         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2410         (dump_function_to_file): Likewise.
2412         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
2413         macro with "n_basic_blocks_for_fn (cfun)".
2414         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
2415         (duplicate_computed_gotos): Likewise.
2416         (reorder_basic_blocks): Likewise.
2417         * bt-load.c (augment_live_range): Likewise.
2418         * cfg.c (expunge_block): Likewise.
2419         (compact_blocks): Likewise.
2420         * cfganal.c (single_pred_before_succ_order): Likewise.
2421         (compute_idf): Likewise.
2422         (flow_dfs_compute_reverse_init): Likewise.
2423         (pre_and_rev_post_order_compute): Likewise.
2424         (pre_and_rev_post_order_compute_fn): Likewise.
2425         (inverted_post_order_compute): Likewise.
2426         (post_order_compute): Likewise.
2427         (print_edge_list): Likewise.
2428         (find_unreachable_blocks): Likewise.
2429         (mark_dfs_back_edges): Likewise.
2430         * cfgcleanup.c (try_optimize_cfg): Likewise.
2431         (try_forward_edges): Likewise.
2432         * cfghooks.c (dump_flow_info): Likewise.
2433         * cfgloop.c (verify_loop_structure): Likewise.
2434         (get_loop_body): Likewise.
2435         (flow_loops_find): Likewise.
2436         * cfgloopmanip.c (add_loop): Likewise.
2437         (remove_path): Likewise.
2438         (find_path): Likewise.
2439         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2440         (rtl_verify_bb_layout): Likewise.
2441         (entry_of_function): Likewise.
2442         (rtl_create_basic_block): Likewise.
2443         * coverage.c (coverage_compute_cfg_checksum): Likewise.
2444         * cprop.c (one_cprop_pass): Likewise.
2445         (is_too_expensive): Likewise.
2446         * df-core.c (df_compute_cfg_image): Likewise.
2447         (df_compact_blocks): Likewise.
2448         (df_worklist_dataflow_doublequeue): Likewise.
2449         * dominance.c (calculate_dominance_info): Likewise.
2450         (calc_dfs_tree): Likewise.
2451         (calc_dfs_tree_nonrec): Likewise.
2452         (init_dom_info): Likewise.
2453         * domwalk.c (cmp_bb_postorder): Likewise.
2454         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2455         (generate_setjmp_warnings): Likewise.
2456         * fwprop.c (build_single_def_use_links): Likewise.
2457         * gcse.c (is_too_expensive): Likewise.
2458         (one_code_hoisting_pass): Likewise.
2459         (one_pre_gcse_pass): Likewise.
2460         * graphite.c (graphite_initialize): Likewise.
2461         * haifa-sched.c (haifa_sched_init): Likewise.
2462         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
2463         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
2464         * ira-build.c (ira_build): Likewise.
2465         * lcm.c (compute_nearerout): Likewise.
2466         (compute_available): Likewise.
2467         (compute_laterin): Likewise.
2468         (compute_antinout_edge): Likewise.
2469         * lra-lives.c (lra_create_live_ranges): Likewise.
2470         * lra.c (has_nonexceptional_receiver): Likewise.
2471         * mcf.c (create_fixup_graph): Likewise.
2472         * profile.c (branch_prob): Likewise.
2473         * reg-stack.c (convert_regs_2): Likewise.
2474         * regrename.c (regrename_analyze): Likewise.
2475         * reload1.c (has_nonexceptional_receiver): Likewise.
2476         * reorg.c (dbr_schedule): Likewise.
2477         * sched-deps.c (sched_deps_init): Likewise.
2478         * sched-ebb.c (schedule_ebbs): Likewise.
2479         * sched-rgn.c (extend_regions): Likewise.
2480         (schedule_insns): Likewise.
2481         (sched_rgn_init): Likewise.
2482         (extend_rgns): Likewise.
2483         (haifa_find_rgns): Likewise.
2484         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
2485         (sel_recompute_toporder): Likewise.
2486         * sel-sched.c (run_selective_scheduling): Likewise.
2487         * store-motion.c (one_store_motion_pass): Likewise.
2488         (remove_reachable_equiv_notes): Likewise.
2489         * tracer.c (tracer): Likewise.
2490         (tail_duplicate): Likewise.
2491         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
2492         (dump_cfg_stats): Likewise.
2493         (gimple_dump_cfg): Likewise.
2494         (create_bb): Likewise.
2495         (build_gimple_cfg): Likewise.
2496         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
2497         * tree-inline.c (optimize_inline_calls): Likewise.
2498         (fold_marked_statements): Likewise.
2499         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
2500         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2501         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2502         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
2503         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2504         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
2505         * tree-ssa-pre.c (do_pre): Likewise.
2506         (init_pre): Likewise.
2507         (compute_avail): Likewise.
2508         * tree-ssa-reassoc.c (init_reassoc): Likewise.
2509         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2510         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
2511         (init_worklist): Likewise.
2512         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2513         * var-tracking.c (variable_tracking_main_1): Likewise.
2514         (vt_find_locations): Likewise.
2515         (vt_stack_adjustments): Likewise.
2516         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2517         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2519 2013-11-18  Jan Hubicka  <jh@suse.cz>
2521         * profile.c (compute_branch_probabilities): Do not sanity check
2522         run_max.
2524 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
2526         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
2527         GET_MODE_PRECISION.
2528         * fold-const.c (fold_single_bit_test_into_sign_test)
2529         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
2531 2013-11-18  Teresa Johnson  <tejohnson@google.com>
2533         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
2534         cfglayout after bb reordering.
2535         * passes.def: Move compgotos before bb reordering since it goes into
2536         cfglayout.
2538 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
2540         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
2541         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
2542         static.
2543         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
2544         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
2545         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
2546         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
2547         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
2548         Remove all_lto_gen_passes.
2549         * passes.c (pass_manager::dump_passes): Remove its use.
2550         (pass_manager::register_pass): Likewise.
2551         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
2552         (pass_manager::pass_manager): Don't initialize or use it.
2553         (write_lto): New static function.
2554         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
2555         instead of using all_lto_gen_passes.
2556         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
2557         pass_ipa_lto_finish_out): Delete.
2558         * tree-pass.h (make_pass_ipa_lto_gimple_out,
2559         make_pass_ipa_lto_finish_out): Don't declare.
2561 2013-11-18  Jeff Law  <law@redhat.com>
2563         * tree-ssa-threadupdate.c (redirection_data): Record two
2564         duplicated blocks instead of just one.
2565         (local_info): Explain why we don't create a template for the
2566         second duplicated block in a thread path.
2567         (create_block_for_threading): Accept argument indicating array
2568         index into redirection_data to store its result.
2569         (lookup_redirection_data): Initialize both duplicate blocks.
2570         (ssa_create_duplicates): If a jump threading path needs multiple
2571         blocks duplicated, then duplicate them.
2572         (ssa_fix_duplicate_block_edges): Corresponding changes.
2573         (ssa_fixup_template_block, thread_single_edge):  Likewise.
2575 2013-11-18  Marek Polacek  <polacek@redhat.com>
2577         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
2579 2013-11-18  Andrew Pinski <apinski@cavium.com>
2580             Steve Ellcey  <sellcey@mips.com>
2582         PR target/56552
2583         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
2584         type restriction from equality_operator on conditonal move.
2585         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
2586         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
2588 2013-11-18  Jeff Law  <law@redhat.com>
2590         * tree-ssa-threadupdate.c: Fix file block comment.
2591         Fix minor indention issue.
2593 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
2595         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
2596         ix86_address_subreg_operand.  Move subreg checks to
2597         ix86_validate_address_register.  Move address override check to
2598         ix86_legitimate_address_p.
2599         (ix86_validate_address_register): New function.
2600         (ix86_legitimate_address_p): Call ix86_validate_address_register
2601         to validate base and index registers.  Add address override check
2602         from ix86_decompose_address.
2603         (ix86_decompose_address): Remove.
2605 2013-11-18  Richard Biener  <rguenther@suse.de>
2607         PR tree-optimization/59125
2608         PR tree-optimization/54570
2609         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
2610         is not complete do not treat component-references with offset zero
2611         but different fields as equal.
2612         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
2613         (compute_object_sizes): Apply TLC.  Propagate the constant
2614         results into all uses and fold their stmts.
2615         * passes.def (pass_all_optimizations): Move pass_object_sizes
2616         after the first pass_forwprop and before pass_fre.
2618 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2620         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
2621         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
2622         (tree_ctz): Remove cast to unsigned type.
2623         * builtins.c (fold_builtin_memory_op): Likewise.
2624         * dwarf2out.c (descr_info_loc): Likewise.
2625         * godump.c (go_output_typedef): Likewise.
2626         * omp-low.c (expand_omp_simd): Likewise.
2627         * stor-layout.c (excess_unit_span): Likewise.
2628         * tree-object-size.c (addr_object_size): Likewise.
2629         * tree-sra.c (analyze_all_variable_accesses): Likewise.
2630         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2631         (simplify_rotate): Likewise.
2632         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
2633         (handle_pointer_plus): Likewise.
2634         * tree-switch-conversion.c (check_range): Likewise.
2635         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
2636         * tsan.c (instrument_builtin_call): Likewise.
2637         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
2638         * trans-mem.c (tm_log_add): Likewise.
2639         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
2640         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
2641         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
2642         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
2644 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2646         * tree.h (host_integerp, tree_low_cst): Delete.
2647         * tree.c (host_integerp, tree_low_cst): Delete.
2649 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2651         * expr.h: Update comments to refer to tree_to_[su]hwi rather
2652         than tree_low_cst.
2653         * fold-const.c (fold_binary_loc): Likewise.
2654         * expr.c (store_constructor): Use tree_to_uhwi rather than
2655         tree_low_cst.
2656         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
2657         * stmt.c (emit_case_dispatch_table): Likewise.
2658         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2660 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2662         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
2663         config/aarch64/aarch64.c, config/alpha/predicates.md,
2664         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
2665         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
2666         config/mep/mep-pragma.c, config/mips/mips.c,
2667         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
2668         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
2669         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
2670         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
2671         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
2672         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
2673         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
2674         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
2675         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
2676         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
2678 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2680         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
2681         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
2682         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
2683         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
2684         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
2685         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
2686         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
2687         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
2688         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
2689         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
2690         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
2692 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2694         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
2695         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
2697 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2699         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
2700         than host_integerp.
2702 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2704         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
2705         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
2706         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
2707         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
2708         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
2709         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
2710         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
2711         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
2712         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
2713         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
2714         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
2715         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
2716         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
2717         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
2718         tree_fits_uhwi_p throughout.
2720 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2722         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
2723         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
2724         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
2725         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
2726         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
2727         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
2728         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
2729         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
2730         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
2731         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
2732         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
2733         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
2734         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
2735         throughout.
2737 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2739         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
2740         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
2742 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2744         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
2745         flag if it kills its address, not its post-increment.
2747 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
2749         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2750         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2751         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2752         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2753         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2754         (gimple_call_with_bounds_p): New.
2755         (gimple_call_set_with_bounds): New.
2756         (gimple_call_num_nobnd_args): Remove.
2757         (gimple_call_nobnd_arg): Remove.
2758         * tree.h (CALL_WITH_BOUNDS_P): New.
2759         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2761 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
2763         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
2764         (symtab_node_name): Rename to symtab_node::name.
2765         (cgraph_node_asm_name): Remove.
2766         (varpool_node_asm_name): Remove.
2767         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
2768         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
2769         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
2770         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
2771         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
2773 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2775         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
2776         * config/arm/arm.c (arm_cortex_a53_tune): New.
2777         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
2779 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2781         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
2782         (case ${target}): Add bdver4.
2783         * config/i386/bdver3.md: Add bdver4.
2784         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2785         -march=native recognize bdver4 processors.
2786         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2787         bdver4 def_and_undef
2788         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
2789         (m_BDVER4): New definition.
2790         (m_AMD_MULTIPLE): Includes m_BDVER4.
2791         (processor_target_table): Add bdver4 entry.
2792         (static const char *const cpu_names): Add bdver4 entry.
2793         (software_prefetching_beneficial_p): Add bdver3.
2794         (ix86_option_override_internal): Add bdver4 instruction sets.
2795         (ix86_issue_rate): Add bdver4.
2796         (ix86_adjust_cost): Add bdver4.
2797         (ia32_multipass_dfa_lookahead): Add bdver4.
2798         (enum processor_model): Add M_AMDFAM15H_BDVER4.
2799         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
2800         (has_dispatch): Add bdver4.
2801         * config/i386/i386.h (TARGET_BDVER4): New definition.
2802         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
2803         (enum processor_type): Add PROCESSOR_BDVER4.
2804         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
2805         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
2806         * doc/extend.texi: Add details about bdver4.
2807         * doc/invoke.texi: Add details about bdver4. Add
2808         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
2810 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2812         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
2813         sdmode_stack_slot also in little-endian mode.
2815 2013-11-17  Jan Hubicka  <jh@suse.cz>
2817         * doc/md.texi (setmem, movstr): Update documentation.
2818         * builtins.c (determine_block_size): New function.
2819         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
2820         (expand_builtin_memset_args): Use it and pass it to
2821         set_storage_via_setmem.
2822         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
2823         parameters; update call to expander.
2824         (emit_block_move_hints): Add min_size/max_size parameters.
2825         (clear_storage_hints): Likewise.
2826         (set_storage_via_setmem): Likewise.
2827         (clear_storage): Update.
2828         * expr.h (emit_block_move_hints, clear_storage_hints,
2829         set_storage_via_setmem): Update prototypes.
2830         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
2831         (ix86_expand_movmem, ix86_expand_setmem): Remove.
2832         (ix86_expand_movmem, ix86_expand_setmem): Remove.
2833         * i386.md (movmem, setmem): Pass parameters.
2835 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
2837         PR target/59153
2838         * config/i386/i386.c (ix86_address_subreg_operand): Do not
2839         reject non-integer subregs.
2840         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
2841         Move check for invalid x32 constant addresses ...
2842         (ix86_legitimate_address_p): ... here.
2844 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2846         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
2847         parameter and use it in REG_FRAME_RELATED_EXPR note.
2848         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
2849         parameter.
2850         (rs6000_emit_prologue): Likewise, but for little endian VSX
2851         stores, pass the source register of the store instead.
2853 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
2855         * gimple.h: Reorder prototypes to match .c declaration order, and
2856         remove protyotypes for functions not in gimple.c.
2857         (LABEL): Move to tree-into-ssa.c.
2858         * gimple.c: Remove unused prototypes.
2859         (get_base_address): Move to tree.c.
2860         * tree.c (get_base_address): Relocate from gimple.c.
2861         * builtins.h (validate_gimple_arglist): Add prototype.
2862         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
2863         * cfgexpand.h: New File.
2864         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
2865         * tree.h (build_addr): Move to tree-nested.h.
2866         * tree-nested.h: New File.
2867         (build_addr, lower_nested_functions, insert_field_into_struct): Add
2868         prototypes.
2869         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
2870         * ipa-inline-analysis.c: Include cfgexpand.h.
2871         * cgraphunit.c: Include tree-nested.h.
2872         * omp-low.c: Likewise.
2873         * tree-parloops.c: Likewise.
2874         * gimple-low.h: Likewise.
2875         * tree-profile.h: Likewise.
2876         * expr.c: Include cfgexpand.h.
2877         * tree-affine.c: Likewise.
2878         * tree-ssa.c: Likewise.
2879         * tree-ssa-loop-im.c: Include trans-mem.h.
2880         * tree-ssa-tail-merge.c: Likewise.
2881         * value-prof.c: Include builtins.h and tree-nested.h.
2882         * tree-into-ssa.c (LABEL): Define here.
2884 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
2886         * config/arc/arc.c (arc_predicate_delay_insns): New function.
2887         (pass_data_arc_predicate_delay_insns): New pass_data instance.
2888         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
2889         (make_pass_arc_predicate_delay_insns): New function.
2890         (arc_init): Register pass_arc_predicate_delay_insns if
2891         flag_delayed_branch is active.
2893 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
2895         * config/arc/constraints.md (Rcq): Simplify register number test.
2897 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2899         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
2901 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2903         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
2904         is null.
2906 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2908         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
2909         * gimple-pretty-print.c (dump_omp_for): Add case for
2910         GF_OMP_FOR_KIND_CILKSIMD.
2911         * gimple.h (enum gf_mask): Restructure entries to add
2912         GF_OMP_FOR_KIND_CILKSIMD.
2913         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
2914         (gimplify_omp_for): Handle CILK_SIMD.
2915         (gimplify_expr): Add ccase for CILK_SIMD.
2916         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
2917         (build_outer_var_ref): Same.
2918         (check_omp_nesting_restrictions): Same.
2919         (lower_rec_input_clauses): Same.
2920         (lower_lastprivate_clauses): Same.
2921         (expand_omp_for): Same.
2922         (execute_expand_omp): Check flag_enable_cilkplus.
2923         (execute_lower_omp): Same.
2924         (diagnose_sb_0): Handle CILK_SIMD.
2925         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
2926         (setjmp_or_longjmp_p): New.
2927         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
2928         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
2929         * tree.def: Add tree code for CILK_SIMD.
2931 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2933         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
2934         Remove.
2935         (altivec_vperm_<mode>): Revert earlier little endian change.
2936         (*altivec_vperm_<mode>_internal): Remove.
2937         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
2938         (*altivec_vperm_<mode>_uns_internal): Remove.
2939         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
2941 2013-11-15  Jeff Law  <law@redhat.com>
2943         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
2944         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
2945         * gimple-ssa-isolate-paths.c
2946         (find_implicit_erroneous_behaviour): Corresponding changes.
2947         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
2948         (find_explicit_erroneous_behaviour): Likewise.
2950 2013-11-15  Jeff Law  <law@redhat.com>
2952         * ifcvt.c (find_cond_trap): Properly handle case where
2953         trap_bb == else_bb.
2955 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
2957         * configure: Regenerate.
2959 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
2961         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
2962         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
2963         where it is incorrect or missing.
2965 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
2967         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
2968         host_integerp test.
2969         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
2970         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
2971         constant.
2972         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
2973         pair with a TREE_CODE test and TREE_INT_CST_LOW.
2974         * tree-vect-generic.c (expand_vector_divmod): Likewise.
2976 2013-11-15  Richard Biener  <rguenther@suse.de>
2978         PR tree-optimization/50262
2979         * tree-ssa-alias.h (struct pt_solution): Split
2980         vars_contains_global into vars_contains_nonlocal,
2981         vars_contains_escaped and vars_contains_escaped_heap.
2982         * tree-ssa-structalias.c (label_visit): Expand comment.
2983         (handle_lhs_call): Adjust comment.
2984         (set_uids_in_ptset): Set the new flags appropriately.
2985         (pt_solution_set): Adjust.
2986         (pt_solution_set_var): Likewise.
2987         (pt_solution_ior_into): Likewise.
2988         (pt_solution_includes_global): Likewise.
2989         (pt_solutions_intersect_1): Optimize escaped handling.
2990         (compute_points_to_sets): Remove heap variable globalization.
2991         (ipa_escaped_pt): Adjust initializer.
2992         (pass_data_ipa_pta): Do not run TODO_update_ssa.
2993         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
2994         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
2996 2013-11-15  Richard Biener  <rguenther@suse.de>
2998         * tree-loop-distribution.c (tree_loop_distribution): Make sure
2999         to distribute all stores.
3001 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3003         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
3005 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
3007         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
3008         * configure.ac: Determine target_header_dir earlier.
3009         (--with-glibc-version): New configure option.
3010         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
3011         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
3012         * configure: Regenerate.
3013         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
3014         native toolchains for default.
3015         (--with-glibc-version): Document.
3017 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
3019         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
3021 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
3023         * lto-streamer-in.c (input function): Call cgraph_create_node if
3024         cgraph_get_node failed.
3026 2013-11-14   Olivier Hainque  <hainque@adacore.com>
3028         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
3029         defer allocation of DECL_IGNORED_P variables at toplevel unless really
3030         small.  Factorize size threshold computation from the existing one.
3031         (expand_used_vars): Refine comment.
3033 2013-11-14  Cong Hou  <congh@google.com>
3035         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
3036         address field as it can be obtained from dr.  Rename the struct.
3037         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
3038         steps of data references during sort.
3039         (vect_prune_runtime_alias_test_list): Adjust with the change to
3040         struct dr_with_seg_len.
3041         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3042         Adjust with the change to struct dr_with_seg_len.
3044 2013-11-14  Jeff Law  <law@redhat.com>
3046         PR middle-end/59127
3047         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
3048         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
3049         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
3050         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
3051         edges, then ignore it.  If the statement exhibiting erroneous
3052         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
3053         then we can not optimize.
3054         (find_explicit_erroneous_behaviour): Likewise.
3056 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
3058         * gimplify-me.h:  New file.  Add prototypes.
3059         * gimplify.h: Don't include gimple.h.
3060         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
3061         Relocate from gimple.h.
3062         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
3063         is_gimple_sizepos): Move to gimplify.h.
3064         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
3065         (enum gsi_iterator_update): Move to gimple-iterator.h.
3066         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
3067         * gimplify-me.c: New File.
3068         (force_gimple_operand_1, force_gimple_operand,
3069         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3070         gimple_regimplify_operands): Relocate from gimplify.c.
3071         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
3072         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3073         gimple_regimplify_operands): Move to gimplify-me.c.
3074         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
3075         from gimple.h.
3076         * Makefile.in (OBJS): Add gimplify-me.o
3077         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
3078         required.
3079         * cfgloopmanip.c: Likewise.
3080         * cgraphunit.c: Likewise.
3081         * cilk-common.c: Likewise.
3082         * fold-const.c: Likewise.
3083         * function.c: Likewise.
3084         * gimple-expr.c: Likewise.
3085         * gimple-fold.c: Likewise.
3086         * gimple-ssa-strength-reduction.c: Likewise.
3087         * gimple.c: Likewise.
3088         * graphite-clast-to-gimple.c: Likewise.
3089         * graphite-sese-to-poly.c: Likewise.
3090         * ipa-prop.c: Likewise.
3091         * ipa-split.c: Likewise.
3092         * ipa.c: Likewise.
3093         * langhooks.c: Likewise.
3094         * omp-low.c: Likewise.
3095         * sese.c: Likewise.
3096         * stor-layout.c: Likewise.
3097         * targhooks.c: Likewise.
3098         * trans-mem.c: Likewise.
3099         * tree-affine.c: Likewise.
3100         * tree-cfg.c: Likewise.
3101         * tree-cfgcleanup.c: Likewise.
3102         * tree-complex.c: Likewise.
3103         * tree-if-conv.c: Likewise.
3104         * tree-inline.c: Likewise.
3105         * tree-loop-distribution.c: Likewise.
3106         * tree-nested.c: Likewise.
3107         * tree-parloops.c: Likewise.
3108         * tree-predcom.c: Likewise.
3109         * tree-profile.c: Likewise.
3110         * tree-scalar-evolution.c: Likewise.
3111         * tree-sra.c: Likewise.
3112         * tree-ssa-address.c: Likewise.
3113         * tree-ssa-ccp.c: Likewise.
3114         * tree-ssa-dce.c: Likewise.
3115         * tree-ssa-forwprop.c: Likewise.
3116         * tree-ssa-ifcombine.c: Likewise.
3117         * tree-ssa-loop-im.c: Likewise.
3118         * tree-ssa-loop-ivopts.c: Likewise.
3119         * tree-ssa-loop-manip.c: Likewise.
3120         * tree-ssa-loop-niter.c: Likewise.
3121         * tree-ssa-loop-prefetch.c: Likewise.
3122         * tree-ssa-loop-unswitch.c: Likewise.
3123         * tree-ssa-math-opts.c: Likewise.
3124         * tree-ssa-phiopt.c: Likewise.
3125         * tree-ssa-phiprop.c: Likewise.
3126         * tree-ssa-pre.c: Likewise.
3127         * tree-ssa-propagate.c: Likewise.
3128         * tree-ssa-reassoc.c: Likewise.
3129         * tree-ssa-sccvn.c: Likewise.
3130         * tree-ssa-strlen.c: Likewise.
3131         * tree-ssa.c: Likewise.
3132         * tree-switch-conversion.c: Likewise.
3133         * tree-tailcall.c: Likewise.
3134         * tree-vect-data-refs.c: Likewise.
3135         * tree-vect-generic.c: Likewise.
3136         * tree-vect-loop-manip.c: Likewise.
3137         * tree-vect-loop.c: Likewise.
3138         * tree-vect-patterns.c: Likewise.
3139         * tree-vect-stmts.c: Likewise.
3140         * tree.c: Likewise.
3141         * tsan.c: Likewise.
3142         * value-prof.c: Likewise.
3143         * config/aarch64/aarch64.c: Likewise.
3144         * config/alpha/alpha.c: Likewise.
3145         * config/darwin.c: Likewise.
3146         * config/i386/i386.c: Likewise.
3147         * config/ia64/ia64.c: Likewise.
3148         * config/mep/mep.c: Likewise.
3149         * config/mips/mips.c: Likewise.
3150         * config/rs6000/rs6000.c: Likewise.
3151         * config/s390/s390.c: Likewise.
3152         * config/sh/sh.c: Likewise.
3153         * config/sparc/sparc.c: Likewise.
3154         * config/spu/spu.c: Likewise.
3155         * config/stormy16/stormy16.c: Likewise.
3156         * config/tilegx/tilegx.c: Likewise.
3157         * config/tilepro/tilepro.c: Likewise.
3158         * config/xtensa/xtensa.c: Likewise.
3160 2013-11-14  Diego Novillo  <dnovillo@google.com>
3162         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
3164 2013-11-14  Diego Novillo  <dnovillo@google.com>
3166         * tree.h: Include fold-const.h.
3167         (aggregate_value_p): Moved to function.h.
3168         (alloca_call_p): Moved to calls.h.
3169         (allocate_struct_function): Moved to function.h.
3170         (apply_tm_attr): Moved to attribs.h.
3171         (array_at_struct_end_p): Moved to expr.h.
3172         (array_ref_element_size): Moved to tree-dfa.h.
3173         (array_ref_low_bound): Moved to tree-dfa.h.
3174         (array_ref_up_bound): Moved to tree.h.
3175         (assemble_alias): Moved to cgraph.h.
3176         (bit_from_pos): Moved to stor-layout.h.
3177         (build_addr): Moved to tree-nested.h.
3178         (build_duplicate_type): Moved to tree-inline.h.
3179         (build_fold_addr_expr): Moved to fold-const.h.
3180         (build_fold_addr_expr_with_type): Moved to fold-const.h.
3181         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
3182         (build_fold_indirect_ref): Moved to fold-const.h.
3183         (build_fold_indirect_ref_loc): Moved to fold-const.h.
3184         (build_personality_function): Moved to tree.h.
3185         (build_range_check): Moved to fold-const.h.
3186         (build_simple_mem_ref): Moved to fold-const.h.
3187         (build_simple_mem_ref_loc): Moved to fold-const.h.
3188         (build_tm_abort_call): Moved to trans-mem.h.
3189         (byte_from_pos): Moved to stor-layout.h.
3190         (call_expr_flags): Moved to calls.h.
3191         (can_move_by_pieces): Moved to expr.h.
3192         (categorize_ctor_elements): Moved to expr.h.
3193         (change_decl_assembler_name): Moved to gcc-symtab.h.
3194         (combine_comparisons): Moved to fold-const.h.
3195         (complete_ctor_at_level_p): Moved to tree.h.
3196         (component_ref_field_offset): Moved to tree-dfa.h.
3197         (compute_builtin_object_size): Moved to tree-object-size.h.
3198         (compute_record_mode): Moved to stor-layout.h.
3199         (constant_boolean_node): Moved to fold-const.h.
3200         (constructor_static_from_elts_p): Moved to varasm.h.
3201         (cxx11_attribute_p): Moved to attribs.h.
3202         (debug_body): Moved to print-tree.h.
3203         (debug_find_tree): Moved to tree-inline.h.
3204         (debug_fold_checksum): Moved to fold-const.h.
3205         (debug_head): Moved to print-tree.h.
3206         (debug_head): Moved to print-tree.h.
3207         (debug_raw): Moved to print-tree.h.
3208         (debug_tree): Moved to print-tree.h.
3209         (debug_vec_tree): Moved to print-tree.h.
3210         (debug_verbose): Moved to print-tree.h.
3211         (debug_verbose): Moved to print-tree.h.
3212         (decl_attributes): Moved to attribs.h.
3213         (decl_binds_to_current_def_p): Moved to varasm.h.
3214         (decl_default_tls_model): Moved to varasm.h.
3215         (decl_replaceable_p): Moved to varasm.h.
3216         (div_if_zero_remainder): Moved to fold-const.h.
3217         (double_int mem_ref_offset): Moved to fold-const.h.
3218         (dump_addr): Moved to print-tree.h.
3219         (element_precision): Moved to machmode.h.
3220         (expand_dummy_function_end): Moved to function.h.
3221         (expand_function_end): Moved to function.h.
3222         (expand_function_start): Moved to function.h.
3223         (expand_label): Moved to stmt.h.
3224         (expr_first): Moved to tree-iterator.h.
3225         (expr_last): Moved to tree-iterator.h.
3226         (finalize_size_functions): Moved to stor-layout.h.
3227         (finish_builtin_struct): Moved to stor-layout.h.
3228         (finish_record_layout): Moved to stor-layout.h.
3229         (fixup_signed_type): Moved to stor-layout.h.
3230         (fixup_unsigned_type): Moved to stor-layout.h.
3231         (flags_from_decl_or_type): Moved to calls.h.
3232         (fold): Moved to fold-const.h.
3233         (fold_abs_const): Moved to fold-const.h.
3234         (fold_binary): Moved to fold-const.h.
3235         (fold_binary_loc): Moved to fold-const.h.
3236         (fold_binary_to_constant): Moved to fold-const.h.
3237         (fold_build1): Moved to fold-const.h.
3238         (fold_build1_initializer_loc): Moved to fold-const.h.
3239         (fold_build1_loc): Moved to fold-const.h.
3240         (fold_build1_stat_loc): Moved to fold-const.h.
3241         (fold_build2): Moved to fold-const.h.
3242         (fold_build2_initializer_loc): Moved to fold-const.h.
3243         (fold_build2_loc): Moved to fold-const.h.
3244         (fold_build2_stat_loc): Moved to fold-const.h.
3245         (fold_build3): Moved to fold-const.h.
3246         (fold_build3_loc): Moved to fold-const.h.
3247         (fold_build3_stat_loc): Moved to fold-const.h.
3248         (fold_build_call_array): Moved to fold-const.h.
3249         (fold_build_call_array_initializer): Moved to fold-const.h.
3250         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
3251         (fold_build_call_array_loc): Moved to fold-const.h.
3252         (fold_build_cleanup_point_expr): Moved to fold-const.h.
3253         (fold_convert): Moved to fold-const.h.
3254         (fold_convert_loc): Moved to fold-const.h.
3255         (fold_convertible_p): Moved to fold-const.h.
3256         (fold_defer_overflow_warnings): Moved to fold-const.h.
3257         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
3258         (fold_fma): Moved to fold-const.h.
3259         (fold_ignored_result): Moved to fold-const.h.
3260         (fold_indirect_ref): Moved to fold-const.h.
3261         (fold_indirect_ref_1): Moved to fold-const.h.
3262         (fold_indirect_ref_loc): Moved to fold-const.h.
3263         (fold_read_from_constant_string): Moved to fold-const.h.
3264         (fold_real_zero_addition_p): Moved to fold-const.h.
3265         (fold_single_bit_test): Moved to fold-const.h.
3266         (fold_strip_sign_ops): Moved to fold-const.h.
3267         (fold_ternary): Moved to fold-const.h.
3268         (fold_ternary_loc): Moved to fold-const.h.
3269         (fold_unary): Moved to tree-data-ref.h.
3270         (fold_unary_ignore_overflow): Moved to fold-const.h.
3271         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
3272         (fold_unary_loc): Moved to fold-const.h.
3273         (fold_unary_to_constant): Moved to fold-const.h.
3274         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
3275         (fold_undefer_overflow_warnings): Moved to fold-const.h.
3276         (folding_initializer): Moved to fold-const.h.
3277         (free_temp_slots): Moved to function.h.
3278         (generate_setjmp_warnings): Moved to function.h.
3279         (get_attribute_name): Moved to attribs.h.
3280         (get_identifier): Moved to stringpool.h.
3281         (get_identifier_with_length): Moved to stringpool.h.
3282         (get_inner_reference): Moved to tree.h.
3283         (gimple_alloca_call_p): Moved to calls.h.
3284         (gimplify_parameters): Moved to function.h.
3285         (highest_pow2_factor): Moved to expr.h.
3286         (indent_to): Moved to print-tree.h.
3287         (init_attributes): Moved to attribs.h.
3288         (init_dummy_function_start): Moved to function.h.
3289         (init_function_start): Moved to function.h.
3290         (init_inline_once): Moved to tree-inline.h.
3291         (init_object_sizes): Moved to tree-object-size.h.
3292         (init_temp_slots): Moved to function.h.
3293         (init_tree_optimization_optabs): Moved to optabs.h.
3294         (initialize_sizetypes): Moved to stor-layout.h.
3295         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
3296         (initializer_constant_valid_p): Moved to varasm.h.
3297         (int_const_binop): Moved to fold-const.h.
3298         (internal_reference_types): Moved to stor-layout.h.
3299         (invert_tree_comparison): Moved to fold-const.h.
3300         (invert_truthvalue): Moved to fold-const.h.
3301         (invert_truthvalue_loc): Moved to fold-const.h.
3302         (is_tm_ending_fndecl): Moved to trans-mem.h.
3303         (is_tm_may_cancel_outer): Moved to trans-mem.h.
3304         (is_tm_pure): Moved to trans-mem.h.
3305         (is_tm_safe): Moved to trans-mem.h.
3306         (layout_decl): Moved to stor-layout.h.
3307         (layout_type): Moved to stor-layout.h.
3308         (lookup_attribute_spec): Moved to attribs.h.
3309         (make_accum_type): Moved to stor-layout.h.
3310         (make_decl_one_only): Moved to varasm.h.
3311         (make_decl_rtl): Moved to tree.h.
3312         (make_decl_rtl_for_debug): Moved to varasm.h.
3313         (make_fract_type): Moved to stor-layout.h.
3314         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
3315         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
3316         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
3317         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
3318         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
3319         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
3320         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
3321         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
3322         (make_range): Moved to fold-const.h.
3323         (make_range_step): Moved to fold-const.h.
3324         (make_sat_signed_accum_type): Moved to stor-layout.h.
3325         (make_sat_signed_fract_type): Moved to stor-layout.h.
3326         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
3327         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
3328         (make_signed_accum_type): Moved to stor-layout.h.
3329         (make_signed_fract_type): Moved to stor-layout.h.
3330         (make_signed_type): Moved to stor-layout.h.
3331         (make_unsigned_accum_type): Moved to stor-layout.h.
3332         (make_unsigned_fract_type): Moved to stor-layout.h.
3333         (make_unsigned_type): Moved to stor-layout.h.
3334         (mark_decl_referenced): Moved to varasm.h.
3335         (mark_referenced): Moved to varasm.h.
3336         (may_negate_without_overflow_p): Moved to fold-const.h.
3337         (maybe_get_identifier): Moved to stringpool.h.
3338         (merge_ranges): Moved to fold-const.h.
3339         (merge_weak): Moved to varasm.h.
3340         (mode_for_size_tree): Moved to stor-layout.h.
3341         (multiple_of_p): Moved to fold-const.h.
3342         (must_pass_in_stack_var_size): Moved to calls.h.
3343         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
3344         (native_encode_expr): Moved to fold-const.h.
3345         (native_interpret_expr): Moved to fold-const.h.
3346         (non_lvalue): Moved to fold-const.h.
3347         (non_lvalue_loc): Moved to fold-const.h.
3348         (normalize_offset): Moved to stor-layout.h.
3349         (normalize_rli): Moved to stor-layout.h.
3350         (notice_global_symbol): Moved to varasm.h.
3351         (omit_one_operand): Moved to fold-const.h.
3352         (omit_one_operand_loc): Moved to fold-const.h.
3353         (omit_two_operands): Moved to fold-const.h.
3354         (omit_two_operands_loc): Moved to fold-const.h.
3355         (operand_equal_p): Moved to tree-data-ref.h.
3356         (parse_input_constraint): Moved to stmt.h.
3357         (parse_output_constraint): Moved to stmt.h.
3358         (place_field): Moved to stor-layout.h.
3359         (pop_function_context): Moved to function.h.
3360         (pop_temp_slots): Moved to function.h.
3361         (pos_from_bit): Moved to stor-layout.h.
3362         (preserve_temp_slots): Moved to function.h.
3363         (print_node): Moved to print-tree.h.
3364         (print_node_brief): Moved to print-tree.h.
3365         (print_rtl): Moved to rtl.h.
3366         (process_pending_assemble_externals): Moved to varasm.h.
3367         (ptr_difference_const): Moved to fold-const.h.
3368         (push_function_context): Moved to function.h.
3369         (push_struct_function): Moved to function.h.
3370         (push_temp_slots): Moved to function.h.
3371         (record_tm_replacement): Moved to trans-mem.h.
3372         (relayout_decl): Moved to stor-layout.h.
3373         (resolve_asm_operand_names): Moved to stmt.h.
3374         (resolve_unique_section): Moved to varasm.h.
3375         (rli_size_so_far): Moved to stor-layout.h.
3376         (rli_size_unit_so_far): Moved to stor-layout.h.
3377         (round_down): Moved to fold-const.h.
3378         (round_down_loc): Moved to fold-const.h.
3379         (round_up): Moved to fold-const.h.
3380         (round_up_loc): Moved to fold-const.h.
3381         (set_decl_incoming_rtl): Moved to emit-rtl.h.
3382         (set_decl_rtl): Moved to tree.h.
3383         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
3384         (set_user_assembler_name): Moved to varasm.h.
3385         (setjmp_call_p): Moved to calls.h.
3386         (size_binop): Moved to fold-const.h.
3387         (size_binop_loc): Moved to fold-const.h.
3388         (size_diffop): Moved to fold-const.h.
3389         (size_diffop_loc): Moved to fold-const.h.
3390         (size_int_kind): Moved to fold-const.h.
3391         (stack_protect_epilogue): Moved to function.h.
3392         (start_record_layout): Moved to stor-layout.h.
3393         (supports_one_only): Moved to varasm.h.
3394         (swap_tree_comparison): Moved to fold-const.h.
3395         (tm_malloc_replacement): Moved to trans-mem.h.
3396         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
3397         (tree build_invariant_address): Moved to fold-const.h.
3398         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
3399         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
3400         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
3401         (tree_expr_nonnegative_p): Moved to fold-const.h.
3402         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
3403         (tree_output_constant_def): Moved to varasm.h.
3404         (tree_overlaps_hard_reg_set): Moved to stmt.h.
3405         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
3406         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
3407         (tree_swap_operands_p): Moved to fold-const.h.
3408         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
3409         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
3410         (update_alignment_for_field): Moved to stor-layout.h.
3411         (use_register_for_decl): Moved to function.h.
3412         (variable_size): Moved to rtl.h.
3413         (vector_type_mode): Moved to stor-layout.h.
3414         * cgraph.h: Corresponding changes.
3415         * emit-rtl.h: Corresponding changes.
3416         * expr.h: Corresponding changes.
3417         * function.h: Corresponding changes.
3418         * optabs.h: Corresponding changes.
3419         * trans-mem.h: Corresponding changes.
3420         Protect against multiple inclusion.
3421         * tree-inline.h: Corresponding changes.
3422         * tree-iterator.h: Corresponding changes.
3423         * tree-dfa.h: Include expr.h.
3424         * tree-ssanames.h: Include stringpool.h.
3425         * attribs.h: New file.
3426         * calls.h: New file.
3427         * fold-const.h: New file.
3428         * gcc-symtab.h: New file.
3429         * print-rtl.h: New file.
3430         * print-tree.h: New file.
3431         * stmt.h: New file.
3432         * stor-layout.h: New file.
3433         * strinpool.h: New file.
3434         * tree-nested.h: New file
3435         * tree-object-size.h: New file.
3436         * varasm.h: New file.
3438 2013-11-14  Diego Novillo  <dnovillo@google.com>
3440         * alias.c: Include varasm.h.
3441         Include expr.h.
3442         * asan.c: Include calls.h.
3443         Include stor-layout.h.
3444         Include varasm.h.
3445         * attribs.c: Include stringpool.h.
3446         Include attribs.h.
3447         Include stor-layout.h.
3448         * builtins.c: Include stringpool.h.
3449         Include stor-layout.h.
3450         Include calls.h.
3451         Include varasm.h.
3452         Include tree-object-size.h.
3453         * calls.c: Include stor-layout.h.
3454         Include varasm.h.
3455         Include stringpool.h.
3456         Include attribs.h.
3457         * cfgexpand.c: Include stringpool.h.
3458         Include varasm.h.
3459         Include stor-layout.h.
3460         Include stmt.h.
3461         Include print-tree.h.
3462         * cgraph.c: Include varasm.h.
3463         Include calls.h.
3464         Include print-tree.h.
3465         * cgraphclones.c: Include stringpool.h.
3466         Include function.h.
3467         Include emit-rtl.h.
3468         Move inclusion of rtl.h earlier in the file.
3469         * cgraphunit.c: Include varasm.h.
3470         Include stor-layout.h.
3471         Include stringpool.h.
3472         * cilk-common.c: Include stringpool.h.
3473         Include stor-layout.h.
3474         * combine.c: Include stor-layout.h.
3475         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
3476         Include stringpool.h.
3477         Include calls.h.
3478         * config/aarch64/aarch64.c: Include stringpool.h.
3479         Include stor-layout.h.
3480         Include calls.h.
3481         Include varasm.h.
3482         * config/alpha/alpha.c: Include stor-layout.h.
3483         Include calls.h.
3484         Include varasm.h.
3485         * config/arc/arc.c: Include varasm.h.
3486         Include stor-layout.h.
3487         Include stringpool.h.
3488         Include calls.h.
3489         * config/arm/arm.c: Include stringpool.h.
3490         Include stor-layout.h.
3491         Include calls.h.
3492         Include varasm.h.
3493         * config/avr/avr-c.c: Include stor-layout.h.
3494         * config/avr/avr-log.c: Include print-tree.h.
3495         * config/avr/avr.c: Include print-tree.h.
3496         Include calls.h.
3497         Include stor-layout.h.
3498         Include stringpool.h.
3499         * config/bfin/bfin.c: Include varasm.h.
3500         Include calls.h.
3501         * config/c6x/c6x.c: Include stor-layout.h.
3502         Include varasm.h.
3503         Include calls.h.
3504         Include stringpool.h.
3505         * config/cr16/cr16.c: Include stor-layout.h.
3506         Include calls.h.
3507         * config/cris/cris.c: Include varasm.h.
3508         Include stor-layout.h.
3509         Include calls.h.
3510         Include stmt.h.
3511         * config/darwin.c: Include stringpool.h.
3512         Include varasm.h.
3513         Include stor-layout.h.
3514         * config/epiphany/epiphany.c: Include stor-layout.h.
3515         Include varasm.h.
3516         Include calls.h.
3517         Include stringpool.h.
3518         * config/fr30/fr30.c: Include stor-layout.h.
3519         Include varasm.h.
3520         * config/frv/frv.c: Include varasm.h.
3521         Include stor-layout.h.
3522         Include stringpool.h.
3523         * config/h8300/h8300.c: Include stor-layout.h.
3524         Include varasm.h.
3525         Include calls.h.
3526         Include stringpool.h.
3527         * config/i386/i386.c: Include stringpool.h.
3528         Include attribs.h.
3529         Include calls.h.
3530         Include stor-layout.h.
3531         Include varasm.h.
3532         * config/i386/winnt-cxx.c: Include stringpool.h.
3533         Include attribs.h.
3534         * config/i386/winnt.c: Include stringpool.h.
3535         Include varasm.h.
3536         * config/ia64/ia64-c.c: Include stringpool.h.
3537         * config/ia64/ia64.c: Include stringpool.h.
3538         Include stor-layout.h.
3539         Include calls.h.
3540         Include varasm.h.
3541         * config/iq2000/iq2000.c: Include stor-layout.h.
3542         Include calls.h.
3543         Include varasm.h.
3544         * config/lm32/lm32.c: Include calls.h.
3545         * config/m32c/m32c.c: Include stor-layout.h.
3546         Include varasm.h.
3547         Include calls.h.
3548         * config/m32r/m32r.c: Include stor-layout.h.
3549         Include varasm.h.
3550         Include stringpool.h.
3551         Include calls.h.
3552         * config/m68k/m68k.c: Include calls.h.
3553         Include stor-layout.h.
3554         Include varasm.h.
3555         * config/mcore/mcore.c: Include stor-layout.h.
3556         Include varasm.h.
3557         Include stringpool.h.
3558         Include calls.h.
3559         * config/mep/mep.c: Include varasm.h.
3560         Include calls.h.
3561         Include stringpool.h.
3562         Include stor-layout.h.
3563         * config/microblaze/microblaze.c: Include varasm.h.
3564         Include stor-layout.h.
3565         Include calls.h.
3566         * config/mips/mips.c: Include varasm.h.
3567         Include stringpool.h.
3568         Include stor-layout.h.
3569         Include calls.h.
3570         * config/mmix/mmix.c: Include varasm.h.
3571         Include stor-layout.h.
3572         Include calls.h.
3573         * config/mn10300/mn10300.c: Include stor-layout.h.
3574         Include varasm.h.
3575         Include calls.h.
3576         * config/moxie/moxie.c: Include stor-layout.h.
3577         Include varasm.h.
3578         Include calls.h.
3579         * config/msp430/msp430.c: Include stor-layout.h.
3580         Include calls.h.
3581         * config/nds32/nds32.c: Include stor-layout.h.
3582         Include varasm.h.
3583         Include calls.h.
3584         * config/pa/pa.c: Include stor-layout.h.
3585         Include stringpool.h.
3586         Include varasm.h.
3587         Include calls.h.
3588         * config/pdp11/pdp11.c: Include stor-layout.h.
3589         Include varasm.h.
3590         Include calls.h.
3591         * config/picochip/picochip.c: Include calls.h.
3592         Include stor-layout.h.
3593         Include stringpool.h.
3594         Include varasm.h.
3595         * config/rl78/rl78.c: Include varasm.h.
3596         Include stor-layout.h.
3597         Include calls.h.
3598         * config/rs6000/rs6000-c.c: Include stor-layout.h.
3599         Include stringpool.h.
3600         * config/rs6000/rs6000.c: Include stringpool.h.
3601         Include stor-layout.h.
3602         Include calls.h.
3603         Include print-tree.h.
3604         Include varasm.h.
3605         * config/rx/rx.c: Include varasm.h.
3606         Include stor-layout.h.
3607         Include calls.h.
3608         * config/s390/s390.c: Include print-tree.h.
3609         Include stringpool.h.
3610         Include stor-layout.h.
3611         Include varasm.h.
3612         Include calls.h.
3613         * config/score/score.c: Include stringpool.h.
3614         Include calls.h.
3615         Include varasm.h.
3616         Include stor-layout.h.
3617         * config/sh/sh-c.c: Include stringpool.h.
3618         Include attribs.h.h.
3619         * config/sh/sh.c: Include stringpool.h.
3620         Include stor-layout.h.
3621         Include calls.h.
3622         Include varasm.h.
3623         * config/sol2-c.c: Include stringpool.h.
3624         Include attribs.h.
3625         * config/sol2-cxx.c: Include stringpool.h.
3626         * config/sol2.c: Include stringpool.h.
3627         Include varasm.h.
3628         * config/sparc/sparc.c: Include stringpool.h.
3629         Include stor-layout.h.
3630         Include calls.h.
3631         Include varasm.h.
3632         * config/spu/spu-c.c: Include stringpool.h.
3633         * config/spu/spu.c: Include stringpool.h.
3634         Include stor-layout.h.
3635         Include calls.h.
3636         Include varasm.h.
3637         * config/stormy16/stormy16.c: Include stringpool.h.
3638         Include stor-layout.h.
3639         Include varasm.h.
3640         Include calls.h.
3641         * config/tilegx/tilegx.c: Include stringpool.h.
3642         Include stor-layout.h.
3643         Include varasm.h.
3644         Include calls.h.
3645         * config/tilepro/tilepro.c: Include stringpool.h.
3646         Include stor-layout.h.
3647         Include varasm.h.
3648         Include calls.h.
3649         * config/v850/v850-c.c: Include stringpool.h.
3650         Include attribs.h.
3651         * config/v850/v850.c: Include stringpool.h.
3652         Include stor-layout.h.
3653         Include varasm.h.
3654         Include calls.h.
3655         * config/vax/vax.c: Include calls.h.
3656         Include varasm.h.
3657         * config/vms/vms.c: Include stringpool.h.
3658         * config/vxworks.c: Include stringpool.h.
3659         * config/xtensa/xtensa.c: Include stringpool.h.
3660         Include stor-layout.h.
3661         Include calls.h.
3662         Include varasm.h.
3663         * convert.c: Include stor-layout.h.
3664         * coverage.c: Include stringpool.h.
3665         Include stor-layout.h.
3666         * dbxout.c: Include varasm.h.
3667         Include stor-layout.h.
3668         * dojump.c: Include stor-layout.h.
3669         * dse.c: Include stor-layout.h.
3670         * dwarf2asm.c: Include stringpool.h.
3671         Include varasm.h.
3672         * dwarf2cfi.c: Include stor-layout.h.
3673         * dwarf2out.c: Include rtl.h.
3674         Include stringpool.h.
3675         Include stor-layout.h.
3676         Include varasm.h.
3677         Include function.h.
3678         Include emit-rtl.h.
3679         Move inclusion of rtl.h earlier in the file.
3680         * emit-rtl.c: Include varasm.h.
3681         * except.c: Include stringpool.h.
3682         Include stor-layout.h.
3683         * explow.c: Include stor-layout.h.
3684         * expmed.c: Include stor-layout.h.
3685         * expr.c: Include stringpool.h.
3686         Include stor-layout.h.
3687         Include attribs.h.
3688         Include varasm.h.
3689         * final.c: Include varasm.h.
3690         * fold-const.c: Include stor-layout.h.
3691         Include calls.h.
3692         Include tree-iterator.h.
3693         * function.c: Include stor-layout.h.
3694         Include varasm.h.
3695         Include stringpool.h.
3696         * genattrtab.c (write_header): Emit includes for varasm.h,
3697         stor-layout.h and calls.h.
3698         * genautomata.c (main): Likewise.
3699         * genemit.c: Likewise.
3700         * genopinit.c: Likewise.
3701         * genoutput.c (output_prologue): Likewise.
3702         * genpeep.c: Likewise.
3703         * genpreds.c (write_insn_preds_c): Likewise.
3704         * gengtype.c (open_base_files): Add stringpool.h.
3705         * gimple-expr.c: Include stringpool.h.
3706         Include stor-layout.h.
3707         * gimple-fold.c: Include stringpool.h.
3708         Include expr.h.
3709         Include stmt.h.
3710         Include stor-layout.h.
3711         * gimple-low.c: Include tree-nested.h.
3712         Include calls.h.
3713         * gimple-pretty-print.c: Include stringpool.h.
3714         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
3715         Include expr.h.
3716         * gimple-walk.c: Include stmt.h.
3717         * gimple.c: Include calls.h.
3718         Include stmt.h.
3719         Include stor-layout.h.
3720         * gimplify.c: Include stringpool.h.
3721         Include calls.h.
3722         Include varasm.h.
3723         Include stor-layout.h.
3724         Include stmt.h.
3725         Include print-tree.h.
3726         Include expr.h.
3727         * gimplify-me.c: Include stmt.h
3728         Include stor-layout.h
3729         * internal-fn.c: Include stor-layout.h.
3730         * ipa-devirt.c: Include print-tree.h.
3731         Include calls.h.
3732         * ipa-inline-analysis.c: Include stor-layout.h.
3733         Include stringpool.h.
3734         Include print-tree.h.
3735         * ipa-inline.c: Include trans-mem.h.
3736         Include calls.h.
3737         * ipa-prop.c: Include expr.h.
3738         Include stor-layout.h.
3739         Include print-tree.h.
3740         * ipa-pure-const.c: Include print-tree.h.
3741         Include calls.h.
3742         * ipa-reference.c: Include calls.h.
3743         * ipa-split.c: Include stringpool.h.
3744         Include expr.h.
3745         Include calls.h.
3746         * ipa.c: Include calls.h.
3747         Include stringpool.h.
3748         * langhooks.c: Include stringpool.h.
3749         Include attribs.h.
3750         * lto-cgraph.c: Include stringpool.h.
3751         * lto-streamer-in.c: Include stringpool.h.
3752         * lto-streamer-out.c: Include stor-layout.h.
3753         Include stringpool.h.
3754         * omp-low.c: Include stringpool.h.
3755         Include stor-layout.h.
3756         Include expr.h.
3757         * optabs.c: Include stor-layout.h.
3758         Include stringpool.h.
3759         Include varasm.h.
3760         * passes.c: Include varasm.h.
3761         * predict.c: Include calls.h.
3762         * print-rtl.c: Include print-tree.h.
3763         * print-tree.c: Include varasm.h.
3764         Include print-rtl.h.
3765         Include stor-layout.h.
3766         * realmpfr.c: Include stor-layout.h.
3767         * reg-stack.c: Include varasm.h.
3768         * sdbout.c: Include varasm.h.
3769         Include stor-layout.h.
3770         * simplify-rtx.c: Include varasm.h.
3771         * stmt.c: Include varasm.h.
3772         Include stor-layout.h.
3773         * stor-layout.c: Include stor-layout.h.
3774         Include stringpool.h.
3775         Include varasm.h.
3776         Include print-tree.h.
3777         * symtab.c: Include rtl.h.
3778         Include print-tree.h.
3779         Include varasm.h.
3780         Include function.h.
3781         Include emit-rtl.h.
3782         * targhooks.c: Include stor-layout.h.
3783         Include varasm.h.
3784         * toplev.c: Include varasm.h.
3785         Include tree-inline.h.
3786         * trans-mem.c: Include calls.h.
3787         Include function.h.
3788         Include rtl.h.
3789         Include emit-rtl.h.
3790         * tree-affine.c: Include expr.h.
3791         * tree-browser.c: Include print-tree.h.
3792         * tree-call-cdce.c: Include stor-layout.h.
3793         * tree-cfg.c: Include trans-mem.h.
3794         Include stor-layout.h.
3795         Include print-tree.h.
3796         * tree-complex.c: Include stor-layout.h.
3797         * tree-data-ref.c: Include expr.h.
3798         * tree-dfa.c: Include stor-layout.h.
3799         * tree-eh.c: Include expr.h.
3800         Include calls.h.
3801         * tree-emutls.c: Include stor-layout.h.
3802         Include varasm.h.
3803         * tree-if-conv.c: Include stor-layout.h.
3804         * tree-inline.c: Include stor-layout.h.
3805         Include calls.h.
3806         * tree-loop-distribution.c: Include stor-layout.h.
3807         * tree-nested.c: Include stringpool.h.
3808         Include stor-layout.h.
3809         * tree-object-size.c: Include tree-object-size.h.
3810         * tree-outof-ssa.c: Include stor-layout.h.
3811         * tree-parloops.c: Include stor-layout.h.
3812         Include tree-nested.h.
3813         * tree-pretty-print.c: Include stor-layout.h.
3814         Include expr.h.
3815         * tree-profile.c: Include varasm.h.
3816         Include tree-nested.h.
3817         * tree-scalar-evolution.c: Include expr.h.
3818         * tree-sra.c: Include stor-layout.h.
3819         * tree-ssa-address.c: Include stor-layout.h.
3820         * tree-ssa-ccp.c: Include stor-layout.h.
3821         * tree-ssa-dce.c: Include calls.h.
3822         * tree-ssa-dom.c: Include stor-layout.h.
3823         * tree-ssa-forwprop.c: Include stor-layout.h.
3824         * tree-ssa-ifcombine.c: Include stor-layout.h.
3825         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
3826         * tree-ssa-loop-niter.c: Include calls.h.
3827         Include expr.h.
3828         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
3829         * tree-ssa-math-opts.c: Include stor-layout.h.
3830         * tree-ssa-operands.c: Include stmt.h.
3831         Include print-tree.h.
3832         * tree-ssa-phiopt.c: Include stor-layout.h.
3833         * tree-ssa-reassoc.c: Include stor-layout.h.
3834         * tree-ssa-sccvn.c: Include stor-layout.h.
3835         * tree-ssa-sink.c: Include stor-layout.h.
3836         * tree-ssa-strlen.c: Include stor-layout.h.
3837         * tree-ssa-structalias.c: Include stor-layout.h.
3838         Include stmt.h.
3839         * tree-ssa-tail-merge.c: Include stor-layout.h.
3840         Include trans-mem.h.
3841         * tree-ssa-uncprop.c: Include stor-layout.h.
3842         * tree-ssa.c: Include stor-layout.h.
3843         * tree-ssanames.c: Include stor-layout.h.
3844         * tree-streamer-in.c: Include stringpool.h.
3845         * tree-streamer-out.c: Include stor-layout.h.
3846         * tree-switch-conversion.c: Include varasm.h.
3847         Include stor-layout.h.
3848         * tree-tailcall.c: Include stor-layout.h.
3849         * tree-vect-data-refs.c: Include stor-layout.h.
3850         * tree-vect-generic.c: Include stor-layout.h.
3851         * tree-vect-loop.c: Include stor-layout.h.
3852         * tree-vect-patterns.c: Include stor-layout.h.
3853         * tree-vect-slp.c: Include stor-layout.h.
3854         * tree-vect-stmts.c: Include stor-layout.h.
3855         * tree-vectorizer.c: Include stor-layout.h.
3856         * tree-vrp.c: Include stor-layout.h.
3857         Include calls.h.
3858         * tree.c: Include stor-layout.h.
3859         Include calls.h.
3860         Include attribs.h.
3861         Include varasm.h.
3862         * tsan.c: Include expr.h.
3863         * ubsan.c: Include stor-layout.h.
3864         Include stringpool.h.
3865         * value-prof.c: Include tree-nested.h.
3866         Include calls.h.
3867         * var-tracking.c: Include varasm.h.
3868         Include stor-layout.h.
3869         * varasm.c: Include stor-layout.h.
3870         Include stringpool.h.
3871         Include gcc-symtab.h.
3872         Include varasm.h.
3873         * varpool.c: Include varasm.h.
3874         * vmsdbgout.c: Include varasm.h.
3875         * xcoffout.c: Include varasm.h.
3877 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
3879         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
3880         use (.&-4) idiom.
3882 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3884         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
3886 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3887             Alan Modra  <amodra@gmail.com>
3889         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
3890         (RS6000_SAVE_TOC): Remove.
3891         (RS6000_TOC_SAVE_SLOT): New macro.
3892         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
3893         (rs6000_parm_start): Use it.
3894         (rs6000_function_arg_advance_1): Likewise.
3895         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
3896         (rs6000_emit_epilogue): Likewise.
3897         (rs6000_call_aix): Likewise.
3898         (rs6000_output_function_prologue): Do not save/restore r11
3899         around calling _mcount for ABI_ELFv2.
3901 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3902             Alan Modra  <amodra@gmail.com>
3904         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
3905         Add prototype.
3906         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
3907         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
3908         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
3909         (rs6000_function_parms_need_stack): Likewise.
3910         (rs6000_reg_parm_stack_space): Likewise.
3911         (rs6000_function_arg): Do not replace BLKmode by Pmode when
3912         returning a register argument.
3914 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3915             Michael Gschwind  <mkg@us.ibm.com>
3917         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
3918         (ALTIVEC_ARG_MAX_RETURN): Likewise.
3919         (FUNCTION_VALUE_REGNO_P): Use them.
3920         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
3921         (rs6000_return_in_msb): New function.
3922         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
3923         Handle aggregates of up to 16 bytes for ELFv2.
3924         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
3926 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3927             Michael Gschwind  <mkg@us.ibm.com>
3929         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3930         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3931         (rs6000_discover_homogeneous_aggregate): Likewise.
3932         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3933         (rs6000_function_arg_advance_1): Likewise.
3934         (rs6000_function_arg): Likewise.
3935         (rs6000_arg_partial_bytes): Likewise.
3936         (rs6000_psave_function_arg): Handle BLKmode arguments.
3938 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3939             Michael Gschwind  <mkg@us.ibm.com>
3941         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3942         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3943         (rs6000_discover_homogeneous_aggregate): Likewise.
3944         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3945         (rs6000_function_arg_advance_1): Likewise.
3946         (rs6000_function_arg): Likewise.
3947         (rs6000_arg_partial_bytes): Likewise.
3948         (rs6000_psave_function_arg): Handle BLKmode arguments.
3950 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3952         * config/rs6000/rs6000.c (machine_function): New member
3953         r2_setup_needed.
3954         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
3955         (rs6000_output_mi_thunk): Set r2_setup_needed.
3956         (rs6000_output_function_prologue): Output global entry point
3957         prologue and local entry point marker if needed for ABI_ELFv2.
3958         Output -mprofile-kernel code here.
3959         (output_function_profiler): Do not output -mprofile-kernel
3960         code here; moved to rs6000_output_function_prologue.
3961         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
3963         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
3964         (rs6000_output_function_entry): Likewise.
3965         (rs6000_assemble_integer): Likewise.
3966         (rs6000_elf_encode_section_info): Likewise.
3967         (rs6000_elf_declare_function_name): Do not create dot symbols
3968         or .opd section for ABI_ELFv2.
3970         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
3971         (rs6000_trampoline_init): Likewise.
3972         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
3974         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
3975         for function descriptors in ABI_ELFv2.
3977         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
3978         on ABI_AIX only, not ABI_ELFv2.
3979         ("*call_value_indirect_aix<mode>"): Likewise.
3980         ("*call_indirect_elfv2<mode>"): New pattern.
3981         ("*call_value_indirect_elfv2<mode>"): Likewise.
3983         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
3984         check for function descriptors in ABI_ELFv2.
3985         ("current_file_function_operand"): Likewise.
3987         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
3988         (toc): Undefine.
3989         (FUNC_NAME): Define ELFv2 variant.
3990         (JUMP_TARGET): Likewise.
3991         (FUNC_START): Likewise.
3992         (HIDDEN_FUNC): Likewise.
3993         (FUNC_END): Likeiwse.
3995 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3997         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
3998         and --with-abi=elfv2.
3999         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
4000         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
4001         (mabi=elfv2): Likewise.
4002         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
4003         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
4004         if !RS6000_BI_ARCH.
4005         (ELFv2_ABI_CHECK): New macro.
4006         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
4007         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
4008         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
4009         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4010         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
4012         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
4013         (debug_stack_info): Likewise.
4014         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
4015         (rs6000_legitimize_tls_address): Likewise.
4016         (rs6000_conditional_register_usage): Likewise.
4017         (rs6000_emit_move): Likewise.
4018         (init_cumulative_args): Likewise.
4019         (rs6000_function_arg_advance_1): Likewise.
4020         (rs6000_function_arg): Likewise.
4021         (rs6000_arg_partial_bytes): Likewise.
4022         (rs6000_output_function_entry): Likewise.
4023         (rs6000_assemble_integer): Likewise.
4024         (rs6000_savres_strategy): Likewise.
4025         (rs6000_stack_info): Likewise.
4026         (rs6000_function_ok_for_sibcall): Likewise.
4027         (rs6000_emit_load_toc_table): Likewise.
4028         (rs6000_savres_routine_name): Likewise.
4029         (ptr_regno_for_savres): Likewise.
4030         (rs6000_emit_prologue): Likewise.
4031         (rs6000_emit_epilogue): Likewise.
4032         (rs6000_output_function_epilogue): Likewise.
4033         (output_profile_hook): Likewise.
4034         (output_function_profiler): Likewise.
4035         (rs6000_trampoline_size): Likewise.
4036         (rs6000_trampoline_init): Likewise.
4037         (rs6000_elf_output_toc_section_asm_op): Likewise.
4038         (rs6000_elf_encode_section_info): Likewise.
4039         (rs6000_elf_reloc_rw_mask): Likewise.
4040         (rs6000_elf_declare_function_name): Likewise.
4041         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
4042         except that rs6000_compat_align_parm is always assumed false.
4043         (rs6000_gimplify_va_arg): Likewise.
4044         (rs6000_call_aix): Update comment.
4045         (rs6000_sibcall_aix): Likewise.
4046         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
4047         Treat ABI_ELFv2 the same as ABI_AIX.
4048         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4049         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
4050         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4051         ("load_toc_aix_si"): Likewise.
4052         ("load_toc_aix_di"): Likewise.
4053         ("call"): Likewise.
4054         ("call_value"): Likewise.
4055         ("*call_local_aix<mode>"): Likewise.
4056         ("*call_value_local_aix<mode>"): Likewise.
4057         ("*call_nonlocal_aix<mode>"): Likewise.
4058         ("*call_value_nonlocal_aix<mode>"): Likewise.
4059         ("*call_indirect_aix<mode>"): Likewise.
4060         ("*call_value_indirect_aix<mode>"): Likewise.
4061         ("sibcall"): Likewise.
4062         ("sibcall_value"): Likewise.
4063         ("*sibcall_aix<mode>"): Likewise.
4064         ("*sibcall_value_aix<mode>"): Likewise.
4065         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
4066         ("current_file_function_operand"): Likewise.
4068 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4070         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
4071         by making use of the fact that for vector / floating point arguments
4072         passed both in VRs/FPRs and in the fixed parameter area, the partial
4073         bytes mechanism is in fact not used.
4075 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4077         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
4078         (rs6000_finish_function_arg): Likewise.
4079         (rs6000_function_arg): Use rs6000_psave_function_arg and
4080         rs6000_finish_function_arg to handle both vector and floating
4081         point arguments that are also passed in GPRs / the stack.
4083 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4085         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
4086         (USE_ALTIVEC_FOR_ARG_P): Likewise.
4087         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
4088         (rs6000_function_arg_advance_1):Likewise.
4089         (rs6000_darwin64_record_arg_recurse): Likewise.
4090         (rs6000_function_arg): Likewise.
4091         (rs6000_arg_partial_bytes): Likewise.
4093 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4095         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
4096         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
4097         (rs6000_savres_strategy): Likewise.
4098         (rs6000_return_addr): Likewise.
4099         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
4100         testing for ABI_V4 (since ABI_DARWIN is impossible here).
4101         (rs6000_emit_prologue): Likewise.
4102         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
4103         (rs6000_elf_declare_function_name): Remove duplicated test.
4104         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
4105         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
4106         ("load_toc_v4_PIC_1_normal"): Likewise.
4107         ("load_toc_v4_PIC_1_476"): Likewise.
4108         ("load_toc_v4_PIC_1b"): Likewise.
4109         ("load_toc_v4_PIC_1b_normal"): Likewise.
4110         ("load_toc_v4_PIC_1b_476"): Likewise.
4111         ("load_toc_v4_PIC_2"): Likewise.
4112         ("load_toc_v4_PIC_3b"): Likewise.
4113         ("load_toc_v4_PIC_3c"): Likewise.
4114         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
4115         (RS6000_SAVE_AREA): Likewise.
4116         (FP_ARG_MAX_REG): Likewise.
4117         (RETURN_ADDRESS_OFFSET): Likewise.
4118         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
4119         of ABI_AIX.
4120         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4121         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4123 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4125         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
4126         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
4127         Create call insn directly instead of via various gen_... routines.
4128         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
4129         (rs6000_sibcall_aix): New function.
4130         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
4131         (TOC_SAVE_OFFSET_64BIT): Likewise.
4132         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
4133         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
4134         (AIX_FUNC_DESC_SC_32BIT): Likewise.
4135         (AIX_FUNC_DESC_SC_64BIT): Likewise.
4136         ("call" expander): Call rs6000_call_aix.
4137         ("call_value" expander): Likewise.
4138         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
4139         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4140         ("*call_indirect_aix<mode>"): ... by this insn pattern.
4141         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
4142         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4143         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
4144         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
4145         ("*call_nonlocal_aix<mode>"): ... this pattern.
4146         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
4147         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
4148         ("*call_local_aix<mode>"): New insn pattern.
4149         ("*call_value_local_aix<mode>"): Likewise.
4150         ("sibcall" expander): Call rs6000_sibcall_aix.
4151         ("sibcall_value" expander): Likewise.  Move earlier in file.
4152         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
4153         ("*sibcall_aix<mode>"): ... this pattern.
4154         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
4155         ("*sibcall_value_aix<mode>"): ... this pattern.
4156         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
4157         (rs6000_call_aix): Add prototype.
4158         (rs6000_sibcall_aix): Likewise.
4160 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
4162         PR sanitizer/59122
4163         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
4164         isn't confused by the artificial decl.
4166 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4168         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
4169         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
4170         Instead, add USEs of all modified call-saved CR fields to the
4171         insn storing the result to the stack slot, and provide an
4172         appropriate REG_FRAME_RELATED_EXPR for that insn.
4173         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
4174         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
4176 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4177             Alan Modra  <amodra@gmail.com>
4179         * function.c (assign_parms): Use all.reg_parm_stack_space instead
4180         of re-evaluating REG_PARM_STACK_SPACE target macro.
4181         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
4182         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
4183         (assign_parm_find_entry_rtl): Update call.
4184         * calls.c (initialize_argument_information): Update call.
4185         (emit_library_call_value_1): Likewise.
4186         * expr.h (locate_and_pad_parm): Update prototype.
4188 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4190         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
4191         arguments.
4193 2013-11-14  DJ Delorie  <dj@redhat.com>
4195         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
4196         to 16 bits.
4198 2013-11-14  Jeff Law  <law@redhat.com>
4200         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
4201         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
4203 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4205         * doc/invoke.texi: Update documentation for AArch64's -mcpu
4206         and -mtune options.
4208 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4210         * config/aarch64/aarch64-cores.def (example-1): Remove.
4211         (example-2): Likewise.
4212         * config/aarch64/aarch64-tune.md: Regenerate.
4213         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
4214         (generic_sched): Remove "large", "small".
4215         * config/aarch64/large.md: Delete.
4216         * config/aarch64/small.md: Delete.
4218 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4220         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
4221         * config/aarch64/aarch64-tune.md: Regenerate.
4222         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
4223         (generic_sched): "no" if we are tuning for cortexa15.
4224         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
4225         relative path.
4227 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4229         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
4230         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
4231         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
4232         (all_cores): Use cortexa53 when tuning for "generic".
4233         (aarch64_override_options): Fix comment.
4234         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
4235         * config/aarch64/aarch64-generic.md: Delete.
4237 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4239         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
4241 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4243         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
4244         (generic_rtx_cost_table): Remove.
4245         (aarch64_rtx_costs): Use fields from cpu_cost_table.
4246         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
4247         insn_extra_cost.
4248         (cpu_rtx_cost_table): Remove.
4250 2013-11-14  Julian Brown  <julian@codesourcery.com>
4251             Joey Ye  <joey.ye@arm.com>
4253         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
4254         (arm_v7m_tune): New.
4255         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
4256         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
4257         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
4258         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
4260 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
4262         PR target/57491
4263         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
4264         flag setting.
4266 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
4267             Uros Bizjak  <ubizjak@gmail.com>
4269         PR target/59101
4270         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
4271         operands[2] satisfies_constraint_Z that might have bit 31 set.
4273 2013-11-13  Jeff Law  <law@redhat.com>
4275         PR tree-optimization/59102
4276         * gimple-ssa-isolate-paths.c
4277         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
4278         gimple assignment before looking at gimple_assign_lhs.
4280 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4282         * ira.c: Add comment about threads at the top of file.
4284 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4286         * ira-color.c (coalesce_allocnos): Don't allocate and free
4287         sorted_copies.
4289 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4291         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
4292         equality for GIMPLE_ASSIGN.
4294 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4296         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
4297         function out of ...
4298         (gimple_equal_p): ... here.
4300 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4302         * trans-mem.c (is_tm_ending): New function.
4303         * gimple.h (is_tm_ending): Declare.
4304         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
4305         BUILT_IN_TM_COMMIT.
4306         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
4308 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4310         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
4312 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
4314         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
4315         (struct walk_stmt_info):  Relocate here from gimple.h.
4316         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
4317         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
4318         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4319         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4320         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4321         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4322         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
4323         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
4324         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4325         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4326         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4327         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4328         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
4329         (struct walk_stmt_info): Move to gimple-walk.h.
4330         (gimple_seq_set_location): Move to gimple.c
4331         * gimple-walk.c: New File.
4332         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
4333         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
4334         walk_stmt_load_store_ops): Relocate here from gimple.c.
4335         * gimple-iterator.c: Include gimple-iterator.h.
4336         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
4337         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
4338         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
4339         gimple-walk.c.
4340         (gimple_seq_set_location): Relocate from gimple.h.
4341         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
4342         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
4343         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
4344         * Makefile.in (OBJS): Add gimple-walk.o
4345         * asan.c: Update Include list as required for gimple-iterator.h and
4346         gimple-walk.h.
4347         * cfgexpand.c: Likewise.
4348         * cfgloop.c: Likewise.
4349         * cfgloopmanip.c: Likewise.
4350         * cgraph.c: Likewise.
4351         * cgraphbuild.c: Likewise.
4352         * cgraphunit.c: Likewise.
4353         * gimple-fold.c: Likewise.
4354         * gimple-low.c: Likewise.
4355         * gimple-pretty-print.c: Likewise.
4356         * gimple-ssa-isolate-paths.c: Likewise.
4357         * gimple-ssa-strength-reduction.c: Likewise.
4358         * gimple-streamer-in.c: Likewise.
4359         * gimple-streamer-out.c: Likewise.
4360         * gimplify.c: Likewise.
4361         * graphite-blocking.c: Likewise.
4362         * graphite-clast-to-gimple.c: Likewise.
4363         * graphite-dependences.c: Likewise.
4364         * graphite-interchange.c: Likewise.
4365         * graphite-optimize-isl.c: Likewise.
4366         * graphite-poly.c: Likewise.
4367         * graphite-scop-detection.c: Likewise.
4368         * graphite-sese-to-poly.c: Likewise.
4369         * graphite.c: Likewise.
4370         * ipa-inline-analysis.c: Likewise.
4371         * ipa-profile.c: Likewise.
4372         * ipa-prop.c: Likewise.
4373         * ipa-pure-const.c: Likewise.
4374         * ipa-split.c: Likewise.
4375         * lto-streamer-in.c: Likewise.
4376         * lto-streamer-out.c: Likewise.
4377         * omp-low.c: Likewise.
4378         * predict.c: Likewise.
4379         * profile.c: Likewise.
4380         * sese.c: Likewise.
4381         * tracer.c: Likewise.
4382         * trans-mem.c: Likewise.
4383         * tree-call-cdce.c: Likewise.
4384         * tree-cfg.c: Likewise.
4385         * tree-cfgcleanup.c: Likewise.
4386         * tree-complex.c: Likewise.
4387         * tree-data-ref.c: Likewise.
4388         * tree-dfa.c: Likewise.
4389         * tree-eh.c: Likewise.
4390         * tree-emutls.c: Likewise.
4391         * tree-if-conv.c: Likewise.
4392         * tree-inline.c: Likewise.
4393         * tree-into-ssa.c: Likewise.
4394         * tree-loop-distribution.c: Likewise.
4395         * tree-nested.c: Likewise.
4396         * tree-nrv.c: Likewise.
4397         * tree-object-size.c: Likewise.
4398         * tree-outof-ssa.c: Likewise.
4399         * tree-parloops.c: Likewise.
4400         * tree-predcom.c: Likewise.
4401         * tree-profile.c: Likewise.
4402         * tree-scalar-evolution.c: Likewise.
4403         * tree-sra.c: Likewise.
4404         * tree-ssa-ccp.c: Likewise.
4405         * tree-ssa-coalesce.c: Likewise.
4406         * tree-ssa-copy.c: Likewise.
4407         * tree-ssa-copyrename.c: Likewise.
4408         * tree-ssa-dce.c: Likewise.
4409         * tree-ssa-dom.c: Likewise.
4410         * tree-ssa-dse.c: Likewise.
4411         * tree-ssa-forwprop.c: Likewise.
4412         * tree-ssa-ifcombine.c: Likewise.
4413         * tree-ssa-live.c: Likewise.
4414         * tree-ssa-loop-ch.c: Likewise.
4415         * tree-ssa-loop-im.c: Likewise.
4416         * tree-ssa-loop-ivcanon.c: Likewise.
4417         * tree-ssa-loop-ivopts.c: Likewise.
4418         * tree-ssa-loop-manip.c: Likewise.
4419         * tree-ssa-loop-niter.c: Likewise.
4420         * tree-ssa-loop-prefetch.c: Likewise.
4421         * tree-ssa-loop.c: Likewise.
4422         * tree-ssa-math-opts.c: Likewise.
4423         * tree-ssa-phiopt.c: Likewise.
4424         * tree-ssa-phiprop.c: Likewise.
4425         * tree-ssa-pre.c: Likewise.
4426         * tree-ssa-propagate.c: Likewise.
4427         * tree-ssa-reassoc.c: Likewise.
4428         * tree-ssa-sink.c: Likewise.
4429         * tree-ssa-strlen.c: Likewise.
4430         * tree-ssa-structalias.c: Likewise.
4431         * tree-ssa-tail-merge.c: Likewise.
4432         * tree-ssa-ter.c: Likewise.
4433         * tree-ssa-threadedge.c: Likewise.
4434         * tree-ssa-threadupdate.c: Likewise.
4435         * tree-ssa-uncprop.c: Likewise.
4436         * tree-ssa-uninit.c: Likewise.
4437         * tree-ssa.c: Likewise.
4438         * tree-stdarg.c: Likewise.
4439         * tree-switch-conversion.c: Likewise.
4440         * tree-tailcall.c: Likewise.
4441         * tree-vect-data-refs.c: Likewise.
4442         * tree-vect-generic.c: Likewise.
4443         * tree-vect-loop-manip.c: Likewise.
4444         * tree-vect-loop.c: Likewise.
4445         * tree-vect-patterns.c: Likewise.
4446         * tree-vect-slp.c: Likewise.
4447         * tree-vect-stmts.c: Likewise.
4448         * tree-vectorizer.c: Likewise.
4449         * tree-vrp.c: Likewise.
4450         * tree.c: Likewise.
4451         * tsan.c: Likewise.
4452         * value-prof.c: Likewise.
4453         * vtable-verify.c: Likewise.
4455 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
4457         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
4458         fix.
4460 2013-11-13  Jeff Law  <law@redhat.com>
4462         * PR middle-end/59119
4463         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
4464         function, extracted from gimple_ssa_isolate_erroneous_paths.
4465         (find_explicit_erroneous_behaviour): Similarly.
4466         (insert_trap_and_remove_trailing_statements): Remove statements
4467         in reverse order.
4469 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
4471         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
4472         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
4473         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
4474         looking at INSN_CODE.
4475         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
4476         active_insn_p object, respect basic block boundaries.
4477         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
4478         follows immediately after the jump table data label.
4479         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
4480         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
4481         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
4483 2013-11-13  Teresa Johnson  <tejohnson@google.com>
4485         PR ipa/58862
4486         * predict.c (drop_profile): Error is currently too strict.
4487         (handle_missing_profiles): Pass call_count to drop_profile.
4489 2013-11-13  Teresa Johnson  <tejohnson@google.com>
4491         PR ipa/58862
4492         * ipa-inline.c (edge_badness): Fix overflow.
4494 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4496         PR rtl-optimization/59036
4497         * ira-color.c (struct allocno_color_data): Add new members
4498         first_thread_allocno, next_thread_allocno, thread_freq.
4499         (sorted_copies): New static var.
4500         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
4501         (allocno_thread_conflict_p, merge_threads)
4502         (form_threads_from_copies, form_threads_from_bucket)
4503         (form_threads_from_colorable_allocno, init_allocno_threads): New
4504         functions.
4505         (bucket_allocno_compare_func): Add comparison by thread frequency
4506         and threads.
4507         (add_allocno_to_ordered_bucket): Rename to
4508         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
4509         (push_only_colorable): Call form_threads_from_bucket.
4510         (color_pass): Call init_allocno_threads.  Use
4511         consideration_allocno_bitmap instead of coloring_allocno_bitmap
4512         for nuillify allocno color data.
4513         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
4514         (coalesce_allocnos): Use static sorted copies.
4516 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
4518         * passes.c (execute_todo): Don't call do_per_function if
4519         flags are zero.
4520         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
4521         execute_function_dump if dump_file is NULL.
4523 2013-11-13  Martin Jambor  <mjambor@suse.cz>
4525         * cgraph.c (cgraph_get_create_node): Do what
4526         cgraph_get_create_real_symbol_node used to do.
4527         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
4528         call cgraph_get_create_node.
4529         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
4530         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
4531         cgraph_get_create_node.  Assert we get a node.
4533 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
4535         * config/aarch64/aarch64-simd.md (vec_extract): New.
4537 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
4539         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
4540         the constraint.
4542 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
4544         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
4545         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
4546         or if optimization is enabled.
4547         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
4548         require that all the names based on a PARM_DECL or a RESULT_DECL that
4549         isn't ignored for debug info be coalesced.
4551 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4553         * config/c6x/c6x.c: Include "gimple-expr.h".
4555 2013-11-13  Richard Biener  <rguenther@suse.de>
4557         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
4558         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
4559         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
4560         dealing with type mismatches inside component reference chains.
4562 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
4564         PR tree-optimization/59077
4565         * ipa-pure-const.c (better_state): Update *state.
4567 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
4569         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
4570         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
4571         Update offset calculations.
4573 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
4575         PR ada/35998
4576         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
4577         for fields.  Do not add the attribute if the size is negative.
4579 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4581         * config/arm/arm.c: Include aarch-cost-tables.h.
4582         (generic_extra_costs): Move from here...
4583         * config/arm/aarch-cost-tables.h: ... To here.  New file.
4585 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4586             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4587             Sergey Lega  <sergey.s.lega@intel.com>
4588             Anna Tikhonova  <anna.tikhonova@intel.com>
4589             Ilya Tocar  <ilya.tocar@intel.com>
4590             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4591             Ilya Verbin  <ilya.verbin@intel.com>
4592             Kirill Yukhin  <kirill.yukhin@intel.com>
4593             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4595         * config/i386/i386.c (ix86_print_operand): Support z-masking.
4596         * config/i386/predicate.md (const_0_to_4_operand): New.
4597         (const_0_to_5_operand): Ditto.
4598         * config/i386/sse.md (UNSPEC_COMPRESS): New.
4599         (UNSPEC_COMPRESS_STORE): Ditto.
4600         (UNSPEC_EXPAND): Ditto.
4601         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
4602         (define_mode_attr ssescalarsize): Ditto.
4603         (avx512f_load<mode>_mask): Ditto.
4604         (avx512f_store<mode>_mask): Ditto.
4605         (avx512f_storedqu<mode>_mask): Ditto.
4606         (avx512f_vmcmp<mode>3_mask): Ditto.
4607         (avx512f_fmadd_<mode>_mask): Ditto.
4608         (avx512f_fmadd_<mode>_mask3): Ditto.
4609         (avx512f_fmsub_<mode>_mask): Ditto.
4610         (avx512f_fmsub_<mode>_mask3): Ditto.
4611         (avx512f_fnmadd_<mode>_mask): Ditto.
4612         (avx512f_fnmadd_<mode>_mask3): Ditto.
4613         (avx512f_fnmsub_<mode>_mask): Ditto.
4614         (avx512f_fnmsub_<mode>_mask3): Ditto.
4615         (avx512f_fmaddsub_<mode>_mask): Ditto.
4616         (avx512f_fmaddsub_<mode>_mask3): Ditto.
4617         (avx512f_fmsubadd_<mode>_mask): Ditto.
4618         (avx512f_fmsubadd_<mode>_mask3): Ditto.
4619         (vec_unpacku_float_lo_v16si): Ditto.
4620         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
4621         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
4622         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
4623         (vec_extract_lo_<mode>_maskm): Ditto.
4624         (vec_extract_hi_<mode>_maskm): Ditto.
4625         (avx512f_vternlog<mode>_mask): Ditto.
4626         (avx512f_shufps512_mask): Ditto.
4627         (avx512f_fixupimm<mode>_mask): Ditto.
4628         (avx512f_shufpd512_mask): Ditto.
4629         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
4630         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
4631         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
4632         (ashr<mode>3<mask_name>): Ditto.
4633         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
4634         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
4635         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
4636         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
4637         (avx512f_pshufdv3_mask): Ditto.
4638         (avx512f_perm<mode>_mask): Ditto.
4639         (avx512f_vpermi2var<mode>3_mask): Ditto.
4640         (avx512f_vpermt2var<mode>3_mask): Ditto.
4641         (avx512f_compress<mode>_mask): Ditto.
4642         (avx512f_compressstore<mode>_mask): Ditto.
4643         (avx512f_expand<mode>_mask): Ditto.
4644         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
4645         to support masking.
4646         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
4647         (<plusminus_insn><mode>3<mask_name>): Ditto.
4648         (*<plusminus_insn><mode>3<mask_name>): Ditto.
4649         (mul<mode>3<mask_name>): Ditto.
4650         (*mul<mode>3<mask_name>): Ditto.
4651         (<sse>_div<mode>3<mask_name>): Ditto.
4652         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
4653         (<sse>_sqrt<mode>2<mask_name>): Ditto.
4654         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
4655         (<code><mode>3<mask_name>/smaxmin): Ditto.
4656         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
4657         (*<code><mode>3<mask_name>/smaxmin): Ditto.
4658         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
4659         (ufloatv16siv16sf2<mask_name>): Ditto.
4660         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
4661         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
4662         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
4663         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
4664         (ufloatv8siv8df<mask_name>): Ditto.
4665         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
4666         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
4667         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
4668         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
4669         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
4670         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
4671         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
4672         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
4673         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
4674         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4675         (vec_extract_lo_<mode><mask_name>): Ditto.
4676         (vec_extract_hi_<mode><mask_name>): Ditto.
4677         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
4678         (avx512f_movddup512<mask_name>): Ditto.
4679         (avx512f_unpcklpd512<mask_name>): Ditto.
4680         (*avx512f_unpcklpd512<mask_name>): Ditto.
4681         (*avx512f_vmscalef<mode>): Ditto.
4682         (avx512f_scalef<mode><mask_name>): Ditto.
4683         (avx512f_getexp<mode><mask_name>): Ditto.
4684         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
4685         (avx512f_rndscale<mode><mask_name>): Ditto.
4686         (avx512f_shufps512_1<mask_name>): Ditto.
4687         (avx512f_shufpd512_1<mask_name>): Ditto.
4688         (<plusminus_insn><mode>3<mask_name>): Ditto.
4689         (*<plusminus_insn><mode>3<mask_name>): Ditto.
4690         (vec_widen_umult_even_v16si<mask_name>): Ditto.
4691         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
4692         (vec_widen_smult_even_v16si<mask_name>): Ditto.
4693         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
4694         (mul<mode>3<mask_name>): Ditto.
4695         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
4696         (<shift_insn><mode>3<mask_name>): Ditto.
4697         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
4698         (avx512f_<rotate><mode><mask_name>): Ditto.
4699         (<code><mode>3<mask_name>/maxmin): Ditto.
4700         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
4701         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
4702         (*andnot<mode>3<mask_name>): Ditto.
4703         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
4704         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
4705         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
4706         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
4707         (vec_set_lo_<mode><mask_name>): Ditto.
4708         (vec_set_hi_<mode><mask_name>): Ditto.
4709         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
4710         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
4711         (avx512f_pshufd_1<mask_name>): Ditto.
4712         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
4713         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
4714         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
4715         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
4716         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
4717         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
4718         (avx512er_exp2<mode><mask_name>): Ditto.
4719         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
4720         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
4721         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
4722         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
4723         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
4724         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
4725         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
4726         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
4727         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
4728         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
4729         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
4730         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
4731         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
4732         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
4733         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
4734         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
4735         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
4736         (avx512f_getmant<mode><mask_name>): Ditto.
4737         (clz<mode>2<mask_name>): Ditto.
4738         (<mask_codefor>conflict<mode><mask_name>): Ditto.
4739         (*srcp14<mode>): Remove visibility.
4740         (*rsqrt14<mode>): Ditto.
4741         (*fma_fmsub_<mode>): Ditto.
4742         (*fma_fnmadd_<mode>): Ditto.
4743         (*avx512f_rndscale<mode>): Ditto.
4744         * config/i386/subst.md: New file.
4746 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
4748         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
4749         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
4750         (atomic_load_explicit, atomic_exchange_explicit)
4751         (atomic_compare_exchange_strong_explicit)
4752         (atomic_compare_exchange_weak_explicit): Use __auto_type to
4753         declare variable initialized with PTR argument.
4755 2013-11-12  Jeff Law  <law@redhat.com>
4757         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
4758         backedge_seen_p.  Set, use and pass it to children appropriately.
4759         (thread_through_normal_block): Similarly.
4760         (thread_across_edge): Similarly.
4762         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
4763         memory references as volatile.
4764         (insert_trap_and_remove_trailing_statements): Fix comment.
4766 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
4768         PR other/58712
4769         * ira-costs.c (record_operand_costs): Check operands number for
4770         the single set.
4772 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4774         PR target/59054
4775         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
4776         constraints that would allow DImode into the traditional Altivec
4777         registers, but cause undesirable code generation when loading 0 as
4778         a constant.
4779         (movdi_internal64): Likewise.
4780         (cmp<mode>_fpr): Do not use %x for CR register output.
4781         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
4782         -mallow-upper-sf debug switches are used.
4784 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
4786         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
4787         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
4788         Relocate prototypes from gimple.h.
4789         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
4790         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
4791         from gimple.h.
4792         * gimple.h: Move some prototypes to gimplify.h.
4793         (gimple_predicate, enum fallback, enum gimplify_status): Move to
4794         gimplify.h.
4795         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
4796         Relocate from gimpify.c.
4797         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4798         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
4799         is_gimple_reg_rhs) Relocate from gimplify.c.
4800         * gimplify.c (mark_addressable): Move to gimple-expr.c.
4801         (gimple_seq_add_stmt_without_update): Move to gimple.c.
4802         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4803         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
4804         is_gimple_reg_rhs): Move to gimple-expr.c.
4805         (should_carry_location_p): Move to gimple.c.
4806         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
4807         to gimple.h.
4808         (annotate_one_with_location, annotate_all_with_location_after,
4809         annotate_all_with_location): Move to gimple.c.
4810         (compare_case_labels, sort_case_labels,
4811         preprocess_case_label_vec_for_gimple): Move to gimple.c.
4812         (rhs_predicate_for): Make static.
4813         (gimplify_assign): Relocate from gimple.c.
4814         * gimple.c (gimplify_assign): Move to gimplify.c.
4815         (gimple_seq_add_stmt_without_update, should_carry_location_p,
4816         annotate_one_with_location, annotate_all_with_location_after,
4817         annotate_all_with_location, compare_case_labels, sort_case_labels,
4818         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
4819         * tree.h (unshare_expr, unshare_expr_without_location,
4820         mark_addressable): Move prototypes to gimplify.h.
4821         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
4822         tmp_var_id_num
4823         * asan.c: Include gimplify.h rather than gimple.h.
4824         * cfgloopmanip.c: Likewise.
4825         * cgraphunit.c: Likewise.
4826         * cilk-common.c: Likewise.
4827         * dwarf2out.c: Dont include gimple.h.
4828         * fold-const.c: Include gimplify.h rather than gimple.h.
4829         * function.c: Likewise.
4830         * gimple-fold.c: Likewise.
4831         * gimple-ssa-strength-reduction.c: Likewise.
4832         * graphite-clast-to-gimple.c: Likewise.
4833         * graphite-sese-to-poly.c: Likewise.
4834         * ipa-prop.c: Likewise.
4835         * ipa-split.c: Likewise.
4836         * ipa.c: Likewise.
4837         * langhooks.c: Dont include gimple.h.
4838         * loop-init.c: Include gimplify.h rather than gimple.h.
4839         * omp-low.c: Likewise.
4840         * sese.c: Likewise.
4841         * stor-layout.c: Likewise.
4842         * targhooks.c: Likewise.
4843         * trans-mem.c: Likewise.
4844         * tree-affine.c: Likewise.
4845         * tree-cfg.c: Likewise.
4846         * tree-cfgcleanup.c: Likewise.
4847         * tree-complex.c: Likewise.
4848         * tree-if-conv.c: Likewise.
4849         * tree-inline.c: Likewise.
4850         * tree-iterator.c: Likewise.
4851         * tree-loop-distribution.c: Likewise.
4852         * tree-nested.c: Likewise.
4853         * tree-parloops.c: Likewise.
4854         * tree-predcom.c: Likewise.
4855         * tree-profile.c: Likewise.
4856         * tree-scalar-evolution.c: Likewise.
4857         * tree-sra.c: Likewise.
4858         * tree-ssa-address.c: Likewise.
4859         * tree-ssa-ccp.c: Likewise.
4860         * tree-ssa-dce.c: Likewise.
4861         * tree-ssa-forwprop.c: Likewise.
4862         * tree-ssa-ifcombine.c: Likewise.
4863         * tree-ssa-loop-im.c: Likewise.
4864         * tree-ssa-loop-ivopts.c: Likewise.
4865         * tree-ssa-loop-manip.c: Likewise.
4866         * tree-ssa-loop-niter.c: Likewise.
4867         * tree-ssa-loop-prefetch.c: Likewise.
4868         * tree-ssa-loop-unswitch.c: Likewise.
4869         * tree-ssa-math-opts.c: Likewise.
4870         * tree-ssa-phiopt.c: Likewise.
4871         * tree-ssa-phiprop.c: Likewise.
4872         * tree-ssa-pre.c: Likewise.
4873         * tree-ssa-propagate.c: Likewise.
4874         * tree-ssa-reassoc.c: Likewise.
4875         * tree-ssa-sccvn.c: Likewise.
4876         * tree-ssa-strlen.c: Likewise.
4877         * tree-ssa.c: Likewise.
4878         * tree-switch-conversio: Likewise.n.c
4879         * tree-tailcall.c: Likewise.
4880         * tree-vect-data-refs.c: Likewise.
4881         * tree-vect-generic.c: Likewise.
4882         * tree-vect-loop-manip.c: Likewise.
4883         * tree-vect-loop.c: Likewise.
4884         * tree-vect-patterns.c: Likewise.
4885         * tree-vect-stmts.c: Likewise.
4886         * tsan.c: Likewise.
4887         * value-prof.c: Likewise.
4888         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
4889         * config/alpha/alpha.c: Likewise.
4890         * config/darwin.c: Likewise.
4891         * config/i386/i386.c: Likewise.
4892         * config/ia64/ia64.c: Likewise.
4893         * config/mep/mep.c: Likewise.
4894         * config/mips/mips.c: Likewise.
4895         * config/rs6000/rs6000.c: Likewise.
4896         * config/s390/s390.c: Likewise.
4897         * config/sh/sh.c: Likewise.
4898         * config/sparc/sparc.c: Likewise.
4899         * config/spu/spu.c: Likewise.
4900         * config/stormy16/stormy16.c: Likewise.
4901         * config/tilegx/tilegx.c: Likewise.
4902         * config/tilepro/tilepro.c: Likewise.
4903         * config/xtensa/xtensa.c: Likewise.
4905 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
4907         * tree.c (grow_tree_vec_stat): New function ...
4908         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
4909         and macro front-end.
4911 2013-11-12  Marek Polacek  <polacek@redhat.com>
4913         * final.c (update_alignments): Initialize label to NULL_RTX.
4915 2013-11-12  Jeff Law  <law@redhat.com>
4917         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
4918         (insert_trap_and_remove_trailing_statements): New argument OP which
4919         is the NULL pointer.  Emit the trap after the load/store through
4920         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
4921         when trivial to do so.
4922         (isolate_path): Corresponding changes.
4923         (gimple_ssa_isolate_erroneous_path): Likewise.
4925 2013-11-12  Teresa Johnson  <tejohnson@google.com>
4926             Jan Hubicka  <jh@suse.cz>
4928         * predict.c (drop_profile): New function.
4929         (handle_missing_profiles): Ditto.
4930         (counts_to_freqs): Don't overwrite estimated frequencies
4931         when function has no profile counts.
4932         * predict.h (handle_missing_profiles): Declare.
4933         * tree-inline.c (freqs_to_counts): New function.
4934         (copy_cfg_body): Invoke freqs_to_counts as needed.
4935         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
4937 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
4939         PR target/59088
4940         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
4941         Set for m_HASWELL.
4942         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
4944 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
4946         PR target/59084
4947         * config/i386/i386.c (ix86_option_override_internal): Check
4948         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
4949         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
4950         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
4951         MASK_AVX256_SPLIT_UNALIGNED_STORE.
4953         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
4954         Clear m_COREI7_AVX and update comments.
4955         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
4957 2013-11-12  Martin Jambor  <mjambor@suse.cz>
4959         PR rtl-optimization/10474
4960         * ira.c (interesting_dest_for_shprep): New function.
4961         (split_live_ranges_for_shrink_wrap): Likewise.
4962         (find_moveable_pseudos): Move calculation of dominance info,
4963         df_analysios and the final anlyses to...
4964         (ira): ...here, call split_live_ranges_for_shrink_wrap.
4966 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
4968         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
4969         Handle type conversion.
4971 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
4972             Jan Hubicka  <jh@suse.cz>
4974         * cgraph.c (dump_cgraph_node): Profile dump added.
4975         * cgraph.h (struct cgraph_node): New time profile variable added.
4976         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
4977         * gcov-io.h (gcov_type): New profiler type introduced.
4978         * ipa-profile.c (lto_output_node): Streaming for time profile added.
4979         (input_node): Time profiler is read from LTO stream.
4980         * predict.c (maybe_hot_count_p): Hot prediction changed.
4981         * profile.c (instrument_values): New case for time profiler added.
4982         (compute_value_histograms): Read of time profile.
4983         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
4984         * tree-profile.c (init_ic_make_global_vars): Time profiler
4985         function added.
4986         (gimple_init_edge_profiler): TP function instrumentation.
4987         (gimple_gen_time_profiler): New.
4988         * value-prof.c (gimple_add_histogram_value): Support for time profiler
4989         added.
4990         (dump_histogram_value): TP type added to dumps.
4991         (visit_hist): More sensitive check that takes TP into account.
4992         (gimple_find_values_to_profile): TP instrumentation.
4993         * value-prof.h (hist_type): New histogram type added.
4994         (struct histogram_value_t): Pointer to struct function added.
4995         * libgcc/Makefile.in: New GCOV merge function for TP added.
4996         * libgcov.c: function_counter variable introduced.
4997         (_gcov_merge_time_profile): New.
4998         (_gcov_time_profiler): New.
5000 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
5001             Jeff Law  <law@redhat.com>
5003         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
5004         ao_ref_init_from_ptr_and_size for builtins.
5006 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
5007             H.J. Lu  <hongjiu.lu@intel.com>
5009         PR target/58853
5010         * config/i386/x86-tune.def
5011         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5012         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
5013         * config/i386/i386.h
5014         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5015         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
5016         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
5017         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
5018         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
5019         misaligned_prologue_used.  Check that
5020         desired_aling <= epilogue_size_needed.
5022 2013-11-11  Cong Hou  <congh@google.com>
5024         PR tree-optimization/59050
5025         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
5027 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
5029         PR middle-end/59049
5030         * expmed.c (emit_store_flag): Fail for const-const comparison.
5032 2013-11-11  Tristan Gingold  <gingold@adacore.com>
5033             Eric Botcazou  <ebotcazou@adacore.com>
5035         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
5036         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
5037         * tree.def (CONSTRUCTOR): Likewise.
5038         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
5039         * gimplify.c (gimplify_init_constructor): Do not clear the object when
5040         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
5042 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
5044         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
5045         diagnostic_finish.
5047 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5049         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
5050         comparisons.
5052 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
5054         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
5056 2013-11-08  Jeff Law  <law@redhat.com>
5058         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
5059         threading paths first, then perform PHI node checks if applicable.
5061 2013-11-10  Karlson2k  <k2k@narod.ru>
5062             Kai Tietz  <ktietz@redhat.com>
5064         PR plugin/52872
5065         * configure.ac: Adding for exported symbols check
5066         and for rdynamic-check executable-extension.
5067         * configure: Regenerated.
5069 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
5071         * mode-switching.c (optimize_mode_switching): Mark block as
5072         nontransparent, if last_mode at block exit is different from no_mode.
5074 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5076         * function.c (NAME__MAIN): Move to...
5077         * cfgexpand.c (NAME__MAIN): ...here.
5079 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
5081         * target.def (can_use_doloop_p): New hook.
5082         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
5083         * doc/tm.texi: Regenerate.
5084         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
5085         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
5086         * hooks.c (hook_bool_dint_dint_uint_true): New function.
5087         * targhooks.h (can_use_doloop_if_innermost): Declare.
5088         * targhooks.c (can_use_doloop_if_innermost): New function.
5089         * target.h: Include double-int.h.
5090         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
5091         Remove iteration count, maximum iteration count, loop depth and
5092         enter-at-top inputs from doloop_begin and doloop_end.
5093         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
5094         interface.
5095         * config/arc/arc.c (arc_can_use_doloop_p): New function.
5096         (TARGET_CAN_USE_DOLOOP_P): Define.
5097         * config/arm/thumb2.md (doloop_end): Update for new interface.
5098         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
5099         * config/bfin/bfin.md (doloop_end): Update for new interface.
5100         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
5101         (TARGET_CAN_USE_DOLOOP_P): Define.
5102         * config/c6x/c6x.md (doloop_end): Update for new interface.
5103         * config/ia64/ia64.md (doloop_end): Update for new interface.
5104         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
5105         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
5106         interface.
5107         * config/mep/mep.c (mep_emit_doloop): Likewise.
5108         (TARGET_CAN_USE_DOLOOP_P): Define.
5109         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
5110         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
5111         * config/s390/s390.md (doloop_end): Update for new interface.
5112         * config/sh/sh.md (doloop_end): Likewise.
5113         * config/spu/spu.md (doloop_end): Likewise.
5114         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
5115         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
5116         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
5117         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
5118         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
5119         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
5120         interface.
5121         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
5123 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
5125         PR other/59055
5126         * doc/extend.texi: Move Cilk Plus Builtins node before Other
5127         Builtins node.
5129 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
5130             Joseph Myers  <joseph@codesourcery.com>
5132         * ginclude/stdatomic.h: New file.
5133         * Makefile.in (USER_H): Add stdatomic.h.
5135 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5137         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
5138         comparisons.
5140 2013-11-08  Jeff Law  <law@redhat.com>
5142         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
5143         * tree-ssa-threadupdate.c (delete_thread_path): New function.
5144         (ssa_redirect_edges, thread_block_1): Use it.
5145         (thread_through_loop_header, mark_threaded_blocks): Likewise.
5146         (thread_through_all_blocks, register_jump_thread): Likewise.
5147         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
5149 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
5151         * config/arm/aarch-common.c
5152         (search_term): New typedef.
5153         (shift_rtx_costs): New array.
5154         (arm_rtx_shift_left_p): New.
5155         (arm_find_sub_rtx_with_search_term): Likewise.
5156         (arm_find_sub_rtx_with_code): Likewise.
5157         (arm_early_load_addr_dep): Add sanity checking.
5158         (arm_no_early_alu_shift_dep): Likewise.
5159         (arm_no_early_alu_shift_value_dep): Likewise.
5160         (arm_no_early_mul_dep): Likewise.
5161         (arm_no_early_store_addr_dep): Likewise.
5163 2013-11-08  Richard Biener  <rguenther@suse.de>
5165         PR tree-optimization/59047
5166         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
5168 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5170         * common.opt (fcheck-pointer-bounds): Move to ...
5171         * c-family/c.opt: ... here.
5172         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
5173         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
5174         * langhooks.h (lang_hooks): Remove chkp_supported field.
5175         * toplev.c (process_options): Remove chkp_supported check.
5177 2013-11-08  Richard Biener  <rguenther@suse.de>
5179         PR tree-optimization/59038
5180         PR tree-optimization/58955
5181         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
5182         previous change.  Handle known dependences correctly.
5184 2013-11-08  Tom de Vries  <tom@codesourcery.com>
5186         * config/rs6000/t-xilinx: Remove duplicate contents.
5188 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
5189             Joseph Myers  <joseph@codesourcery.com>
5191         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
5192         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
5193         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
5194         (struct tree_base): Add atomic_flag field.
5195         * tree.h (TYPE_ATOMIC): New accessor macro.
5196         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
5197         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
5198         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
5199         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
5200         * tree.c (set_type_quals): Set TYPE_ATOMIC.
5201         (find_atomic_core_type): New function.
5202         (build_qualified_type): Adjust alignment for qualified types.
5203         (build_atomic_base): New function
5204         (build_common_tree_nodes): Build atomicQI_type_node,
5205         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
5206         atomicTI_type_node.
5207         * print-tree.c (print_node): Print atomic qualifier.
5208         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
5209         * target.def (atomic_assign_expand_fenv): New hook.
5210         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
5211         * doc/tm.texi: Regenerate.
5212         * targhooks.c (default_atomic_assign_expand_fenv): New function.
5213         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
5214         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
5215         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
5216         function type.
5217         * config/i386/i386.c (enum ix86_builtins): Add
5218         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
5219         IX86_BUILTIN_FNCLEX.
5220         (bdesc_special_args): Add __builtin_ia32_fnstenv,
5221         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
5222         (ix86_expand_builtin): Handle the new built-in functions.
5223         (ix86_atomic_assign_expand_fenv): New function.
5224         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
5225         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
5226         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
5227         (fnstenv, fldenv, fnstsw, fnclex): New insns.
5229 2013-11-07  Steve Ellcey  <sellcey@mips.com>
5231         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
5232         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
5233         (MULTILIB_DIRNAMES): Add fp64 directory.
5234         (MULTILIB_EXCEPTIONS): Add new exclusions.
5236 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
5238         * gimplify.c (gimple_regimplify_operands): Do not set
5239         SSA_NAME_DEF_STMT.
5240         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
5241         (rewrite_close_phi_out_of_ssa): Same.
5242         (rewrite_phi_out_of_ssa): Same.
5243         (rewrite_degenerate_phi): Same.
5244         (handle_scalar_deps_crossing_scop_limits): Same.
5245         * tree-if-conv.c (predicate_scalar_phi): Same.
5246         * tree-parloops.c (create_loads_for_reductions): Same.
5247         (create_final_loads_for_reduction): Same.
5248         (create_loads_and_stores_for_name): Same.
5249         (transform_to_exit_first_loop): Same.
5250         (create_parallel_loop): Same.
5251         * tree-ssa-loop-im.c
5252         (move_computations_dom_walker::before_dom_children): Same.
5253         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
5254         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
5255         * tree-ssa-propagate.c (substitute_and_fold): Same.
5256         * tree-vect-loop.c (vect_finalize_reduction): Same.
5257         * tree-vect-stmts.c (vectorizable_call): Same.
5259 2013-11-07  Mike Stump  <mikestump@comcast.net>
5261         * config/pdp11/pdp11.c: Include dbxout.h.
5262         * config/picochip/picochip.c: Likewise.
5264 2013-11-07  Cong Hou  <congh@google.com>
5266         PR tree-optimization/56764
5267         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5268         Combine alias checks if it is possible to amortize the runtime
5269         overhead.  Return the number of alias checks after merging.
5270         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5271         Use the function vect_create_cond_for_alias_checks () to check
5272         the number of alias checks.
5274 2013-11-07  Jeff Law  <law@redhat.com>
5276         * varpool.c (ctor_for_folding): Fix typo in comment.
5278 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
5280         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
5281         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
5283 2013-11-07  Jeff Law  <law@redhat.com>
5285         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
5287         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
5288         No longer check if we have __builtin_trap, assume it's available.
5290 2013-11-07  Diego Novillo  <dnovillo@google.com>
5292         * attribs.c (lookup_scoped_attribute_spec): Make static.
5293         (get_attribute_namespace): Likewise.
5294         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
5295         (validate_arglist): Move earlier in the file. Make static.
5296         (expand_stack_restore): Move from stmt.c
5297         (expand_stack_save): Move from stmt.c
5298         (rewrite_call_expr_array): Move earlier in the file.
5299         (rewrite_call_expr_valist): Likewise.
5300         * cfgexpand.c: Include hard-reg-set.h before tree.h
5301         Include recog.h.
5302         Include output.h.
5303         (expand_asm_loc): Move from stmt.c.
5304         (n_occurrences): Move from stmt.c.
5305         (check_operand_nalternatives): Move from stmt.c.
5306         (tree_conflicts_with_clobbers_p): Move from stmt.c.
5307         (expand_asm_operands): Move from stmt.c
5308         (expand_asm_stmt): Move from stmt.c
5309         (expand_computed_goto): Move from stmt.c
5310         (expand_goto): Move from stmt.c
5311         (expand_null_return_1): Move from stmt.c
5312         (expand_null_return): Move from stmt.c
5313         (expand_value_return): Move from stmt.c
5314         (expand_return): Move from stmt.c
5315         (expand_main_function): Move from function.c
5316         (stack_protect_prologue): Move from function.c
5317         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
5318         (build_function_decl_skip_args): Move from tree.c.
5319         * explow.c (tree_expr_size): Move from tree.c.
5320         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
5321         (fields_length): Move from tree.c.
5322         * fold-const.c (size_low_cst): Move from tree.c.
5323         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
5324         (tree_expr_nonzero_p): Make static. Move earlier in the file.
5325         (fold_build3_initializer_loc): Remove.
5326         (tree_invalid_nonnegative_warnv_p): Make static.
5327         * function.c (expand_main_function): Move to cfgexpand.c.
5328         (stack_protect_prologue): Move to cfgexpand.c.
5329         (set_insn_locations): Move earlier in the file.
5330         * gimple-fold.c: Include langhooks.h.
5331         (truth_type_for): Move from tree.c.
5332         * print-tree.c (print_vec_tree): Remove.
5333         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
5334         (expand_goto): Move to cfgexpand.c.
5335         (n_occurrences): Move to cfgexpand.c.
5336         (expand_asm_loc): Move to cfgexpand.c
5337         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
5338         (expand_asm_operands): Move to cfgexpand.c.
5339         (expand_asm_stmt): Move to cfgexpand.c.
5340         (check_operand_nalternatives): Move to cfgexpand.c
5341         (expand_null_return): Move to cfgexpand.c.
5342         (expand_value_return): Move to cfgexpand.c.
5343         (expand_null_return_1): Move to cfgexpand.c.
5344         (expand_return): Move to cfgexpand.c.
5345         (expand_stack_save): Move to builtins.c.
5346         (expand_stack_restore): Move to builtins.c
5347         * symtab.c: Include output.h.
5348         (decl_assembler_name_hash): Move from tree.c.
5349         (decl_assembler_name_equal): Move from tree.c.
5350         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
5351         * tree-eh.c (in_array_bounds_p): Move from tree.c.
5352         (range_in_array_bounds_p): Move from tree.c.
5353         * tree-object-size.c (fini_object_sizes): Make static.
5354         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
5355         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
5356         * tree.c (decl_assembler_name_equal): Move to symtab.c.
5357         (tree_expr_size): Move to explow.c.
5358         (decl_assembler_name_hash): Move to symtab.c.
5359         (real_twop): Remove.
5360         (tree_expr_size): Move to explow.c.
5361         (stabilize_reference_1): Move earlier in the file. Make static.
5362         (omp_remove_redundant_declare_simd_attrs): Remove.
5363         (simple_cst_list_equal): Move earlier in the file. Make static.
5364         (size_low_cst): Move to fold-const.c.
5365         (build_type_no_quals): Remove.
5366         (build_function_type_skip_args): Move to cgraphclones.c.
5367         (build_function_decl_skip_args): Move to cgraphclones.c.
5368         (in_array_bounds_p): Move to tree-eh.c.
5369         (range_in_array_bounds_p): Move to tree-eh.c.
5370         (truth_type_for): Move to gimple-fold.c.
5371         (list_equal_p): Remove.
5372         * tree.h (decl_assembler_name_equal): Remove.
5373         (decl_assembler_name_hash): Remove.
5374         (truth_type_for): Remove.
5375         (build_type_no_quals): Remove.
5376         (build_function_decl_skip_args): Remove.
5377         (in_array_bounds_p): Remove.
5378         (range_in_array_bounds_p): Remove.
5379         (size_low_cst): Remove.
5380         (omp_remove_redundant_declare_simd_attrs): Remove.
5381         (tree_expr_size): Remove.
5382         (fields_length): Remove.
5383         (stabilize_reference_1): Remove.
5384         (expand_goto): Remove.
5385         (expand_stack_save): Remove.
5386         (expand_stack_restore): Remove.
5387         (expand_return): Remove.
5388         (fold_build3_initializer_loc): Remove.
5389         (tree_expr_nonzero_p): Remove.
5390         (tree_invalid_nonnegative_warnv_p): Remove.
5391         (tree_expr_nonzero_warnv_p): Remove.
5392         (fold_builtin_snprintf_chk): Remove.
5393         (validate_arglist): Remove.
5394         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
5395         (simple_cst_list_equal): Remove.
5396         (real_twop): Remove.
5397         (expand_main_function): Remove.
5398         (stack_protect_prologue): Remove.
5399         (print_vec_tree): Remove.
5400         (lookup_scoped_attribute_spec): Remove.
5401         (get_attribute_namespace): Remove.
5402         (expand_computed_goto): Remove.
5403         (expand_asm_stmt): Remove.
5404         (list_equal_p): Remove.
5405         (ssa_name_nonnegative_p): Remove.
5406         (fini_object_sizes): Remove.
5407         (addr_expr_of_non_mem_decl_p): Remove.
5408         (is_tm_safe_or_pure): Move to trans-mem.c.
5409         (more_const_call_expr_args_p): Remove.
5410         (save_vtable_map_decl): Remove.
5412 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
5414         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
5415         linker plugins, too.
5417         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
5418         link to libgomp and its dependencies.
5419         * config/ia64/hpux.h (LIB_SPEC): Likewise.
5420         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5421         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
5422         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
5424 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
5426         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
5427         (determine_value_range): Add loop argument.  Use get_range_info to
5428         improve range.
5429         (bound_difference): Adjust caller.
5431 2013-11-07  Richard Biener  <rguenther@suse.de>
5432             Jakub Jelinek  <jakub@redhat.com>
5434         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
5435         latches from header PHI arguments from the latch edge.
5437 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
5439         PR c++/58176
5440         * varasm.c (output_constant): Handle NULLPTR_TYPE.
5442 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5444         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
5445         misaligned_prologue_used when it has been set.
5447 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
5448             Jakub Jelinek  <jakub@redhat.com>
5450         PR sanitizer/59029
5451         * asan.c (get_mem_refs_of_builtin_call): Allow
5452         integer literals as addresses in instrumented builtins.
5454 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5456         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
5457         Explain why plus_constant is not used.
5459 2013-11-07  Richard Biener  <rguenther@suse.de>
5461         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
5462         (canonicalize_value): ... this.  Also handle stripping of
5463         TREE_OVERFLOW.
5464         (get_value, set_lattice_value, get_value_for_expr): Adjust.
5465         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
5466         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
5468 2013-11-07  Richard Biener  <rguenther@suse.de>
5470         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
5472 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5474         PR target/59034
5475         * config/i386/i386.md (push peepholer/splitter): Use Pmode
5476         with stack_pointer_rtx.
5478 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
5480         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
5481         using operand_equal_p.
5483 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
5485         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
5486         * tree-affine.c (get_inner_reference_aff): Return base.
5487         * tree-affine.h (get_inner_reference_aff): Change prototype.
5489 2013-11-06  Tobias Burnus  <burnus@net-b.de>
5491         * doc/invoke.texi (Wdate-time): Fix typo.
5493 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
5495         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
5496         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
5497         fp_arith_reg_operand instead of arith_reg_operand.
5499 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
5501         * config/sh/sh.md (adddi3): Remove empty constraints.
5502         Remove can_create_pseudo_p and arith_reg_operand check.
5503         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
5504         Split before reload.
5506 2013-11-06  Jeff Law  <law@redhat.com>
5507             Tom Tromey  <tromey@redhat.com>
5509         * gdbinit.in: Disable strict type checking.
5511 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
5513         * tree-pass.h (make_pass_live_range_shrinkage): New external.
5514         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
5515         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
5516         (rest_of_handle_live_range_shrinkage): Ditto
5517         (class pass_live_range_shrinkage): Ditto.
5518         (pass_data_live_range_shrinkage): Ditto.
5519         (make_pass_live_range_shrinkage): Ditto.
5520         * sched-int.h (initialize_live_range_shrinkage): New prototype.
5521         (finish_live_range_shrinkage): Ditto.
5522         * sched-deps.c (create_insn_reg_set): Make void return value.
5523         * passes.def: Add pass_live_range_shrinkage.
5524         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
5525         * haifa-sched.c (live_range_shrinkage_p): New.
5526         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
5527         New functions.
5528         (rank_for_schedule): Add code for pressure relief through live
5529         range shrinkage.
5530         (schedule_insn): Print more debug info.
5531         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
5532         through live range shrinkage.
5533         * doc/invoke.texi (-flive-range-shrinkage): New.
5534         * common.opt (flive-range-shrinkage): New.
5536 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
5538         PR target/59021
5539         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
5540         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
5541         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
5542         RTXes that return in AVX256 register.
5544 2013-11-06  Richard Biener  <rguenther@suse.de>
5546         PR tree-optimization/58653
5547         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
5548         (prepare_initializers_chain): Adjust.
5550 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
5552         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
5553         (gimple_in_transaction): Use bb_in_transaction.
5554         * basic-block.h (bb_in_transaction): Relocate here and rename.
5555         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
5557 2013-11-06  Richard Biener  <rguenther@suse.de>
5559         * tree.c (drop_tree_overflow): New function.
5560         * tree.h (drop_tree_overflow): Declare.
5561         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
5562         * tree-vrp.c (range_int_cst_singleton_p): Use
5563         is_overflow_infinity instead of testing TREE_OVERFLOW.
5564         (extract_range_from_assert): Likewise.
5565         (zero_nonzero_bits_from_vr): Likewise.
5566         (extract_range_basic): Likewise.
5567         (register_new_assert_for): Use drop_tree_overflow.
5568         (vrp_visit_phi_node): Likewise.
5570 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
5572         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
5573         checking for leaf functions without dynamic stack allocation.
5574         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
5575         (ia64_expand_prologue): Likewise.
5576         * config/mips/mips.c (mips_expand_prologue): Likewise.
5577         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5578         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5579         (sparc_flat_expand_prologue): Likewise.
5581 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
5583         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
5584         (__ST3_LANE_FUNC): Likewise.
5585         (__ST4_LANE_FUNC): Likewise.
5587 2013-11-06  Nick Clifton  <nickc@redhat.com>
5589         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
5590         name returned by msp430_mcu_name.
5591         (LIB_SPEC): If a -T option has not been specified then set a
5592         default, mcu-specific, linker script.
5593         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
5594         * config/msp430/msp430.c (msp430x_names): Likewise.
5595         Alpha sort the names for ease of comparison.
5596         (msp430_mcu_name): New function:  Returns a string suitable for
5597         use as a C preprocessor symbol based upon the name of the MCU
5598         being targeted.
5599         (msp430_option_override): Accept msp430x and msp430xv2 as generic
5600         mcu names.
5601         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
5603         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
5604         unless it is the last part of a spec substring.
5605         * doc/invoke.texi (Spec Files): Document space insertion
5606         behaviour of %*.
5608 2013-11-06  Christian Bruel  <christian.bruel@st.com>
5610         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
5611         Factorize probabilities, Use adjust_address instead of
5612         adjust_automodify_address when possible. Enable for optimize.
5613         (sh_expand_strlen): New function.
5614         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
5615         * config/sh/sh.md (strlensi): New pattern.
5616         (UNSPEC_BUILTIN_STRLEN): Define.
5618 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
5620         PR middle-end/58970
5621         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
5622         (expand_assignment): If *bitpos is negative, set *offset
5623         and adjust *bitpos, so that it is not negative.
5625 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
5627         * config/i386/bdver3.md : Added two additional decoder units
5628         to support issue rate of 4 and remodeled vector unit.
5629         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
5630         architectures is set to 4.
5631         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
5632         lookahead is set to 4 for BD architectures.
5634 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5636         * config/rs6000/rs6000.c (rs6000_option_override_internal):
5637         Remove restriction against use of VSX instructions when generating
5638         code for little endian mode.
5640 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5642         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
5643         for both big and little endian.
5644         (mulv8hi3): Swap input operands for merge high and merge low
5645         instructions for little endian.
5647 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5649         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
5650         define_insn to define_expand that uses even patterns for big
5651         endian and odd patterns for little endian.
5652         (vec_widen_smult_even_v16qi): Likewise.
5653         (vec_widen_umult_even_v8hi): Likewise.
5654         (vec_widen_smult_even_v8hi): Likewise.
5655         (vec_widen_umult_odd_v16qi): Likewise.
5656         (vec_widen_smult_odd_v16qi): Likewise.
5657         (vec_widen_umult_odd_v8hi): Likewise.
5658         (vec_widen_smult_odd_v8hi): Likewise.
5659         (altivec_vmuleub): New define_insn.
5660         (altivec_vmuloub): Likewise.
5661         (altivec_vmulesb): Likewise.
5662         (altivec_vmulosb): Likewise.
5663         (altivec_vmuleuh): Likewise.
5664         (altivec_vmulouh): Likewise.
5665         (altivec_vmulesh): Likewise.
5666         (altivec_vmulosh): Likewise.
5668 2013-11-05  Mike Stump  <mikestump@comcast.net>
5670         * Makefile.in (mostlyclean): Remove c-family objects.
5672 2013-11-05  Ian Lance Taylor  <iant@google.com>
5674         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5675         If possible, add .cfi directives to record change to bx.
5676         * config/i386/i386.c (ix86_emit_cfi): New function.
5677         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
5679 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
5681         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
5682         immediately after a label for a tablejump pattern.
5684         * config/arm/arm.c (is_jump_table): Remove.
5685         (create_fix_barrier): Use tablejump_p instead.
5686         (arm_reorg): Likewise.
5687         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
5688         (thumb2_output_casesi): Likewise.
5689         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
5690         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
5691         casesi_shift_media, casesi_load_media): Likewise.
5692         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
5693         * config/microblaze/microblaze.md: Likewise.
5695 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5697         * doc/invoke.texi (-Wdate-time): Document.
5699 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
5701         * double-int.c (lshift_double, rshift_double): Remove
5702         SHIFT_COUNT_TRUNCATED handling.
5704 2013-11-05  Jeff Law  <law@redhat.com>
5706         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
5707         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
5708         * gimple-ssa-isolate-paths.c: New file.
5709         * gimple.c (check_loadstore): New function.
5710         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
5711         Verify OP is in the argument list and the argument corresponding
5712         to OP is a pointer type.  Use operand_equal_p rather than
5713         pointer equality when testing if OP is on the nonnull list.
5714         Use check_loadstore rather than count_ptr_derefs.  Handle
5715         GIMPLE_RETURN statements.
5716         * tree-vrp.c (infer_nonnull_range): Remove.
5717         * gimple.h (infer_nonnull_range): Declare.
5718         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
5719         * passes.def: Add pass_isolate_erroneous_paths.
5720         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
5721         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
5722         * tree-ssa.c (struct count_ptr_d): Remove.
5723         (count_ptr_derefs, count_uses_and_derefs): Remove.
5724         * tree-ssa.h (count_uses_and_derefs): Remove.
5726 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
5728         PR rtl-optimization/58997
5729         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
5730         get_iv_value to be in iv->mode rather than iv->extend_mode.
5731         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
5732         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
5733         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
5734         mode.
5736 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
5738         * gimple.h: Move some prototypes to gimple-expr.h and add to include
5739         list.
5740         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
5741         Move to gimple-expr.h.
5742         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
5743         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
5744         is_gimple_id, virtual_operand_p, is_gimple_addressable,
5745         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
5746         Relocate here.
5747         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
5748         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
5749         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
5750         is_gimple_address, is_gimple_invariant_address,
5751         is_gimple_ip_invariant_address, is_gimple_min_invariant,
5752         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
5753         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
5754         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
5755         gimple_decl_printable_name, useless_type_conversion_p,
5756         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
5757         gimple-expr.[ch].
5758         * gimple-expr.c: New File.
5759         (useless_type_conversion_p, gimple_set_body, gimple_body,
5760         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
5761         gimple_can_coalesce_p, extract_ops_from_tree_1,
5762         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
5763         is_gimple_address, is_gimple_invariant_address,
5764         is_gimple_ip_invariant_address, is_gimple_min_invariant,
5765         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
5766         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
5767         is_gimple_mem_ref_addr): Relocate here.
5768         * Makefile.in (OBJS): Add gimple-expr.o.
5770 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
5772         * gengtype-parse.c (struct_field_seq): Support empty structs.
5774 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
5776         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
5778 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
5780         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
5781         for !TARGET_80387.
5782         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
5783         _SOFT_FLOAT here.
5784         (LONG_DOUBLE_TYPE_SIZE): New define.
5785         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
5787 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
5789         PR c++/58724
5790         * doc/extend.texi [visibility ("visibility_type")]: Add example
5791         about visibility attribute on namespace declaration.
5793 2013-11-05  Richard Biener  <rguenther@suse.de>
5795         PR ipa/58492
5796         * passes.def (all_passes): Start with pass_fixup_cfg again.
5798 2013-11-05  Richard Biener  <rguenther@suse.de>
5800         PR tree-optimization/58955
5801         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
5802         edge direction.
5804 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5806         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
5807         little endian.
5808         (vec_pack_ufix_trunc_v2df): Likewise.
5810 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
5812         PR middle-end/58981
5813         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
5814         pattern, instead of word_mode.
5816         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
5817         Pmode for size.
5818         (set_storage_via_setmem): Likewise.
5820 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
5822         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
5823         gimple.h and the rest of the condition in eliminate_build.
5824         (eliminate_build): Call new routine.
5825         * gimple.h (phi_ssa_name_p): Delete.
5827 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
5829         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
5830         case of no prefix and reserving zero slots, because when that's the
5831         case we'll never get here.
5832         * vec.h (va_heap::reserve): Don't try and handle
5833         vec_prefix::calculate_allocation returning zero because that should
5834         never happen.
5836 2013-11-05  Richard Biener  <rguenther@suse.de>
5838         PR middle-end/58941
5839         * tree-dfa.c (get_ref_base_and_extent): Merge common code
5840         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
5841         process trailing array detection before diving into the
5842         view-converted object (and possibly apply some extra offset).
5844 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
5846         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
5847         New function.
5848         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
5850 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
5852         PR tree-optimization/58958
5853         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
5854         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
5856 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
5858         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
5859         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
5861 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
5863         PR tree-optimization/58984
5864         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
5865         set *SIZE_P if non-NULL on success.
5866         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
5867         callers.
5868         (ipcp_transform_function): Likewise.  Punt if size of access
5869         is different from TYPE_SIZE on v->value's type.
5871 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5873         * doc/invoke.texi (-fopenmp-simd): Document new option.
5874         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
5875         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
5876         * tree.c (attribute_value_equal): Ditto.
5878 2013-11-04  Wei Mi  <wmi@google.com>
5880         * sched-rgn.c (add_branch_dependences): Keep insns in
5881         a SCHED_GROUP at the end of BB to remain their location.
5883 2013-11-04  Wei Mi  <wmi@google.com>
5885         * config/i386/i386.c (memory_address_length): Extract a part
5886         of code to rip_relative_addr_p.
5887         (rip_relative_addr_p): New Function.
5888         (ix86_macro_fusion_p): Ditto.
5889         (ix86_macro_fusion_pair_p): Ditto.
5890         * config/i386/i386.h: Add new tune features about macro-fusion.
5891         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5892         * doc/tm.texi: Generated.
5893         * doc/tm.texi.in: Ditto.
5894         * haifa-sched.c (try_group_insn): New Function.
5895         (group_insns_for_macro_fusion): Ditto.
5896         (sched_init): Call group_insns_for_macro_fusion.
5897         * target.def: Add two hooks: macro_fusion_p and
5898         macro_fusion_pair_p.
5900 2013-11-04  Kostya Serebryany  <kcc@google.com>
5902         Update to match the changed asan API.
5903         * asan.c (asan_function_start): New function.
5904         (asan_emit_stack_protection): Update the string stored in the
5905         stack red zone to match new API.  Store the PC of the current
5906         function in the red zone.
5907         (asan_global_struct): Update the __asan_global definition to match
5908         the new API.
5909         (asan_add_global): Ditto.
5910         * asan.h (asan_function_start): New prototype.
5911         * final.c (final_start_function): Call asan_function_start.
5912         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
5913         to __asan_init_v3.
5915 2013-11-04  Wei Mi  <wmi@google.com>
5917         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
5918         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
5919         * config/i386/i386.c (ix86_option_override_internal): Ditto.
5920         (ix86_issue_rate): Ditto.
5921         (ix86_adjust_cost): Ditto.
5922         (ia32_multipass_dfa_lookahead): Ditto.
5923         (ix86_sched_init_global): Ditto.
5924         (get_builtin_code_for_version): Ditto.
5925         * config/i386/i386.h (enum target_cpu_default): Ditto.
5926         (enum processor_type): Ditto.
5927         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5929 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
5931         PR rtl-optimization/58967
5932         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
5933         !lra_in_progress for mode sizes bigger word.
5935 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5937         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
5938         arguments to merge instruction for little endian.
5939         (vec_widen_umult_lo_v16qi): Likewise.
5940         (vec_widen_smult_hi_v16qi): Likewise.
5941         (vec_widen_smult_lo_v16qi): Likewise.
5942         (vec_widen_umult_hi_v8hi): Likewise.
5943         (vec_widen_umult_lo_v8hi): Likewise.
5944         (vec_widen_smult_hi_v8hi): Likewise.
5945         (vec_widen_smult_lo_v8hi): Likewise.
5947 2013-11-04  Ian Lance Taylor  <iant@google.com>
5949         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
5950         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
5951         builtins that take pointers.
5952         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
5953         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
5954         (run_gcc): Pass -fnon-call-exceptions.
5956 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
5958         * optabs.c (expand_vec_perm): Revert one incorrect line from
5959         2013-10-31 change.
5961         PR tree-optimization/58978
5962         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
5963         use_stmt by single_imm_use directly.  Only call single_imm_use
5964         on SSA_NAMEs.
5966 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
5968         PR rtl-optimization/58968
5969         * lra-spills.c (return_regno_p): New function.
5970         (lra_final_code_change): Use it.
5972 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
5974         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
5975         * target.def (float_exceptions_rounding_supported_p): New hook.
5976         * targhooks.c (default_float_exceptions_rounding_supported_p): New
5977         function.
5978         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
5979         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
5980         New @hook.
5981         * doc/tm.texi: Regenerate.
5982         * config.gcc (powerpc*-*-linux*): Set extra_objs.
5983         * config/rs6000/rs6000-linux.c: New file.
5984         * config/rs6000/rs6000-protos.h
5985         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
5986         * config/rs6000/linux.h
5987         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
5988         * config/rs6000/linux64.h
5989         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
5990         * config/rs6000/t-linux (rs6000-linux.o): New rule.
5991         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
5993 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5995         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
5996         Replace the define_insn_and_split with a define_insn and two
5997         define_splits, with the split after reload re-permuting the source
5998         register to its original value.
5999         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
6000         (*vsx_le_perm_store_v8hi): Likewise.
6001         (*vsx_le_perm_store_v16qi): Likewise.
6003 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6005         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
6006         little endian.
6008 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
6010         PR tree-optimization/58946
6011         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
6012         bbs with bbinfo[idx].op != NULL before all blocks with
6013         bbinfo[idx].op == NULL.
6015 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
6017         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
6018         (avr_dump_double_int_hex): Likewise.
6019         (avr_log_vadump): Remove %D and %X handling.
6020         * config/avr/avr.c (avr_double_int_push_digit): Delete.
6021         (avr_map_op_t): Change map from double_int to unsigned int.
6022         (avr_map_op): Update accordingly.
6023         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
6024         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
6025         unsigned ints rather than double_ints.
6027 2013-11-03  Marek Polacek  <polacek@redhat.com>
6029         Implement -fsanitize=vla-bound.
6030         * opts.c (common_handle_option): Handle vla-bound.
6031         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
6032         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
6033         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
6035 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6037         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
6038         little endian.
6040 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
6042         * config/i386/constraints.md (Ts, Tv): New address constrains.
6043         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
6044         constraint for address_no_seg_operand.
6045         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
6046         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
6047         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
6048         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
6049         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
6050         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
6051         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
6052         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
6053         constraint for vsib_address_operand.
6055 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
6057         * gcse.c (pre_delete): Remove references to regmove from comments.
6058         * recog.c: (validate_replace_rtx_1): Likewise.
6059         * config/rl78/rl78.c: Likewise.
6060         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
6061         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
6062         * common/config/mmix/mmix-common.c: Likewise.
6064 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
6066         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
6067         * gimplify.c (gimplify_compound_lval): Likewise.
6068         * graphite-clast-to-gimple.c (gloog): Likewise.
6069         * graphite-dependences.c (loop_is_parallel_p): Likewise.
6070         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
6071         (limit_scop); Likewise.
6072         (build_scops): Likewise.
6073         (dot_scop): Likewise.
6074         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
6075         (build_scop_drs): Likewise.
6076         (insert_stmts): Likewise.
6077         (insert_out_of_ssa_copy): Likewise.
6078         (remove_phi): Likewise.
6079         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
6080         * hw-doloop.c (discover_loop): Likewise.
6081         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
6082         * tree-dfa.c (dump_enumerated_decls): Likewise.
6083         * tree-if-conv.c (if_convertable_loop_p): Likewise.
6084         * tree-inline.c (tree_function_versioning): Likewise.
6085         * tree-loop-distribution.c (build_rdg): Likewise.
6086         (rdg_flag_vertex_and_dependent): Likewise.
6087         (distribute_loop): Likewise.
6088         * tree-parloops.c (loop_parallel_p): Likewise.
6089         (eliminate_local_variables): Likewise.
6090         (separate_decls_in_region): Likewise.
6091         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
6092         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
6093         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
6094         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
6095         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
6096         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6097         (vectorizable_condition): Likewise.
6099 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
6101         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
6102         * configure: Regenerate.
6103         * config/i386/i386.md (*movdi_internal): Change
6104         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
6105         (*movdf_internal): Ditto.
6106         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
6107         * config/i386/sse.md (vec_concatv2di): Output interunit movq
6108         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
6110 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
6112         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
6113         after comment.
6115 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
6117         Automated part of renaming of symtab_node_base to symtab_node.
6119         Patch autogenerated by rename_symtab.py from
6120         https://github.com/davidmalcolm/gcc-refactoring-scripts
6121         revision 58bb219cc090b2f4516a9297d868c245495ee622
6122         with ChangeLog entry fixed up by hand.
6124         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
6125         symtab_node.
6126         (cgraph_node_for_asm): Likewise.
6127         * cgraph.h (symtab_node_base): Likewise.
6128         (cgraph_node): Likewise.
6129         (varpool_node): Likewise.
6130         (is_a_helper <cgraph_node>::test): Likewise.
6131         (is_a_helper <varpool_node>::test): Likewise.
6132         (symtab_nodes): Likewise.
6133         (symtab_register_node): Likewise.
6134         (symtab_unregister_node): Likewise.
6135         (symtab_remove_node): Likewise.
6136         (symtab_get_node): Likewise.
6137         (symtab_node_for_asm): Likewise.
6138         (symtab_node_asm_name): Likewise.
6139         (symtab_node_name): Likewise.
6140         (symtab_insert_node_to_hashtable): Likewise.
6141         (symtab_add_to_same_comdat_group): Likewise.
6142         (symtab_dissolve_same_comdat_group_list): Likewise.
6143         (dump_symtab_node): Likewise.
6144         (debug_symtab_node): Likewise.
6145         (dump_symtab_base): Likewise.
6146         (verify_symtab_node): Likewise.
6147         (verify_symtab_base): Likewise.
6148         (symtab_used_from_object_file_p): Likewise.
6149         (symtab_alias_ultimate_target): Likewise.
6150         (symtab_resolve_alias): Likewise.
6151         (fixup_same_cpp_alias_visibility): Likewise.
6152         (symtab_for_node_and_aliases): Likewise.
6153         (symtab_nonoverwritable_alias): Likewise.
6154         (availability symtab_node_availability): Likewise.
6155         (symtab_semantically_equivalent_p): Likewise.
6156         (fixup_same_cpp_alias_visibility): Likewise.
6157         (symtab_prevail_in_asm_name_hash): Likewise.
6158         (cgraph): Likewise.
6159         (varpool): Likewise.
6160         (varpool_first_variable): Likewise.
6161         (varpool_next_variable): Likewise.
6162         (varpool_first_static_initializer): Likewise.
6163         (varpool_next_static_initializer): Likewise.
6164         (varpool_first_defined_variable): Likewise.
6165         (varpool_next_defined_variable): Likewise.
6166         (cgraph_first_defined_function): Likewise.
6167         (cgraph_next_defined_function): Likewise.
6168         (cgraph_first_function): Likewise.
6169         (cgraph_next_function): Likewise.
6170         (cgraph_first_function_with_gimple_body): Likewise.
6171         (cgraph_next_function_with_gimple_body): Likewise.
6172         (symtab_alias_target): Likewise.
6173         (symtab_real_symbol_p): Likewise.
6174         (symtab_can_be_discarded): Likewise.
6175         * cgraphbuild.c (mark_address): Likewise.
6176         (mark_load): Likewise.
6177         (mark_store): Likewise.
6178         * cgraphunit.c (decide_is_symbol_needed): Likewise.
6179         (first): Likewise.
6180         (enqueue_node): Likewise.
6181         (referred_to_p): Likewise.
6182         (cgraph_process_same_body_aliases): Likewise.
6183         (analyze_functions): Likewise.
6184         (handle_alias_pairs): Likewise.
6185         (output_weakrefs): Likewise.
6186         (compile): Likewise.
6187         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6188         * ipa-inline-analysis.c (inline_write_summary): Likewise.
6189         * ipa-prop.c (remove_described_reference): Likewise.
6190         (try_decrement_rdesc_refcount): Likewise.
6191         (ipa_edge_duplication_hook): Likewise.
6192         * ipa-ref.c (ipa_record_reference): Likewise.
6193         (ipa_maybe_record_reference): Likewise.
6194         (ipa_clone_ref): Likewise.
6195         (ipa_clone_references): Likewise.
6196         (ipa_clone_referring): Likewise.
6197         (ipa_find_reference): Likewise.
6198         (ipa_remove_stmt_references): Likewise.
6199         (ipa_clear_stmts_in_references): Likewise.
6200         * ipa-ref.h (symtab_node_base): Likewise.
6201         (ipa_ref): Likewise.
6202         (ipa_record_reference): Likewise.
6203         (ipa_maybe_record_reference): Likewise.
6204         (ipa_clone_references): Likewise.
6205         (ipa_clone_referring): Likewise.
6206         (ipa_clone_ref): Likewise.
6207         (ipa_find_reference): Likewise.
6208         (ipa_remove_stmt_references): Likewise.
6209         (ipa_clear_stmts_in_references): Likewise.
6210         * ipa-reference.c (ipa_reference_write_optimization_summary):
6211         Likewise.
6212         * ipa.c (enqueue_node): Likewise.
6213         (process_references): Likewise.
6214         (walk_polymorphic_call_targets): Likewise.
6215         (symtab_remove_unreachable_nodes): Likewise.
6216         (address_taken_from_non_vtable_p): Likewise.
6217         (comdat_can_be_unshared_p_1): Likewise.
6218         (comdat_can_be_unshared_p): Likewise.
6219         (can_replace_by_local_alias): Likewise.
6220         (function_and_variable_visibility): Likewise.
6221         * is-a.h: Likewise (within example in comment).
6222         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
6223         (lto_symtab_encoder_encode): Likewise.
6224         (lto_symtab_encoder_delete_node): Likewise.
6225         (lto_symtab_encoder_in_partition_p): Likewise.
6226         (lto_set_symtab_encoder_in_partition): Likewise.
6227         (output_refs): Likewise.
6228         (compute_ltrans_boundary): Likewise.
6229         (output_symtab): Likewise.
6230         (input_node): Likewise.
6231         (input_ref): Likewise.
6232         (input_edge): Likewise.
6233         (input_cgraph_1): Likewise.
6234         (input_refs): Likewise.
6235         (output_cgraph_opt_summary): Likewise.
6236         (input_node_opt_summary): Likewise.
6237         (input_cgraph_opt_section): Likewise.
6238         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6239         Likewise.
6240         * lto-streamer-out.c (lto_output): Likewise.
6241         (output_symbol_p): Likewise.
6242         (produce_symtab): Likewise.
6243         * lto-streamer.h (lto_encoder_entry): Likewise.
6244         (lto_free_function_in_decl_state_for_node): Likewise.
6245         (lto_symtab_encoder_encode): Likewise.
6246         (lto_symtab_encoder_delete_node): Likewise.
6247         (lto_symtab_encoder_in_partition_p): Likewise.
6248         (lto_set_symtab_encoder_in_partition): Likewise.
6249         (lto_symtab_encoder_lookup): Likewise.
6250         (lsei_node): Likewise.
6251         (lto_symtab_encoder_deref): Likewise.
6252         * symtab.c (symtab_hash): Likewise.
6253         (assembler_name_hash): Likewise.
6254         (symtab_nodes): Likewise.
6255         (hash_node): Likewise.
6256         (eq_node): Likewise.
6257         (hash_node_by_assembler_name): Likewise.
6258         (eq_assembler_name): Likewise.
6259         (insert_to_assembler_name_hash): Likewise.
6260         (unlink_from_assembler_name_hash): Likewise.
6261         (symtab_prevail_in_asm_name_hash): Likewise.
6262         (symtab_register_node): Likewise.
6263         (symtab_insert_node_to_hashtable): Likewise.
6264         (symtab_unregister_node): Likewise.
6265         (symtab_get_node): Likewise.
6266         (symtab_remove_node): Likewise.
6267         (symtab_initialize_asm_name_hash): Likewise.
6268         (symtab_node_for_asm): Likewise.
6269         (symtab_add_to_same_comdat_group): Likewise.
6270         (symtab_dissolve_same_comdat_group_list): Likewise.
6271         (symtab_node_asm_name): Likewise.
6272         (symtab_node_name): Likewise.
6273         (dump_symtab_base): Likewise.
6274         (dump_symtab_node): Likewise.
6275         (dump_symtab): Likewise.
6276         (debug_symtab_node): Likewise.
6277         (verify_symtab_base): Likewise.
6278         (verify_symtab_node): Likewise.
6279         (verify_symtab): Likewise.
6280         (symtab_used_from_object_file_p): Likewise.
6281         (symtab_node_availability): Likewise.
6282         (symtab_alias_ultimate_target): Likewise.
6283         (fixup_same_cpp_alias_visibility): Likewise.
6284         (symtab_resolve_alias): Likewise.
6285         (symtab_for_node_and_aliases): Likewise.
6286         (symtab_for_node_and_aliases): Likewise.
6287         (symtab_nonoverwritable_alias_1): Likewise.
6288         (symtab_nonoverwritable_alias): Likewise.
6289         (symtab_semantically_equivalent_p): Likewise.
6290         * value-prof.c (init_node_map): Likewise.
6291         * varasm.c (find_decl): Likewise.
6292         * varpool.c (varpool_node_for_asm): Likewise.
6293         (varpool_remove_unreferenced_decls): Likewise.
6295 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
6297         Manual part of renaming of symtab_node_base to symtab_node.
6299         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
6300         clashes with the preferred name for the base class.
6301         (const_symtab_node): Remove redundant typedef.
6303 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
6305         * optabs.c (expand_vec_perm): Avoid vector mode punning
6306         SUBREGs in SET_DEST.
6307         * expmed.c (store_bit_field_1): Likewise.
6308         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
6309         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
6310         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
6311         * config/i386/i386.c (ix86_expand_vector_move_misalign,
6312         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
6313         ix86_expand_sse_unpack, ix86_expand_args_builtin,
6314         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
6315         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
6316         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
6317         expand_vec_perm_vpshufb2_vpermq,
6318         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
6319         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
6320         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
6321         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
6322         than *d itself.
6324 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
6326         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
6327         Use gcc_unreachable for unhandled modes.  Do not check results of
6328         expand_simple_binop.  If not expanded to target, move the result.
6330 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
6331             Shiva Chen  <shiva0217@gmail.com>
6333         * config.gcc (nds32*-*-*): Add nds32 target.
6334         * config/nds32/nds32.c: New file.
6335         * config/nds32/nds32.h: New file.
6336         * config/nds32/nds32.md: New file.
6337         * config/nds32/constants.md: New file.
6338         * config/nds32/constraints.md: New file.
6339         * config/nds32/iterators.md: New file.
6340         * config/nds32/nds32-doubleword.md: New file.
6341         * config/nds32/nds32-intrinsic.md: New file.
6342         * config/nds32/nds32_intrinsic.h: New file.
6343         * config/nds32/nds32-modes.def: New file.
6344         * config/nds32/nds32-multiple.md: New file.
6345         * config/nds32/nds32.opt: New file.
6346         * config/nds32/nds32-opts.h: New file.
6347         * config/nds32/nds32-protos.h: New file.
6348         * config/nds32/nds32-peephole2.md: New file.
6349         * config/nds32/pipelines.md: New file.
6350         * config/nds32/predicates.md: New file.
6351         * config/nds32/t-mlibs: New file.
6352         * common/config/nds32: New directory and files.
6354         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
6355         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
6356         * doc/install.texi (Cross-Compiler-Specific Options): Document
6357         --with-nds32-lib for nds32 target.
6358         * doc/extend.texi (Function Attributes, Target Builtins): Document
6359         nds32 specific attributes.
6361 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
6363         * lra-constraints (process_alt_operands): Use the result
6364         elimination register for operand when matching constraints.
6366 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
6368         * tree-vrp.c (maybe_set_nonzero_bits): New function.
6369         (remove_range_assertions): Call it.
6371         * tree.c (tree_ctz): New function.
6372         * tree.h (tree_ctz): New prototype.
6373         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
6374         first argument from tree to const_tree.
6375         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
6376         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
6377         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
6378         static.
6379         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
6380         * tree-vect-loop.c (vect_analyze_loop_operations,
6381         vect_transform_loop): Don't force scalar loop for bound just because
6382         number of iterations is unknown, only do it if it is not known to be
6383         a multiple of vectorization_factor.
6384         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
6386         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
6387         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
6388         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
6389         (set_nonzero_bits, get_nonzero_bits): New prototypes.
6390         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
6391         a default def isn't partially constant.
6392         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
6393         is known to be partially zero.
6394         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
6395         to see if a default def isn't partially constant.
6396         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
6397         creation of a range, if VR_RANGE, try to improve nonzero_bits from
6398         the range.
6399         (set_nonzero_bits, get_nonzero_bits): New functions.
6401         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
6402         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
6403         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
6404         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
6405         uses but in the condition and ASSERT_EXPR and the other successor of
6406         the predecessor bb is __builtin_unreachable (), set_range_info of the
6407         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
6409 2013-10-31  Martin Jambor  <mjambor@suse.cz>
6411         PR rtl-optimization/58934
6412         Revert:
6413         2013-10-30  Martin Jambor  <mjambor@suse.cz>
6414         PR rtl-optimization/10474
6415         * ira.c (find_moveable_pseudos): Do not calculate dominance info
6416         nor df analysis.
6417         (interesting_dest_for_shprep): New function.
6418         (split_live_ranges_for_shrink_wrap): Likewise.
6419         (ira): Calculate dominance info and df analysis. Call
6420         split_live_ranges_for_shrink_wrap.
6422 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6423             Yury Gribov  <y.gribov@samsung.com>
6425         PR sanitizer/58543
6426         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
6427         shadow pointer to avoid clobbering the main one.
6429 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6431         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
6433 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6435         PR bootstrap/58933
6436         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
6437         it for calling update_costs_from_allocno.
6438         (assign_hard_reg): Call restore_costs_from_copies only for
6439         !retry_p.  Pass new argument to update_costs_from_copies.
6440         (color_pass): Pass new argument to update_costs_from_copies.
6441         (ira_mark_allocation_change): Ditto.
6443 2013-10-30  Sharad Singhai  <singhai@google.com>
6445         PR middle-end/58134
6446         * opts.c (common_handle_option): Remove deprecated option
6447         -ftree-vectorizer-verbose.
6448         * doc/invoke.texi (Debugging Options): Ditto.
6449         * opts-global.c (handle_common_deferred_options): Ditto.
6450         (dump_remap_tree_vectorizer_verbose): Delete.
6451         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
6453 2013-10-30  DJ Delorie  <dj@redhat.com>
6455         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
6456         that take no arguments.
6458 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
6460         PR other/58545
6461         * reload1.c (update_eliminables_and_spill): New function, broken
6462         out of reload.
6463         (reload): Use it.  Check for frame size change after frame size
6464         alignment, and call update_eliminables_and_spill first if continue-ing.
6466 2013-10-30  Cong Hou  <congh@google.com>
6468         PR target/58762
6469         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
6470         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
6471         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
6473 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
6475         PR rtl-optimization/58369
6476         * reload1.c (compute_reload_subreg_offset): New function.
6477         (choose_reload_regs): Use it to pass endian-correct
6478         offset to subreg_regno_offset.
6480 2013-10-30  Tobias Burnus  <burnus@net-b.de>
6482         PR other/33426
6483         * tree-cfg.c (replace_loop_annotate): Replace warning by
6484         warning_at.
6486 2013-10-30  Jason Merrill  <jason@redhat.com>
6488         * configure.ac (loose_warn): Add -Wno-format if
6489         --disable-build-format-warnings.
6491 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
6493         * cgraphunit.c (analyze_functions): Split symtab_node declarations
6494         onto multiple lines to make things easier for rename_symtab.py.
6496         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
6497         (symtab_semantically_equivalent_p): Likewise.
6499 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6501         PR target/58784
6502         * lra.c (check_rtl): Remove address check before LRA work.
6504 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
6506         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
6507         POINTER_PLUS_EXPR in the defining statement.
6509 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6511         * regmove.c: Remove.
6512         * tree-pass.h (make_pass_regmove): Remove.
6513         * timevar.def (TV_REGMOVE): Remove.
6514         * passes.def (pass_regmove): Remove.
6515         * opts.c (default_options_table): Remove entry for regmove.
6516         * doc/passes.texi: Remove regmove pass description.
6517         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
6518         options.
6519         (-fdump-rtl-regmove): Ditto.
6520         * common.opt (foptimize-register-move, fregmove): Ignore.
6521         * Makefile.in (OBJS): Remove regmove.o.
6522         * regmove.c: Remove.
6523         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
6524         and type.
6525         (struct ira_allocno) New member allocno_prefs.
6526         (ALLOCNO_PREFS): New macro.
6527         (ira_prefs, ira_prefs_num): New external vars.
6528         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
6529         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
6530         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
6531         Ditto.
6532         (ira_add_allocno_copy_to_list): Remove prototype.
6533         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
6534         (ira_pref_iterator): New type.
6535         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
6536         (FOR_EACH_PREF): New macro.
6537         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
6538         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
6539         code.
6540         (ira_setup_alts): New function.
6541         (decrease_live_ranges_number): New function.
6542         (ira): Call the above function.
6543         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
6544         (ira_create_allocno): Initialize allocno prefs.
6545         (pref_pool, pref_vec): New static vars.
6546         (initiate_prefs, find_allocno_pref, ira_create_pref): New
6547         functions.
6548         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
6549         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
6550         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
6551         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
6552         (ira_add_allocno_copy_to_list): Make static.  Rename to
6553         add_allocno_copy_to_list.
6554         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
6555         swap_allocno_copy_ends_if_necessary.
6556         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
6557         ira_remove_allocno_prefs.
6558         (ira_flattening): Ditto.
6559         (ira_build): Call initiate_prefs, print_prefs.
6560         (ira_destroy): Call finish_prefs.
6561         * ira-color.c (struct update_cost_record): New.
6562         (struct allocno_color_data): Add new member update_cost_records.
6563         (update_cost_record_pool): New static var.
6564         (init_update_cost_records, get_update_cost_record): New functions.
6565         (free_update_cost_record_list, finish_update_cost_records): Ditto.
6566         (struct update_cost_queue_elem): Add member from.
6567         (initiate_cost_update): Call init_update_cost_records.
6568         (finish_cost_update): Call finish_update_cost_records.
6569         (queue_update_cost, get_next_update_cost): Add new param from.
6570         (Update_allocno_cost, update_costs_from_allocno): New functions.
6571         (update_costs_from_prefs): Ditto.
6572         (update_copy_costs): Rename to update_costs_from_copies.
6573         (restore_costs_from_copies): New function.
6574         (update_conflict_hard_regno_costs): Don't go back.
6575         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
6576         more debug info.
6577         (pop_allocnos): Add priniting more debug info.
6578         (color_allocnos): Remove prefs for conflicting hard regs.
6579         Call update_costs_from_prefs.
6580         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
6581         (get_dup_num): Rename, modify, and move to ira.c
6582         (process_regs_for_copy): Add prefs.
6583         (add_insn_allocno_copies): Put src as first arg of
6584         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
6585         * ira-costs.c (record_reg_classes): Modify and move code into
6586         record_operands_costs.
6587         (find_costs_and_classes): Create prefs for the hard reg of small
6588         reg class.
6589         (process_bb_node_for_hard_reg_moves): Add prefs.
6591 2013-10-30  Richard Biener  <rguenther@suse.de>
6593         PR middle-end/57100
6594         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
6595         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
6596         as worker for ...
6597         (pre_and_rev_post_order_compute): ... which now wraps it.
6598         * graph.c (draw_cfg_nodes_no_loops): Use
6599         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
6600         on cfun.
6602 2013-10-30  Christian Bruel  <christian.bruel@st.com>
6604         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
6605         (sh_expand_cmpstr): Handle known align and schedule improvements.
6606         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
6607         * config/sh/sh.md (cmpstrnsi): New pattern.
6609 2013-10-30  Martin Jambor  <mjambor@suse.cz>
6611         PR rtl-optimization/10474
6612         * ira.c (find_moveable_pseudos): Do not calculate dominance info
6613         nor df analysis.
6614         (interesting_dest_for_shprep): New function.
6615         (split_live_ranges_for_shrink_wrap): Likewise.
6616         (ira): Calculate dominance info and df analysis. Call
6617         split_live_ranges_for_shrink_wrap.
6619 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6621         PR target/58854
6622         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
6624 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
6626         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
6627         * tree.h (POINTER_BOUNDS_P): New.
6628         (BOUNDED_TYPE_P): New.
6629         (BOUNDED_P): New.
6630         (pointer_bounds_type_node): New.
6631         * tree.c (build_common_tree_nodes): Initialize
6632         pointer_bounds_type_node.
6633         * gimple.h (gimple_call_get_nobnd_arg_index): New.
6634         (gimple_call_num_nobnd_args): New.
6635         (gimple_call_nobnd_arg): New.
6636         (gimple_return_retbnd): New.
6637         (gimple_return_set_retbnd): New
6638         * gimple.c (gimple_build_return): Increase number of ops
6639         for return statement.
6640         (gimple_call_get_nobnd_arg_index): New.
6641         * gimple-pretty-print.c (dump_gimple_return): Print second op.
6643 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
6645         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
6646         with "chkp ctor" and "bnd_legacy" attributes.
6647         * gimplify.c (gimplify_init_constructor): Avoid infinite
6648         loop during gimplification of bounds initializer.
6650 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
6652         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
6653         (handle_bnd_legacy): New.
6654         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
6655         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
6656         attributes.
6658 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
6660         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
6661         (BT_FN_PTR_CONST_PTR): New.
6662         (BT_FN_CONST_PTR_CONST_PTR): New.
6663         (BT_FN_PTR_CONST_PTR_SIZE): New.
6664         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
6665         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
6666         (BT_FN_VOID_CONST_PTR_SIZE): New.
6667         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
6668         * chkp-builtins.def: New.
6669         * builtins.def: include chkp-builtins.def.
6670         (DEF_CHKP_BUILTIN): New.
6671         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
6672         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
6673         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
6674         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
6675         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
6676         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
6677         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
6678         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
6679         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
6680         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
6681         * common.opt (fcheck-pointer-bounds): New.
6682         * toplev.c (process_options): Check Pointer Bounds Checker is
6683         supported.
6684         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
6686 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
6688         * target.def (builtin_chkp_function): New.
6689         (chkp_bound_type): New.
6690         (chkp_bound_mode): New.
6691         (fn_abi_va_list_bounds_size): New.
6692         (load_bounds_for_arg): New.
6693         (store_bounds_for_arg): New.
6694         * targhooks.h (default_load_bounds_for_arg): New.
6695         (default_store_bounds_for_arg): New.
6696         (default_fn_abi_va_list_bounds_size): New.
6697         (default_chkp_bound_type): New.
6698         (default_chkp_bound_mode): New.
6699         (default_builtin_chkp_function): New.
6700         * targhooks.c (default_load_bounds_for_arg): New.
6701         (default_store_bounds_for_arg): New.
6702         (default_fn_abi_va_list_bounds_size): New.
6703         (default_chkp_bound_type): New.
6704         (default_chkp_bound_mode); New.
6705         (default_builtin_chkp_function): New.
6706         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
6707         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6708         (TARGET_STORE_BOUNDS_FOR_ARG): New.
6709         (TARGET_BUILTIN_CHKP_FUNCTION): New.
6710         (TARGET_CHKP_BOUND_TYPE): New.
6711         (TARGET_CHKP_BOUND_MODE): New.
6712         * doc/tm.texi: Regenerated.
6713         * langhooks.h (lang_hooks): Add chkp_supported field.
6714         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
6715         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
6717 2013-10-29  Andrew Pinski <apinski@cavium.com>
6719         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
6720         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
6721         fails, combining the branches anyways.
6722         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
6723         increases the number of combinings.
6724         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
6726 2013-10-29  Mike Stump  <mikestump@comcast.net>
6728         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
6729         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
6730         (make_vector_mode): Increase namebuf to 16.
6731         (emit_insn_modes_h): When processing BImode, don't
6732         also match partial int modes.
6733         (emit_class_narrowest_mode): Likewise.
6735         * config/bfin/bfin-modes.def: Add precision to PDI.
6736         * config/m32c/m32c-modes.def: Add precision to PSI.
6737         * config/msp430/msp430-modes.def: Add precision to PSI.
6738         * config/rs6000/rs6000-modes.def: Add precision to PTI.
6739         * config/sh/sh-modes.def: Add precision to PSI and PDI.
6741 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
6743         PR target/54236
6744         * config/sh/sh.md (*addc): Rename existing variations to ...
6745         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
6746         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
6747         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
6748         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
6750 2013-10-29  Teresa Johnson  <tejohnson@google.com>
6752         PR ipa/58862
6753         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
6754         insanities when updating probabilities.
6756 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6758         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
6759         prettyprinter for cgraph_node to reflect the conversion of the
6760         symtable types to a C++ class hierarchy: it now *is* a
6761         symtab_node_base, rather than having one (named "symbol").
6763 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6765         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
6766         __cilkrts_pop_frame.  If matched, then return true for built-in
6767         function name.
6768         (expand_builtin): Added BUILT_IN_CILK_DETACH and
6769         BUILT_IN_CILK_POP_FRAME case.
6770         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
6771         (lhs_cilk_detect_spawn): Likewise.
6772         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
6773         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
6774         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
6775         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
6776         (LANG_HOOKS_CILKPLUS): Likewise.
6777         * tree.h (CILK_SPAWN_FN): Likewise.
6778         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
6779         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
6780         (OBJS): Added cilk-common.o.
6781         (BUILTINS_DEF): Added cilk-builtins.def.
6782         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
6783         (lhd_cilk_detect_spawn): Likewise.
6784         * langhooks.h (lang_hooks_for_cilkplus): New struct.
6785         (struct lang_hooks): Added new field called "cilkplus."
6786         * cilk-common.c: New file.
6787         * cilk.h: Likewise.
6788         * cilk-builtins.def: Likewise.
6789         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
6790         "__cilk" macro and set it to 200.
6791         * function.h (struct function::cilk_frame_decl): New field.
6792         (struct function::is_cilk_function): Likewise.
6793         (struct function::calls_cilk_spawn): Likewise.
6794         * gimplify.c (gimplify_call_expr): Added a check if the function call
6795         being gimplified is a spawn detach point.  If so, then add pop_frame
6796         and detach function calls.
6797         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
6798         for gimplifying _Cilk_spawn and _Cilk_sync statements.
6799         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
6800         function.  If so, added a _Cilk_sync and gimplified it.
6801         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
6802         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
6803         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
6804         spawner function.
6805         (can_inline_edge_p): Prevent inling of spawnee function.
6806         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
6807         for functions that use Cilk keywords.
6808         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
6809         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
6810         CILK_SYNC_STMT cases.
6811         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
6812         trees.
6813         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
6814         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
6815         * passes.texi (Cilk Keywords): New section that describes the compiler
6816         code changes for handling Cilk Keywords.
6818 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6820         Patch autogenerated by refactor_symtab.py from
6821         https://github.com/davidmalcolm/gcc-refactoring-scripts
6822         revision 58bb219cc090b2f4516a9297d868c245495ee622
6824         * asan.c (asan_finish_file): Update for conversion of symtab types to
6825         a true class hierarchy.
6826         * cfgexpand.c (estimated_stack_frame_size): Likewise.
6827         * cgraph.c (cgraph_get_body): Likewise.
6828         (cgraph_get_create_real_symbol_node): Likewise.
6829         (verify_cgraph_node): Likewise.
6830         (verify_edge_corresponds_to_fndecl): Likewise.
6831         (verify_edge_count_and_frequency): Likewise.
6832         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
6833         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
6834         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
6835         (cgraph_node_cannot_return): Likewise.
6836         (cgraph_set_pure_flag_1): Likewise.
6837         (cgraph_set_const_flag_1): Likewise.
6838         (cgraph_set_nothrow_flag_1): Likewise.
6839         (cgraph_make_node_local_1): Likewise.
6840         (cgraph_for_node_and_aliases): Likewise.
6841         (cgraph_for_node_thunks_and_aliases): Likewise.
6842         (cgraph_node_can_be_local_p): Likewise.
6843         (cgraph_node_cannot_be_local_p_1): Likewise.
6844         (cgraph_function_body_availability): Likewise.
6845         (dump_cgraph_node): Likewise.
6846         (cgraph_rtl_info): Likewise.
6847         (cgraph_mark_address_taken_node): Likewise.
6848         (cgraph_remove_node): Likewise.
6849         (cgraph_release_function_body): Likewise.
6850         (cgraph_update_edges_for_call_stmt_node): Likewise.
6851         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
6852         (cgraph_make_edge_direct): Likewise.
6853         (cgraph_resolve_speculation): Likewise.
6854         (cgraph_speculative_call_info): Likewise.
6855         (cgraph_turn_edge_to_speculative): Likewise.
6856         (cgraph_create_edge_1): Likewise.
6857         (cgraph_set_call_stmt): Likewise.
6858         (cgraph_node_for_asm): Likewise.
6859         (cgraph_add_thunk): Likewise.
6860         (cgraph_same_body_alias): Likewise.
6861         (cgraph_create_function_alias): Likewise.
6862         (cgraph_create_node): Likewise.
6863         (cgraph_create_empty_node): Likewise.
6864         (record_function_versions): Likewise.
6865         (used_from_object_file_p): Likewise.
6866         * cgraph.h (symtab_can_be_discarded): Likewise.
6867         (symtab_real_symbol_p): Likewise.
6868         (cgraph_mark_force_output_node): Likewise.
6869         (cgraph_edge_recursive_p): Likewise.
6870         (symtab_alias_target): Likewise.
6871         (varpool_all_refs_explicit_p): Likewise.
6872         (varpool_can_remove_if_no_refs): Likewise.
6873         (cgraph_only_called_directly_or_aliased_p): Likewise.
6874         (cgraph_next_function_with_gimple_body): Likewise.
6875         (cgraph_first_function_with_gimple_body): Likewise.
6876         (cgraph_function_with_gimple_body_p): Likewise.
6877         (cgraph_next_function): Likewise.
6878         (cgraph_first_function): Likewise.
6879         (cgraph_next_defined_function): Likewise.
6880         (cgraph_first_defined_function): Likewise.
6881         (varpool_next_defined_variable): Likewise.
6882         (varpool_first_defined_variable): Likewise.
6883         (varpool_next_static_initializer): Likewise.
6884         (varpool_first_static_initializer): Likewise.
6885         (varpool_next_variable): Likewise.
6886         (varpool_first_variable): Likewise.
6887         (varpool_node_name): Likewise.
6888         (varpool): Likewise.
6889         (cgraph): Likewise.
6890         (is_a_helper <varpool_node>::test): Likewise.
6891         (is_a_helper <cgraph_node>::test): Likewise.
6892         (varpool_variable_node): Likewise.
6893         (cgraph_function_or_thunk_node): Likewise.
6894         (varpool_alias_target): Likewise.
6895         (cgraph_alias_target): Likewise.
6896         (cgraph_node_name): Likewise.
6897         (varpool_node_asm_name): Likewise.
6898         (cgraph_node_asm_name): Likewise.
6899         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
6900         (cgraph_rebuild_references): Likewise.
6901         (rebuild_cgraph_edges): Likewise.
6902         (record_eh_tables): Likewise.
6903         (build_cgraph_edges): Likewise.
6904         (mark_store): Likewise.
6905         (mark_load): Likewise.
6906         (mark_address): Likewise.
6907         (record_type_list): Likewise.
6908         (record_reference): Likewise.
6909         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
6910         (cgraph_materialize_clone): Likewise.
6911         (cgraph_function_versioning): Likewise.
6912         (cgraph_copy_node_for_versioning): Likewise.
6913         (update_call_expr): Likewise.
6914         (cgraph_find_replacement_node): Likewise.
6915         (cgraph_create_virtual_clone): Likewise.
6916         (cgraph_clone_node): Likewise.
6917         * cgraphunit.c (compile): Likewise.
6918         (output_weakrefs): Likewise.
6919         (output_in_order): Likewise.
6920         (expand_function): Likewise.
6921         (assemble_thunks_and_aliases): Likewise.
6922         (expand_thunk): Likewise.
6923         (mark_functions_to_output): Likewise.
6924         (handle_alias_pairs): Likewise.
6925         (analyze_functions): Likewise.
6926         (walk_polymorphic_call_targets): Likewise.
6927         (varpool_finalize_decl): Likewise.
6928         (process_function_and_variable_attributes): Likewise.
6929         (cgraph_process_same_body_aliases): Likewise.
6930         (analyze_function): Likewise.
6931         (cgraph_add_new_function): Likewise.
6932         (cgraph_finalize_function): Likewise.
6933         (referred_to_p): Likewise.
6934         (cgraph_reset_node): Likewise.
6935         (cgraph_process_new_functions): Likewise.
6936         (enqueue_node): Likewise.
6937         (decide_is_symbol_needed): Likewise.
6938         * coverage.c (coverage_compute_profile_id): Likewise.
6939         * dbxout.c (dbxout_expand_expr): Likewise.
6940         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
6941         (reference_to_unused): Likewise.
6942         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6943         * gimplify.c (unvisit_body): Likewise.
6944         (unshare_body): Likewise.
6945         * ipa-cp.c (ipcp_generate_summary): Likewise.
6946         (ipcp_decision_stage): Likewise.
6947         (identify_dead_nodes): Likewise.
6948         (decide_whether_version_node): Likewise.
6949         (decide_about_value): Likewise.
6950         (perhaps_add_new_callers): Likewise.
6951         (create_specialized_node): Likewise.
6952         (update_profiling_info): Likewise.
6953         (ipcp_propagate_stage): Likewise.
6954         (estimate_local_effects): Likewise.
6955         (good_cloning_opportunity_p): Likewise.
6956         (devirtualization_time_bonus): Likewise.
6957         (propagate_constants_accross_call): Likewise.
6958         (initialize_node_lattices): Likewise.
6959         (ipcp_cloning_candidate_p): Likewise.
6960         (determine_versionability): Likewise.
6961         (print_all_lattices): Likewise.
6962         (print_lattice): Likewise.
6963         (ipcp_discover_new_direct_edges): Likewise.
6964         * ipa-devirt.c (ipa_devirt): Likewise.
6965         (likely_target_p): Likewise.
6966         (update_type_inheritance_graph): Likewise.
6967         (possible_polymorphic_call_target_p): Likewise.
6968         (dump_possible_polymorphic_call_targets): Likewise.
6969         (devirt_variable_node_removal_hook): Likewise.
6970         (record_binfo): Likewise.
6971         (maybe_record_node): Likewise.
6972         (build_type_inheritance_graph): Likewise.
6973         * ipa-inline-analysis.c (inline_write_summary): Likewise.
6974         (inline_generate_summary): Likewise.
6975         (inline_analyze_function): Likewise.
6976         (do_estimate_growth): Likewise.
6977         (simple_edge_hints): Likewise.
6978         (estimate_node_size_and_time): Likewise.
6979         (estimate_edge_devirt_benefit): Likewise.
6980         (compute_inline_parameters): Likewise.
6981         (estimate_function_body_sizes): Likewise.
6982         (compute_bb_predicates): Likewise.
6983         (initialize_inline_failed): Likewise.
6984         (dump_inline_summary): Likewise.
6985         (dump_inline_edge_summary): Likewise.
6986         * ipa-inline-transform.c (inline_transform): Likewise.
6987         (preserve_function_body_p): Likewise.
6988         (save_inline_function_body): Likewise.
6989         (inline_call): Likewise.
6990         (clone_inlined_nodes): Likewise.
6991         (can_remove_node_now_p): Likewise.
6992         (can_remove_node_now_p_1): Likewise.
6993         * ipa-inline.c (early_inliner): Likewise.
6994         (early_inline_small_functions): Likewise.
6995         (inline_always_inline_functions): Likewise.
6996         (ipa_inline): Likewise.
6997         (flatten_function): Likewise.
6998         (inline_small_functions): Likewise.
6999         (speculation_useful_p): Likewise.
7000         (recursive_inlining): Likewise.
7001         (update_caller_keys): Likewise.
7002         (reset_edge_caches): Likewise.
7003         (update_edge_key): Likewise.
7004         (edge_badness): Likewise.
7005         (relative_time_benefit): Likewise.
7006         (want_inline_self_recursive_call_p): Likewise.
7007         (want_inline_small_function_p): Likewise.
7008         (want_early_inline_function_p): Likewise.
7009         (num_calls): Likewise.
7010         (can_early_inline_edge_p): Likewise.
7011         (can_inline_edge_p): Likewise.
7012         (report_inline_failed_reason): Likewise.
7013         * ipa-profile.c (ipa_profile): Likewise.
7014         (ipa_propagate_frequency): Likewise.
7015         (ipa_propagate_frequency_1): Likewise.
7016         (ipa_profile_generate_summary): Likewise.
7017         * ipa-prop.c (ipcp_transform_function): Likewise.
7018         (read_replacements_section): Likewise.
7019         (ipa_prop_read_section): Likewise.
7020         (ipa_modify_call_arguments): Likewise.
7021         (ipa_print_node_params): Likewise.
7022         (propagate_controlled_uses): Likewise.
7023         (update_indirect_edges_after_inlining): Likewise.
7024         (remove_described_reference): Likewise.
7025         (ipa_make_edge_direct_to_target): Likewise.
7026         (ipa_analyze_node): Likewise.
7027         (ipa_analyze_params_uses): Likewise.
7028         (ipa_compute_jump_functions): Likewise.
7029         (ipa_get_callee_param_type): Likewise.
7030         (ipa_print_node_jump_functions): Likewise.
7031         (ipa_initialize_node_params): Likewise.
7032         (ipa_populate_param_decls): Likewise.
7033         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
7034         (write_agg_replacement_chain): Likewise.
7035         (ipa_write_node_info): Likewise.
7036         (ipa_edge_duplication_hook): Likewise.
7037         (try_decrement_rdesc_refcount): Likewise.
7038         * ipa-pure-const.c (propagate_nothrow): Likewise.
7039         (propagate_pure_const): Likewise.
7040         (pure_const_read_summary): Likewise.
7041         (pure_const_write_summary): Likewise.
7042         (analyze_function): Likewise.
7043         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
7044         (ipa_ref_referring_ref_list): Likewise.
7045         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
7046         (ipa_remove_stmt_references): Likewise.
7047         (ipa_find_reference): Likewise.
7048         (ipa_dump_referring): Likewise.
7049         (ipa_dump_references): Likewise.
7050         (ipa_record_reference): Likewise.
7051         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
7052         (ipa_reference_write_optimization_summary): Likewise.
7053         (write_node_summary_p): Likewise.
7054         (propagate): Likewise.
7055         (read_write_all_from_decl): Likewise.
7056         (generate_summary): Likewise.
7057         (analyze_function): Likewise.
7058         (propagate_bits): Likewise.
7059         (ipa_reference_get_not_written_global): Likewise.
7060         (ipa_reference_get_not_read_global): Likewise.
7061         * ipa-split.c (execute_split_functions): Likewise.
7062         (split_function): Likewise.
7063         * ipa-utils.c (ipa_merge_profiles): Likewise.
7064         (dump_cgraph_node_set): Likewise.
7065         (ipa_reverse_postorder): Likewise.
7066         (ipa_edge_within_scc): Likewise.
7067         (ipa_get_nodes_in_cycle): Likewise.
7068         (ipa_free_postorder_info): Likewise.
7069         (ipa_reduced_postorder): Likewise.
7070         (searchc): Likewise.
7071         (recursive_call_p): Likewise.
7072         * ipa.c (ipa_cdtor_merge): Likewise.
7073         (record_cdtor_fn): Likewise.
7074         (function_and_variable_visibility): Likewise.
7075         (varpool_externally_visible_p): Likewise.
7076         (cgraph_externally_visible_p): Likewise.
7077         (comdat_can_be_unshared_p): Likewise.
7078         (comdat_can_be_unshared_p_1): Likewise.
7079         (address_taken_from_non_vtable_p): Likewise.
7080         (ipa_discover_readonly_nonaddressable_vars): Likewise.
7081         (symtab_remove_unreachable_nodes): Likewise.
7082         (walk_polymorphic_call_targets): Likewise.
7083         (process_references): Likewise.
7084         (enqueue_node): Likewise.
7085         (has_addr_references_p): Likewise.
7086         (cgraph_non_local_node_p_1): Likewise.
7087         * is-a.h (varpool_analyze_node): Likewise.
7088         * lto-cgraph.c (input_symtab): Likewise.
7089         (merge_profile_summaries): Likewise.
7090         (input_cgraph_1): Likewise.
7091         (input_edge): Likewise.
7092         (input_varpool_node): Likewise.
7093         (input_node): Likewise.
7094         (input_overwrite_node): Likewise.
7095         (compute_ltrans_boundary): Likewise.
7096         (output_refs): Likewise.
7097         (lto_output_varpool_node): Likewise.
7098         (lto_output_node): Likewise.
7099         (reachable_from_other_partition_p): Likewise.
7100         (referenced_from_other_partition_p): Likewise.
7101         (lto_output_edge): Likewise.
7102         (output_node_opt_summary): Likewise.
7103         (add_node_to): Likewise.
7104         (reachable_from_this_partition_p): Likewise.
7105         (lto_set_symtab_encoder_in_partition): Likewise.
7106         (lto_symtab_encoder_in_partition_p): Likewise.
7107         (lto_set_symtab_encoder_encode_initializer): Likewise.
7108         (lto_symtab_encoder_encode_initializer_p): Likewise.
7109         (lto_set_symtab_encoder_encode_body): Likewise.
7110         (lto_symtab_encoder_encode_body_p): Likewise.
7111         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7112         Likewise.
7113         * lto-streamer-in.c (lto_read_body): Likewise.
7114         (fixup_call_stmt_edges): Likewise.
7115         (fixup_call_stmt_edges_1): Likewise.
7116         * lto-streamer-out.c (produce_symtab): Likewise.
7117         (output_symbol_p): Likewise.
7118         (write_symbol): Likewise.
7119         (lto_output): Likewise.
7120         (copy_function): Likewise.
7121         (output_function): Likewise.
7122         * passes.c (function_called_by_processed_nodes_p): Likewise.
7123         (ipa_write_optimization_summaries): Likewise.
7124         (ipa_write_summaries): Likewise.
7125         (do_per_function_toporder): Likewise.
7126         (do_per_function): Likewise.
7127         (dump_passes): Likewise.
7128         * symtab.c (symtab_semantically_equivalent_p): Likewise.
7129         (symtab_nonoverwritable_alias): Likewise.
7130         (symtab_nonoverwritable_alias_1): Likewise.
7131         (symtab_for_node_and_aliases): Likewise.
7132         (symtab_resolve_alias): Likewise.
7133         (fixup_same_cpp_alias_visibility): Likewise.
7134         (symtab_alias_ultimate_target): Likewise.
7135         (symtab_used_from_object_file_p): Likewise.
7136         (verify_symtab_base): Likewise.
7137         (dump_symtab_base): Likewise.
7138         (symtab_node_name): Likewise.
7139         (symtab_node_asm_name): Likewise.
7140         (symtab_dissolve_same_comdat_group_list): Likewise.
7141         (symtab_add_to_same_comdat_group): Likewise.
7142         (symtab_unregister_node): Likewise.
7143         (symtab_insert_node_to_hashtable): Likewise.
7144         (symtab_register_node): Likewise.
7145         (unlink_from_assembler_name_hash): Likewise.
7146         (insert_to_assembler_name_hash): Likewise.
7147         (eq_assembler_name): Likewise.
7148         (hash_node_by_assembler_name): Likewise.
7149         (eq_node): Likewise.
7150         (hash_node): Likewise.
7151         * toplev.c (wrapup_global_declaration_2): Likewise.
7152         * trans-mem.c (ipa_tm_execute): Likewise.
7153         (ipa_tm_transform_clone): Likewise.
7154         (ipa_tm_transform_transaction): Likewise.
7155         (ipa_tm_transform_calls_redirect): Likewise.
7156         (ipa_tm_insert_gettmclone_call): Likewise.
7157         (ipa_tm_insert_irr_call): Likewise.
7158         (ipa_tm_create_version): Likewise.
7159         (ipa_tm_create_version_alias): Likewise.
7160         (ipa_tm_mark_forced_by_abi_node): Likewise.
7161         (ipa_tm_mark_force_output_node): Likewise.
7162         (ipa_tm_diagnose_tm_safe): Likewise.
7163         (ipa_tm_mayenterirr_function): Likewise.
7164         (ipa_tm_scan_irr_function): Likewise.
7165         (ipa_tm_note_irrevocable): Likewise.
7166         (ipa_tm_scan_calls_clone): Likewise.
7167         (get_cg_data): Likewise.
7168         * tree-eh.c (tree_could_trap_p): Likewise.
7169         * tree-emutls.c (ipa_lower_emutls): Likewise.
7170         (create_emultls_var): Likewise.
7171         (lower_emutls_function_body): Likewise.
7172         (gen_emutls_addr): Likewise.
7173         (emutls_decl): Likewise.
7174         (new_emutls_decl): Likewise.
7175         * tree-inline.c (tree_function_versioning): Likewise.
7176         (optimize_inline_calls): Likewise.
7177         (expand_call_inline): Likewise.
7178         (estimate_num_insns): Likewise.
7179         (copy_bb): Likewise.
7180         (delete_unreachable_blocks_update_callgraph): Likewise.
7181         * tree-nested.c (gimplify_all_functions): Likewise.
7182         (create_nesting_tree): Likewise.
7183         (check_for_nested_with_variably_modified): Likewise.
7184         * tree-pretty-print.c (dump_function_header): Likewise.
7185         * tree-profile.c (tree_profiling): Likewise.
7186         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7187         (modify_function): Likewise.
7188         (convert_callers): Likewise.
7189         (convert_callers_for_node): Likewise.
7190         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7191         (associate_varinfo_to_alias): Likewise.
7192         (create_variable_info_for): Likewise.
7193         (get_constraint_for_ssa_var): Likewise.
7194         * tree-vectorizer.c (increase_alignment): Likewise.
7195         * tree.c (find_decls_types_in_var): Likewise.
7196         (find_decls_types_in_node): Likewise.
7197         (free_lang_data_in_decl): Likewise.
7198         * value-prof.c (gimple_ic_transform): Likewise.
7199         (gimple_ic): Likewise.
7200         (check_ic_target): Likewise.
7201         (init_node_map): Likewise.
7202         * varasm.c (decl_binds_to_current_def_p): Likewise.
7203         (default_binds_local_p_1): Likewise.
7204         (dump_tm_clone_pairs): Likewise.
7205         (assemble_alias): Likewise.
7206         (find_decl): Likewise.
7207         (mark_decl_referenced): Likewise.
7208         * varpool.c (varpool_for_node_and_aliases): Likewise.
7209         (varpool_extra_name_alias): Likewise.
7210         (varpool_create_variable_alias): Likewise.
7211         (add_new_static_var): Likewise.
7212         (varpool_finalize_named_section_flags): Likewise.
7213         (varpool_remove_unreferenced_decls): Likewise.
7214         (enqueue_node): Likewise.
7215         (varpool_assemble_decl): Likewise.
7216         (assemble_aliases): Likewise.
7217         (varpool_analyze_node): Likewise.
7218         (cgraph_variable_initializer_availability): Likewise.
7219         (varpool_add_new_variable): Likewise.
7220         (ctor_for_folding): Likewise.
7221         (dump_varpool_node): Likewise.
7222         (varpool_remove_initializer): Likewise.
7223         (varpool_remove_node): Likewise.
7224         (varpool_node_for_decl): Likewise.
7225         (varpool_create_empty_node): Likewise.
7226         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
7227         (ix86_get_function_versions_dispatcher): Likewise.
7229 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7231         * cgraph.h (symtab_node_base): Convert to a class;
7232         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
7233         chain_next/prev from symtab_node_def.
7234         (cgraph_node): Inherit from symtab_node; add GTY option
7235         tag ("SYMTAB_FUNCTION").
7236         (varpool_node): Inherit from symtab_node; add GTY option
7237         tag ("SYMTAB_VARIABLE").
7238         (symtab_node_def): Remove.
7239         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
7240         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
7241         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
7242         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
7244         * ipa-ref.h (symtab_node_def): Drop.
7245         (symtab_node): Change underlying type from symtab_node_def to
7246         symtab_node_base.
7247         (const_symtab_node): Likwise.
7249         * is-a.h: Update examples in comment.
7251         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
7252         (assembler_name_hash): Likewise.
7254 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
7256         * doc/tree-ssa.texi (gimple_phi_result): Document.
7257         (gimple_phi_num_args, gimple_phi_arg): Likewise.
7258         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
7259         (PHI_RESULT, PHI_NUM_ARGS): Remove.
7260         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
7262 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7264         * expr.h: Revert change and include tree-core.h.
7265         * rtl.h: Revert change and don't include tree-core.h.
7267 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7269         * config/darwin.c: Include gimple.h.
7270         * config/i386/winnt.c: Likewise.
7272 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
7274         PR tree-optimization/19831
7275         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
7277 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7279         * tree-outof-ssa.h: Remove include files.
7280         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
7281         * expr.c: Likewise.
7282         * tree-ssa-coalesce.c: Likewise.
7283         * cfgexpand.c: Likewise.
7284         * tree-ssa-ter.c: Likewise.
7285         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
7286         * lto-streamer.h: Likewise.
7287         * cgraphbuild.c: Add gimple.h to include list.
7288         * data-streamer-in.c: Likewise.
7289         * ipa-cp.c: Likewise.
7290         * tree-streamer.c: Likewise.
7291         * lto-compress.c: Likewise.
7292         * ipa-reference.c: Likewise.
7293         * data-streamer-out.c: Likewise.
7294         * lto-cgraph.c: Likewise.
7295         * cgraphclones.c: Likewise.
7296         * ipa-utils.c: Likewise.
7297         * data-streamer.c: Likewise.
7298         * ipa-split.c: Likewise.
7299         * lto-section-in.c: Likewise.
7300         * tree-streamer-out.c: Likewise.
7301         * ipa-prop.c: Likewise.
7302         * tree-streamer-in.c: Likewise.
7303         * symtab.c: Likewise.
7304         * opts-global.c: Likewise.
7305         * lto-opts.c: Likewise.
7306         * lto-section-out.c: Likewise.
7307         * lto-streamer.c: Likewise.
7308         * rtl.h: Add tree-core.h to include list.
7309         * expr.h: Remove tree-core.h from include list.
7310         * gimple.h: Likewise.
7311         * ipa-utils.h: Likewise.
7312         * streamer-hooks.h: Likewise.
7313         * streamer-hooks.c: Include input.h.
7315 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7317         * config/arm/arm.c (cortexa7_extra_costs): New table.
7318         (arm_cortex_a7_tune): New.
7319         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
7321 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
7323         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
7325 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7327         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
7328         to use autogenerated markers for a class-hierarchy, every class
7329         must have a GTY marker.
7330         * gengtype.h (struct type): Add linked list of subclasses to
7331         the "s" member of the union.
7332         (add_subclass): New decl.
7333         * gengtype-state.c (read_state_struct_type): Set up subclass
7334         linked list.
7335         * gengtype.c (get_ultimate_base_class): New.
7336         (add_subclass): New.
7337         (new_structure): Set up subclass linked list.
7338         (set_gc_used_type): Propagate usage information to subclasses.
7339         (output_mangled_typename): Use get_ultimate_base_class.
7340         (walk_subclasses): Use the subclass linked list, avoiding an
7341         O(N^2) when writing out all types.
7342         (walk_type): Issue an error if the base class is missing a tag,
7343         rather than generating bogus C code.  Add a gcc_unreachable
7344         default case, in case people omit tags from concrete subclasses,
7345         or get the values wrong.
7346         (write_func_for_structure): Issue an error for subclasses for
7347         which the base doesn't have a "desc", since otherwise the
7348         autogenerated routines for the base would silently fail to visit
7349         any subclass fields.
7350         (write_root): Use get_ultimate_base_class, tweaking constness of
7351         tp to match that function's signature.
7353 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7355         * doc/gty.texi (GTY Options): Add note about inheritance to
7356         description of desc and tag.
7357         (Inheritance and GTY): New.
7359 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7361         * gengtype-parse.c (opts_have): Drop "static" so that
7362         we can use this from gengtype.c.
7363         * gengtype.c (set_gc_used_type): Mark any base class as used;
7364         update field traversal to visit inherited fields.
7365         (output_mangled_typename):  Convert references to classes within
7366         an inheritance hierarchy to reference the ultimate base class,
7367         since only it will have gt_ functions.
7368         (get_string_option): New.
7369         (walk_subclasses): New.
7370         (walk_type): Treat GTY structs that have a "desc" as being the
7371         root of an inheritance hierarchy.  Generate a switch on it
7372         within the marking function which walks all subclasses, adding
7373         cases for them via walk_subclasses.  For subclasses, visit all
7374         fields of the type (including inherited ones).
7375         (write_func_for_structure): Don't write fns for subclasses, only
7376         for the ultimate base class within an inheritance hierarchy.
7377         Subclasses-marking will be handled by the base class marking functions.
7378         (write_types): Likewise.
7379         (write_local_func_for_structure): Likewise.
7380         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
7381         a "tag" option (and are thus concrete subclasses).
7382         (write_root): Use the marker function for the ultimate base class.
7383         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
7384         (opts_have): Add declaration.
7386 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
7388         * lra-spills.c (lra_final_code_change): Remove useless move insns
7389         originated from moves of pseudos.
7391 2013-10-28  Jeff Law  <law@redhat.com>
7393         * lower-subreg.c (resolve_simple_move): Fix comment typo.
7395 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
7397         * df-scan.c (df_collection_rec): Adjust.
7398         (copy_defs): New constant.
7399         (copy_uses): Likewise.
7400         (copy_eq_uses): Likewise.
7401         (copy_mw): Likewise.
7402         (copy_all): Likewise.
7403         (df_insn_rescan): Adjust.
7404         (df_notes_rescan): Likewise.
7405         (df_swap_refs): Likewise.
7406         (df_sort_and_compress_refs): Likewise.
7407         (df_sort_and_compress_mws): Likewise.
7408         (df_install_refs): Likewise.
7409         (df_install_mws): Likewise.
7410         (df_refs_add_to_chains): Add flags parameter controlling which vectors
7411         are coppied.
7412         (df_bb_refs_record): Adjust.
7413         (df_record_entry_block_defs): Likewise.
7414         (df_record_exit_block_defs): Likewise.
7415         (df_refs_verify): Likewise.
7416         (df_mws_verify): Likewise.
7417         (df_insn_refs_verify): Likewise.
7418         (df_bb_verify): Likewise.
7419         * ipa-pure-const.c (finish_state): Remove.
7420         (propagate): Adjust.
7421         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
7422         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
7423         var-tracking.c: Adjust.
7424         * vec.c (stack_vecs): Remove.
7425         (register_stack_vec): Likewise.
7426         (stack_vec_register_index): Likewise.
7427         (unregister_stack_vec): Likewise.
7428         * vec.h (struct va_stack): Remove.
7429         (struct vec<T, A, vl_ptr>): Specialize as
7430         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
7431         allocation strategy compatable with the vl_ptr layout.
7432         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
7433         specialization anyway.
7434         (class stack_vec): New class.
7435         (vec_stack_alloc): Remove.
7436         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
7438 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7439             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7440             Sergey Lega  <sergey.s.lega@intel.com>
7441             Anna Tikhonova  <anna.tikhonova@intel.com>
7442             Ilya Tocar  <ilya.tocar@intel.com>
7443             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7444             Ilya Verbin  <ilya.verbin@intel.com>
7445             Kirill Yukhin  <kirill.yukhin@intel.com>
7446             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7448         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
7449         (*prefetch_avx512pf_<mode>): New.
7450         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
7451         (avx512f_maskcmp<mode>3): Ditto.
7452         (vashrv16si3): Ditto.
7454 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7455             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7456             Sergey Lega  <sergey.s.lega@intel.com>
7457             Anna Tikhonova  <anna.tikhonova@intel.com>
7458             Ilya Tocar  <ilya.tocar@intel.com>
7459             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7460             Ilya Verbin  <ilya.verbin@intel.com>
7461             Kirill Yukhin  <kirill.yukhin@intel.com>
7462             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7464         * config/i386/i386.md (any_truncate): New.
7465         (trunsuffix): Ditto.
7466         * config/i386/predicates.md (const_8_to_9_operand): New.
7467         (const_10_to_11_operand): Ditto.
7468         (const_12_to_13_operand): Ditto.
7469         (const_14_to_15_operand): Ditto.
7470         (const_16_to_19_operand): Ditto.
7471         (const_20_to_23_operand): Ditto.
7472         (const_24_to_27_operand): Ditto.
7473         (const_28_to_31_operand): Ditto.
7474         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
7475         (cvtusi2<ssescalarmodesuffix>32): New.
7476         (cvtusi2<ssescalarmodesuffix>64): Ditto.
7477         (ufloatv16siv16sf2): Ditto.
7478         (avx512f_fix_notruncv16sfv16si): Ditto.
7479         (avx512f_ufix_notruncv16sfv16si): Ditto.
7480         (avx512f_vcvtss2usi): Ditto.
7481         (avx512f_vcvtss2usiq): Ditto.
7482         (avx512f_vcvttss2usi): Ditto.
7483         (avx512f_vcvttss2usiq): Ditto.
7484         (avx512f_vcvtsd2usi): Ditto.
7485         (avx512f_vcvtsd2usiq): Ditto.
7486         (avx512f_vcvttsd2usi): Ditto.
7487         (avx512f_vcvttsd2usiq): Ditto.
7488         (ufloatv8siv8df): Ditto.
7489         (avx512f_cvtdq2pd512_2): Ditto.
7490         (avx512f_cvtpd2dq512): Ditto.
7491         (avx512f_ufix_notruncv8dfv8si): Ditto.
7492         (avx512f_cvtpd2ps512): Ditto.
7493         (vec_unpacks_lo_v16sf): Ditto.
7494         (vec_unpacks_hi_v16sf): Ditto.
7495         (vec_unpacks_float_hi_v16si): Ditto.
7496         (vec_unpacks_float_lo_v16si): Ditto.
7497         (avx512f_unpckhps512): Ditto.
7498         (avx512f_unpcklps512): Ditto.
7499         (avx512f_movshdup512): Ditto.
7500         (avx512f_movsldup512): Ditto.
7501         (vec_extract_lo_v32hi): Ditto.
7502         (vec_extract_hi_v32hi): Ditto.
7503         (vec_extract_lo_v64qi): Ditto.
7504         (vec_extract_hi_v64qi): Ditto.
7505         (avx512f_unpckhpd512): Ditto.
7506         (avx512f_movddup512): Ditto.
7507         (avx512f_unpcklpd512): Ditto.
7508         (*avx512f_unpcklpd512): Ditto.
7509         (avx512f_shufps512_1): Ditto.
7510         (avx512f_shufpd512_1): Ditto.
7511         (avx512f_interleave_highv8di): Ditto.
7512         (avx512f_interleave_lowv8di): Ditto.
7513         (PMOV_DST_MODE): Ditto.
7514         (pmov_src_mode): Ditto.
7515         (pmov_src_lower): Ditto.
7516         (pmov_suff): Ditto.
7517         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
7518         (*avx512f_<code>v8div16qi2): Ditto.
7519         (*avx512f_<code>v8div16qi2_store): Ditto.
7520         (vec_widen_umult_even_v16si): Ditto.
7521         (*vec_widen_umult_even_v16si): Ditto.
7522         (vec_widen_smult_even_v16si): Ditto.
7523         (*vec_widen_smult_even_v16si): Ditto.
7524         (avx512f_interleave_highv16si): Ditto.
7525         (avx512f_interleave_lowv16si): Ditto.
7526         (avx512f_<code>v16qiv16si2): Ditto.
7527         (avx512f_<code>v16hiv16si2): Ditto.
7528         (avx512f_<code>v8qiv8di2): Ditto.
7529         (avx512f_<code>v8hiv8di2): Ditto.
7530         (avx512f_<code>v8siv8di2): Ditto.
7531         (avx512cd_maskb_vec_dupv8di): Ditto.
7532         (avx512cd_maskw_vec_dupv16si): Ditto.
7533         (avx512f_vcvtph2ps512): Ditto.
7534         (avx512f_vcvtps2ph512): Ditto.
7535         (VEC_EXTRACT_MODE): Extened with wider modes.
7536         (VEC_PERM_AVX2): Ditto.
7537         (VEC_PERM_CONST): Ditto.
7539 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7541         * config/arc/arc.c (arc_ccfsm_post_advance):
7542         Add comment about TYPE_RETURN.
7544 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
7546         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
7547         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
7548         (strip_offset): Convert offset to unsigned number.
7550 2013-10-27  Tom de Vries  <tom@codesourcery.com>
7552         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
7553         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
7555 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
7557         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
7558         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
7559         (TARGET_BIG_ENDIAN): New macro.
7560         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
7561         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
7562         * config/sh/sh.c: Likewise.
7563         * config/sh/sh.h: Likewise.
7565 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
7567         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
7568         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
7570 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
7572         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
7573         Fix formatting.
7574         (cmpstr_t, cmpstrsi): Fix formatting.
7576 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
7578         PR target/52483
7579         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
7580         addressing, do not use general_operand for memory operands.
7582 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
7584         Revert:
7585         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
7586         * lra-spills.c (lra_final_code_change): Remove useless move insns.
7588 2013-10-26  Jeff Law  <law@redhat.com>
7590         * predict.c (PRED_MUDFLAP): Remove.
7591         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
7593         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
7594         (OBJS): Remove tree-nomudflap.o
7595         (GTFILES): Remove tree-mudflap.c
7596         * builtins.c (expand_builtin_alloc): Remove mudflap support.
7597         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
7598         (mfwrap_spec, mflib_spec): Likewise.
7599         (cpp_unique_options, cc1_options, static_specs): Likewise.
7600         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
7601         * passes.def: Likewise.
7602         * toplev.c (compile_file, process_options): Likewise.
7603         * tree-inline.c (copy_tree_r): Likewise.
7604         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
7605         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
7606         (build_constant_desc, output_constant_def_contents): Likewise.
7607         (categorize_decl_for_section): Likewise.
7608         * tree-mudflap.c: Removed.
7609         * tree-mudflap.h: Removed.
7610         * tree-nomudflap.c: Removed.
7611         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
7612         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
7613         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
7614         * config/sol2.h (MFLIB_SPEC): Likewise.
7615         * doc/install.texi: Remove mudflap references.
7616         * doc/passes.texi: Similarly.
7617         * doc/sourcebuild.texi: Similarly.
7618         * doc/invoke.texi: Remove mudlfap related options.
7620 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
7622         PR rtl-optimization/58759
7623         * lra-constraints.c (lra_constraints): Remove wrong condition to
7624         remove insn setting up an equivalent pseudo.
7626 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
7628         * config/rs6000/rs6000-protos.h
7629         (rs6000_secondary_memory_needed_mode): New prototype.
7630         * config/rs6000/rs6000.c: Include ira.h.
7631         (TARGET_LRA_P): Redefine.
7632         (rs6000_legitimate_offset_address_p): Call
7633         legitimate_constant_pool_address_p in strict mode for LRA.
7634         (rs6000_legitimate_address_p): Ditto.
7635         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
7636         (rs6000_emit_move): Add LRA version of code to generate load/store
7637         of SDmode values.
7638         (rs6000_secondary_memory_needed_mode): New.
7639         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
7640         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
7641         constants, memory, and FP registers.
7642         (rs6000_lra_p): New.
7643         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
7644         * config/rs6000/rs6000.opt (mlra): New option.
7645         * lra-spills.c (lra_final_code_change): Remove useless move insns.
7647 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
7649         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
7650         has_single_use () and not do the conversion if has_single_use ()
7651         returns false for the multiplication result.
7653 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
7655         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
7656         to "NODE", since this works on a "tree", not an
7657         "enum tree_code".
7658         (CONSTANT_CLASS_P): Likewise.
7659         (TYPE_P): Likewise.
7660         (DECL_P): Likewise.
7661         (INDIRECT_REF_P): Likewise.
7662         (REFERENCE_CLASS_P): Likewise.
7663         (COMPARISON_CLASS_P): Likewise.
7664         (UNARY_CLASS_P): Likewise.
7665         (BINARY_CLASS_P): Likewise.
7666         (STATEMENT_CLASS_P): Likewise.
7667         (VL_EXP_CLASS_P): Likewise.
7668         (EXPRESSION_CLASS_P): Likewise.
7669         (IS_TYPE_OR_DECL_P): Likewise.
7671 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
7673         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
7674         ADDR_EXPR in the defining statement.
7676 2013-10-25  Richard Biener  <rguenther@suse.de>
7678         PR tree-optimization/58626
7679         * tree-loop-distribution.c (enum rdg_dep_type): Remove
7680         anti_dd, output_dd and input_dd.
7681         (struct rdg_edge): Remove level and relation members.
7682         (RDGE_LEVEL, RDGE_RELATION): Remove.
7683         (dot_rdg_1): Adjust.
7684         (create_rdg_edge_for_ddr): Remove.
7685         (create_rdg_edges_for_scalar): Adjust.
7686         (create_edge_for_control_dependence): Likewise.
7687         (create_rdg_edges): Split into ...
7688         (create_rdg_flow_edges): ... this
7689         (create_rdg_cd_edges): ... and this.
7690         (free_rdg): Adjust.
7691         (build_rdg): Likewise, do not compute data dependences or
7692         add edges for them.
7693         (pg_add_dependence_edges): New function.
7694         (pgcmp): Likewise.
7695         (distribute_loop): First apply all non-dependence based
7696         partition mergings.  Then compute dependences between partitions
7697         and merge and order partitions according to them.
7699 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
7701         PR rtl-optimization/58831
7702         * alias.c (init_alias_analysis): At the beginning of each iteration,
7703         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
7705 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
7707         * recog.c (search_ofs): New static variable moved from...
7708         (peep2_find_free_register): ...here.
7709         (peephole2_optimize): Initialize it.
7711 2013-10-25  Tobias Burnus  <burnus@net-b.de>
7713         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
7715 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
7717         * config/i386/i386.h (TARGET_MPX): New define.
7718         (TARGET_MPX_P): Ditto.
7720 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
7722         * config/i386/constraints.md (B): New.
7723         (Ti): New.
7724         (Tb): New.
7725         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
7726         * config/i386/i386-modes.def (BND32): New.
7727         (BND64): New.
7728         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
7729         * config/i386/i386.c (isa_opts): Add mmpx.
7730         (regclass_map): Add bound registers.
7731         (dbx_register_map): Likewise.
7732         (dbx64_register_map): Likewise.
7733         (svr4_dbx_register_map): Likewise.
7734         (PTA_MPX): New.
7735         (ix86_option_override_internal): Support MPX ISA.
7736         (ix86_conditional_register_usage): Support bound registers.
7737         (print_reg): Likewise.
7738         (ix86_code_end): Add MPX bnd prefix.
7739         (output_set_got): Likewise.
7740         (ix86_output_call_insn): Likewise.
7741         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
7742         (ix86_print_operand_punct_valid_p): Likewise.
7743         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
7744         UNSPEC_BNDMK_ADDR.
7745         (ix86_class_likely_spilled_p): Add bound regs support.
7746         (ix86_hard_regno_mode_ok): Likewise.
7747         (x86_order_regs_for_local_alloc): Likewise.
7748         (ix86_bnd_prefixed_insn_p): New.
7749         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
7750         (FIXED_REGISTERS): Add bound registers.
7751         (CALL_USED_REGISTERS): Likewise.
7752         (REG_ALLOC_ORDER): Likewise.
7753         (HARD_REGNO_NREGS): Likewise.
7754         (TARGET_MPX): New.
7755         (VALID_BND_REG_MODE): New.
7756         (FIRST_BND_REG): New.
7757         (LAST_BND_REG): New.
7758         (reg_class): Add BND_REGS.
7759         (REG_CLASS_NAMES): Likewise.
7760         (REG_CLASS_CONTENTS): Likewise.
7761         (BND_REGNO_P): New.
7762         (ANY_BND_REG_P): New.
7763         (BNDmode): New.
7764         (HI_REGISTER_NAMES): Add bound registers.
7765         * config/i386/i386.md (UNSPEC_BNDMK): New.
7766         (UNSPEC_BNDMK_ADDR): New.
7767         (UNSPEC_BNDSTX): New.
7768         (UNSPEC_BNDLDX): New.
7769         (UNSPEC_BNDLDX_ADDR): New.
7770         (UNSPEC_BNDCL): New.
7771         (UNSPEC_BNDCU): New.
7772         (UNSPEC_BNDCN): New.
7773         (UNSPEC_MPX_FENCE): New.
7774         (BND0_REG): New.
7775         (BND1_REG): New.
7776         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7777         (length_immediate): Likewise.
7778         (prefix_0f): Likewise.
7779         (memory): Likewise.
7780         (prefix_rep): Check for bnd prefix.
7781         (length_nobnd): New.
7782         (length): Use length_nobnd if specified.
7783         (BND): New.
7784         (bnd_ptr): New.
7785         (BNDCHECK): New.
7786         (bndcheck): New.
7787         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
7788         (*jcc_2): Likewise.
7789         (jump): Likewise.
7790         (simple_return_internal): Likewise.
7791         (simple_return_pop_internal): Likewise.
7792         (*indirect_jump): Add MPX bnd prefix.
7793         (*tablejump_1): Likewise.
7794         (simple_return_internal_long): Likewise.
7795         (simple_return_indirect_internal): Likewise.
7796         (<mode>_mk): New.
7797         (*<mode>_mk): New.
7798         (mov<mode>): New.
7799         (*mov<mode>_internal_mpx): New.
7800         (<mode>_<bndcheck>): New.
7801         (*<mode>_<bndcheck>): New.
7802         (<mode>_ldx): New.
7803         (*<mode>_ldx): New.
7804         (<mode>_stx): New.
7805         (*<mode>_stx): New.
7806         * config/i386/predicates.md (lea_address_operand): Rename to...
7807         (address_no_seg_operand): ... this.
7808         (address_mpx_no_base_operand): New.
7809         (address_mpx_no_index_operand): New.
7810         (bnd_mem_operator): New.
7811         * config/i386/i386.opt (mmpx): New.
7812         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
7813         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
7815 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
7817         * mode-classes.def (MODE_POINTER_BOUNDS): New.
7818         * tree.def (POINTER_BOUNDS_TYPE): New.
7819         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
7820         (POINTER_BOUNDS_MODE): New.
7821         (make_pointer_bounds_mode): New.
7822         * machmode.h (POINTER_BOUNDS_MODE_P): New.
7823         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
7824         (layout_type): Support POINTER_BOUNDS_TYPE.
7825         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
7826         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
7827         (type_contains_placeholder_1): Likewise.
7828         * tree.h (POINTER_BOUNDS_TYPE_P): New.
7829         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
7830         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
7832 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
7834         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
7835         mode of address computation when calling memory_address_addr_space.
7837 2013-08-24  Richard Henderson  <rth@twiddle.net>
7839         PR rtl/58542
7840         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
7841         instead of create_convert_operand_to.
7842         (maybe_emit_sync_lock_test_and_set): Likewise.
7843         (expand_atomic_compare_and_swap): Likewise.
7844         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
7846 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
7848         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
7849         Change param_is to use the struct and not the pointer to the struct.
7851 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
7853         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
7854         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7855         Move to targhooks.c.
7856         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
7857         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7858         Relocate from gimplify.c.
7859         * targhooks.h: Add 2 prototypes.
7860         * tree.h: Delete 2 prototypes.
7862 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
7864         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
7865         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
7867 2013-10-24  Cong Hou  <congh@google.com>
7869         * convert.c (convert_to_real): Guard those unsafe math function
7870         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
7871         specially.
7873 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
7875         PR ipa/58712
7876         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
7877         as argument.
7878         (cgraph_create_edge): Use the new argument.
7879         (cgraph_create_indirect_edge): Likewise.
7881 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
7883         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
7884         TYPE_UNCOND_BRANCH.
7885         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
7886         changes statep->state.
7888 2013-10-24  Tobias Burnus  <burnus@net-b.de>
7890         PR other/33426
7891         * tree-cfg.c (replace_loop_annotate): New function.
7892         (execute_build_cfg): Call it.
7893         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
7894         * internal-fn.c (expand_ANNOTATE): New function.
7895         * internal-fn.def (ANNOTATE): Define as new internal function.
7896         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
7897         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
7898         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
7899         * doc/extend.texi (Pragmas): Document #pragma ivdep.
7900         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
7902 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
7903             Marcus Shawcroft  <marcus.shawcroft@arm.com>
7905         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
7906         Special case reload SP+C into none GENERAL_REGS.
7908 2013-10-24  Michael Matz  <matz@suse.de>
7910         * gengtype.c (is_file_equal): Check that files will be same length.
7912 2013-10-25  Christian Bruel  <christian.bruel@st.com>
7914         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
7915         * config/sh/t-sh (sh-mem.o): New rule.
7916         * config/sh/sh-mem.cc (expand_block_move): Moved here.
7917         (sh_expand_cmpstr): New function.
7918         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
7919         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
7920         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
7921         (rotlhi3_8): Rename.
7923 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7925         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
7926         * Makefile.in (CXXDEPMODE): Assign and change users.
7927         (CCDEPMODE): Delete.
7928         * configure: Regenerate.
7930 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
7932         * gengtype-parse.c (require_without_advance): New.
7933         (type): For GTY-marked types that are not GTY((user)), parse any
7934         base classes, requiring them to be single-inheritance, and not
7935         be templates.  For non-GTY-marked types and GTY((user)),
7936         continue to skip over any C++ inheritance specification.
7937         * gengtype-state.c (state_writer::write_state_struct_type):
7938         Write base class of type (if any).
7939         (read_state_struct_type): Read base class of type (if any).
7940         * gengtype.c (new_structure): Add a "base_class" parameter.
7941         (create_optional_field_): Update for new parameter to new_structure.
7942         (adjust_field_rtx_def): Likewise.
7943         (adjust_field_tree_exp): Likewise.
7944         * gengtype.h (struct type): Add "base_class" field to the s
7945         union field.
7946         (new_structure): Add "base" parameter.
7948 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
7950         PR target/57756
7951         * config/i386/i386.c (ix86_option_override_internal):
7952         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
7953         (ix86_valid_target_attribute_tree):
7954         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
7955         Change TARGET_SSE to TARGET_SSE_P (opts->...)
7957 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
7959         * tree-ssa-loop.h: Remove include files.
7960         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7961         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
7962         * graphite-clast-to-gimple.c: Likewise.
7963         * graphite-scop-detection.c: Likewise.
7964         * graphite-sese-to-poly.c: Likewise.
7965         * ipa-inline-analysis.c: Likewise.
7966         * ipa-pure-const.c: Likewise.
7967         * loop-init.c: Likewise.
7968         * passes.c: Likewise.
7969         * predict.c: Likewise.
7970         * tree-cfg.c: Likewise.
7971         * tree-cfgcleanup.c: Likewise.
7972         * tree-chrec.c: Likewise.
7973         * tree-data-ref.c: Likewise.
7974         * tree-loop-distribution.c: Likewise.
7975         * tree-parloops.c: Likewise.
7976         * tree-predcom.c: Likewise.
7977         * tree-scalar-evolution.c: Likewise.
7978         * tree-ssa-address.c: Likewise.
7979         * tree-ssa.c: Likewise.
7980         * tree-ssa-dce.c: Likewise.
7981         * tree-ssa-loop.c: Likewise.
7982         * tree-ssa-loop-im.c: Likewise.
7983         * tree-ssa-loop-ivcanon.c: Likewise.
7984         * tree-ssa-loop-ivopts.c: Likewise.
7985         * tree-ssa-loop-manip.c: Likewise.
7986         * tree-ssa-loop-niter.c: Likewise.
7987         * tree-ssa-loop-prefetch.c: Likewise.
7988         * tree-ssa-loop-unswitch.c: Likewise.
7989         * tree-ssa-reassoc.c: Likewise.
7990         * tree-vect-data-refs.c: Likewise.
7991         * tree-vect-loop.c: Likewise.
7992         * tree-vect-loop-manip.c: Likewise.
7993         * tree-vectorizer.c: Likewise.
7994         * tree-vect-stmts.c: Likewise.
7995         * tree-vrp.c: Likewise.
7997 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7999         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
8001 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8003         PR tree-optimization/58775
8004         PR tree-optimization/58791
8005         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
8006         (insert_stmt_after): Rewritten, don't move the stmt, but really
8007         insert it.
8008         (get_stmt_uid_with_default): Remove.
8009         (build_and_add_sum): Use insert_stmt_after and
8010         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
8011         (update_range_test): Set uid on stmts added by
8012         force_gimple_operand_gsi.  Don't immediately modify statements
8013         in inter-bb optimization, just update oe->op values.
8014         (optimize_range_tests): Return bool whether any changed have been made.
8015         (update_ops): New function.
8016         (struct inter_bb_range_test_entry): New type.
8017         (maybe_optimize_range_tests): Perform statement changes here.
8018         (not_dominated_by, appears_later_in_bb, get_def_stmt,
8019         ensure_ops_are_available): Remove.
8020         (find_insert_point): Rewritten.
8021         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
8022         return LHS of the (new resp. old) stmt.  Don't call
8023         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
8024         instead of last, move new stmt at the right place.
8025         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
8026         (negate_value): Likewise.  Set uids.
8027         (break_up_subtract_bb): Initialize uids.
8028         (reassociate_bb): Adjust rewrite_expr_tree caller.
8029         (do_reassoc): Don't call renumber_gimple_stmt_uids.
8031 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
8033         PR target/58838
8034         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
8035         TARGET_32BIT final condition.
8036         (mulsi3_internal2 and splitter): Same.
8038 2013-10-23  Jeff Law  <law@redhat.com>
8040         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
8041         through joiner blocks with abnormal outgoing edges.
8043         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
8044         Add parameter JOINERS, to allow/disallow threading through joiner
8045         blocks.
8046         (thread_block): New.  Call thread_block_1.
8047         (mark_threaded_blocks): Remove code to filter out certain cases
8048         of threading through joiner blocks.
8049         (thread_through_all_blocks): Document how we can have a dangling
8050         edge AUX field and clear it.
8052 2013-10-23  Ian Lance Taylor  <iant@google.com>
8054         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
8055         (C++ Dialect Options): Likewise.
8056         (Optimize Options): Likewise.
8058 2013-10-23  Tom de Vries  <tom@codesourcery.com>
8060         PR tree-optimization/58805
8061         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
8063 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8065         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
8066         sequence based on get_range_info returned range.
8068 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
8070         * tree-ssa.h: Remove all #include's
8071         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8072         * alias.c: Move required includes from tree-ssa.h.
8073         * asan.c: Likewise.
8074         * builtins.c: Likewise.
8075         * calls.c: Likewise.
8076         * cfgexpand.c: Likewise.
8077         * cfghooks.c: Likewise.
8078         * cfgloop.c: Likewise.
8079         * cfgloopmanip.c: Likewise.
8080         * cgraph.c: Likewise.
8081         * cgraphbuild.c: Likewise.
8082         * cgraphclones.c: Likewise.
8083         * cgraphunit.c: Likewise.
8084         * dse.c: Likewise.
8085         * except.c: Likewise.
8086         * expr.c: Likewise.
8087         * final.c: Likewise.
8088         * fold-const.c: Likewise.
8089         * ggc-page.c: Likewise.
8090         * gimple-builder.c: Likewise.
8091         * gimple-fold.c: Likewise.
8092         * gimple-iterator.c: Likewise.
8093         * gimple-low.c: Likewise.
8094         * gimple-pretty-print.c: Likewise.
8095         * gimple-ssa-strength-reduction.c: Likewise.
8096         * gimple-streamer-in.c: Likewise.
8097         * gimple-streamer-out.c: Likewise.
8098         * gimplify.c: Likewise.
8099         * graphite-blocking.c: Likewise.
8100         * graphite-clast-to-gimple.c: Likewise.
8101         * graphite-dependences.c: Likewise.
8102         * graphite-interchange.c: Likewise.
8103         * graphite-optimize-isl.c: Likewise.
8104         * graphite-poly.c: Likewise.
8105         * graphite-scop-detection.c: Likewise.
8106         * graphite-sese-to-poly.c: Likewise.
8107         * graphite.c: Likewise.
8108         * ipa-cp.c: Likewise.
8109         * ipa-inline-analysis.c: Likewise.
8110         * ipa-inline-transform.c: Likewise.
8111         * ipa-inline.c: Likewise.
8112         * ipa-prop.c: Likewise.
8113         * ipa-pure-const.c: Likewise.
8114         * ipa-reference.c: Likewise.
8115         * ipa-split.c: Likewise.
8116         * ipa-utils.c: Likewise.
8117         * loop-init.c: Likewise.
8118         * lto-cgraph.c: Likewise.
8119         * lto-section-in.c: Likewise.
8120         * lto-section-out.c: Likewise.
8121         * lto-streamer-in.c: Likewise.
8122         * lto-streamer-out.c: Likewise.
8123         * lto-streamer.c: Likewise.
8124         * omp-low.c: Likewise.
8125         * passes.c: Likewise.
8126         * predict.c: Likewise.
8127         * print-tree.c: Likewise.
8128         * profile.c: Likewise.
8129         * sese.c: Likewise.
8130         * targhooks.c: Likewise.
8131         * tracer.c: Likewise.
8132         * trans-mem.c: Likewise.
8133         * tree-call-cdce.c: Likewise.
8134         * tree-cfg.c: Likewise.
8135         * tree-cfgcleanup.c: Likewise.
8136         * tree-chrec.c: Likewise.
8137         * tree-complex.c: Likewise.
8138         * tree-data-ref.c: Likewise.
8139         * tree-dfa.c: Likewise.
8140         * tree-eh.c: Likewise.
8141         * tree-emutls.c: Likewise.
8142         * tree-if-conv.c: Likewise.
8143         * tree-inline.c: Likewise.
8144         * tree-into-ssa.c: Likewise.
8145         * tree-loop-distribution.c: Likewise.
8146         * tree-mudflap.c: Likewise.
8147         * tree-nested.c: Likewise.
8148         * tree-nrv.c: Likewise.
8149         * tree-object-size.c: Likewise.
8150         * tree-outof-ssa.c: Likewise.
8151         * tree-parloops.c: Likewise.
8152         * tree-phinodes.c: Likewise.
8153         * tree-predcom.c: Likewise.
8154         * tree-pretty-print.c: Likewise.
8155         * tree-profile.c: Likewise.
8156         * tree-scalar-evolution.c: Likewise.
8157         * tree-sra.c: Likewise.
8158         * tree-ssa-address.c: Likewise.
8159         * tree-ssa-alias.c: Likewise.
8160         * tree-ssa-ccp.c: Likewise.
8161         * tree-ssa-coalesce.c: Likewise.
8162         * tree-ssa-copy.c: Likewise.
8163         * tree-ssa-copyrename.c: Likewise.
8164         * tree-ssa-dce.c: Likewise.
8165         * tree-ssa-dom.c: Likewise.
8166         * tree-ssa-dse.c: Likewise.
8167         * tree-ssa-forwprop.c: Likewise.
8168         * tree-ssa-ifcombine.c: Likewise.
8169         * tree-ssa-live.c: Likewise.
8170         * tree-ssa-loop-ch.c: Likewise.
8171         * tree-ssa-loop-im.c: Likewise.
8172         * tree-ssa-loop-ivcanon.c: Likewise.
8173         * tree-ssa-loop-ivopts.c: Likewise.
8174         * tree-ssa-loop-manip.c: Likewise.
8175         * tree-ssa-loop-niter.c: Likewise.
8176         * tree-ssa-loop-prefetch.c: Likewise.
8177         * tree-ssa-loop-unswitch.c: Likewise.
8178         * tree-ssa-loop.c: Likewise.
8179         * tree-ssa-math-opts.c: Likewise.
8180         * tree-ssa-operands.c: Likewise.
8181         * tree-ssa-phiopt.c: Likewise.
8182         * tree-ssa-phiprop.c: Likewise.
8183         * tree-ssa-pre.c: Likewise.
8184         * tree-ssa-propagate.c: Likewise.
8185         * tree-ssa-reassoc.c: Likewise.
8186         * tree-ssa-sccvn.c: Likewise.
8187         * tree-ssa-sink.c: Likewise.
8188         * tree-ssa-strlen.c: Likewise.
8189         * tree-ssa-structalias.c: Likewise.
8190         * tree-ssa-tail-merge.c: Likewise.
8191         * tree-ssa-ter.c: Likewise.
8192         * tree-ssa-threadedge.c: Likewise.
8193         * tree-ssa-threadupdate.c: Likewise.
8194         * tree-ssa-uncprop.c: Likewise.
8195         * tree-ssa-uninit.c: Likewise.
8196         * tree-ssa.c: Likewise.
8197         * tree-ssanames.c: Likewise.
8198         * tree-stdarg.c: Likewise.
8199         * tree-streamer-in.c: Likewise.
8200         * tree-switch-conversion.c: Likewise.
8201         * tree-tailcall.c: Likewise.
8202         * tree-vect-data-refs.c: Likewise.
8203         * tree-vect-generic.c: Likewise.
8204         * tree-vect-loop-manip.c: Likewise.
8205         * tree-vect-loop.c: Likewise.
8206         * tree-vect-patterns.c: Likewise.
8207         * tree-vect-slp.c: Likewise.
8208         * tree-vect-stmts.c: Likewise.
8209         * tree-vectorizer.c: Likewise.
8210         * tree-vrp.c: Likewise.
8211         * tree.c: Likewise.
8212         * tsan.c: Likewise.
8213         * value-prof.c: Likewise.
8214         * var-tracking.c: Likewise.
8215         * varpool.c: Likewise.
8216         * vtable-verify.c: Likewise.
8218 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8220         * config/tilegx/tilegx.c: Include "tree.h".
8222 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8224         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
8225         the info, not after it.
8226         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
8227         dump_ssaname_info call.
8228         (pp_gimple_stmt_1): Adjust caller.
8229         (dump_phi_nodes): Likewise.  Don't print "# " here.
8231 2013-10-22  Jan Hubicka  <jh@suse.cz>
8233         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
8234         tuning flag.
8235         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
8236         * i386.c (expand_small_movmem_or_setmem): New function.
8237         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
8238         function.
8239         (alg_usable_p): Add support for value ranges; cleanup.
8240         (ix86_expand_set_or_movmem): Add support for misaligned moves.
8242 2013-10-22  Sterling Augustine  <saugustine@google.com>
8244         * doc/invoke.texi: Document -ggnu-pubnames.
8245         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
8246         logic.
8247         * dwarf2out.c: Include gdb/gdb-index.h.
8248         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
8249         debug_generate_pub_sections.
8250         (is_java, output_pubtables, output_pubname): New functions.
8251         (include_pubname_in_output): Handle debug_generate_pub_sections at
8252         level 2.
8253         (size_of_pubnames): Use new local space_for_flags based on
8254         debug_generate_pub_sections.
8255         (output_pubnames): Unify pubnames and pubtypes output logic.
8256         Genericize comments.  Call output_pubname.
8257         (dwarf2out_finish): Move logic to output_pubnames and call it.
8259 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
8261         PR target/58779
8262         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
8263         Remove CCCmode handling.
8264         <case LTU>: Return 'c' suffix for CCCmode.
8265         <case GEU>: Return 'nc' suffix for CCCmode.
8266         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
8267         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
8268         (*sub<mode>3_cc_overflow): Ditto.
8269         (*subsi3_zext_cc_overflow): Ditto.
8271 2013-10-22  Steve Ellcey  <sellcey@mips.com>
8273         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
8274         (AND (NOT OP1) (NOT OP2)).
8276 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
8278         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
8279         meaning of merge-high and merge-low masks for little endian; avoid
8280         use of vector-pack masks for little endian for mismatched modes.
8282 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8284         * config/tilepro/tilepro.c: Include "tree.h".
8286 2013-10-22  Andreas Schwab  <schwab@suse.de>
8288         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
8289         with PRE_DEC.
8291 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
8293         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
8294         [Ed Smith-Rowland]): New entries.
8295         ([Stephen M. Webb]): Update.
8297 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
8299         * tree-ssa-ter.h: Remove duplicate copy of file contents.
8301 2013-10-21  Marek Polacek  <polacek@redhat.com>
8303         PR middle-end/58809
8304         * fold-const.c (fold_range_test): Return 0 if the type is not
8305         an integral type.
8307 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
8309         * system.h: Move hwint.h include further down.
8310         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
8311         gcc_checking_asserts.
8312         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
8314 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8316         Fix volatile issues in optimize_bit_field_compare.
8317         * fold-const.c (optimize_bit_field_compare): Bail out if
8318         lvolatilep or rvolatilep.
8320 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8322         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
8323         and get_inner_reference returning different pmode for non-volatile
8324         bit-field members dependent on flag_strict_volatile_bitfields.
8325         * stor-layout.c (layout_decl): Remove special handling of
8326         flag_strict_volatile_bitfields.
8327         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
8328         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
8330 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
8332         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
8333         calculations.
8335 2013-10-21  Jeff Law  <law@redhat.com>
8337         * tree-ssa-threadedge.c (thread_through_normal_block): New
8338         argument VISITED.  Remove VISISTED as a local variable.  When we
8339         have a threadable jump, verify the destination of the jump has not
8340         been visised.
8341         (thread_across_edge): Allocate VISITED bitmap once at function
8342         scope and use it throughout.  Make sure to set appropriate bits in
8343         VISITED for E (start of jump thread path).
8344         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
8345         through a joiner if any edge on the path has a recorded jump thread.
8347 2013-10-21  Ian Lance Taylor  <iant@google.com>
8349         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
8350         don't imply that attributes can solve all problems.
8351         (Directory Options): Fix typo.
8353 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8355         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
8356         extend and extend_add.
8358 2013-10-21  Richard Biener  <rguenther@suse.de>
8360         PR tree-optimization/58794
8361         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
8362         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
8364 2013-10-21  Richard Biener  <rguenther@suse.de>
8366         PR middle-end/58742
8367         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
8368         to (T) X for sign-changing conversions (or no conversion).
8370 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
8372         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
8374 2013-10-20  Jan Hubicka  <jh@suse.cz>
8376         * config/i386/i386-tune.def: Add comment; organize into categories
8378 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
8380         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
8381         argument.  Update function comment.
8382         (expand_set_or_movmem_via_rep): New function combining
8383         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
8384         (expand_movmem_via_rep_mov): Remove.
8385         expand_setmem_via_rep_stos): Remove.
8386         (expand_movmem_epilogue): Update calls correspondingly.
8387         (expand_setmem_epilogue_via_loop): Likewise.
8388         (emit_memset): New.
8389         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
8390         (expand_set_or_movmem_prologue): New function combining
8391         expand_movmem_prologue and expand_setmem_prologue.
8392         (expand_movmem_prologue): Remove.
8393         (expand_setmem_prologue): Remove.
8394         (expand_set_or_movmem_constant_prologue): New function combining
8395         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
8396         (expand_constant_movmem_prologue): Remove.
8397         (expand_constant_setmem_prologue): Remove.
8398         (promote_duplicated_reg): Allow vector-const0 value.
8399         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
8400         and ix86_expand_setmem.
8401         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
8402         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
8404 2013-10-21  Diego Novillo  <dnovillo@google.com>
8406         * asan.c: Include tree.h
8407         * bb-reorder.c: Likewise.
8408         * cfgcleanup.c: Likewise.
8409         * cfgloopmanip.c: Likewise.
8410         * data-streamer-in.c: Likewise.
8411         * data-streamer-out.c: Likewise.
8412         * data-streamer.c: Likewise.
8413         * dwarf2cfi.c: Likewise.
8414         * graphite-blocking.c: Likewise.
8415         * graphite-clast-to-gimple.c: Likewise.
8416         * graphite-dependences.c: Likewise.
8417         * graphite-interchange.c: Likewise.
8418         * graphite-optimize-isl.c: Likewise.
8419         * graphite-poly.c: Likewise.
8420         * graphite-scop-detection.c: Likewise.
8421         * graphite-sese-to-poly.c: Likewise.
8422         * graphite.c: Likewise.
8423         * ipa-devirt.c: Likewise.
8424         * ipa-profile.c: Likewise.
8425         * ipa.c: Likewise.
8426         * ira.c: Likewise.
8427         * loop-init.c: Likewise.
8428         * loop-unroll.c: Likewise.
8429         * lower-subreg.c: Likewise.
8430         * lto/lto-object.c: Likewise.
8431         * recog.c: Likewise.
8432         * reginfo.c: Likewise.
8433         * tree-loop-distribution.c: Likewise.
8434         * tree-parloops.c: Likewise.
8435         * tree-ssa-strlen.c: Likewise.
8436         * tree-streamer.c: Likewise.
8437         * value-prof.c: Likewise.
8438         * target-globals.c: Likewise.
8439         * expr.h: Include tree-core.h instead of tree.h.
8440         * gimple.h: Likewise.
8441         * ipa-prop.h: Likewise.
8442         * ipa-utils.h: Likewise.
8443         * lto-streamer.h: Likewise.
8444         * streamer-hooks.h: Likewise.
8445         * ipa-reference.h: Include cgraph.h instead of tree.h.
8446         * cgraph.h: Include basic-block.h instead of tree.h.
8447         * tree-streamer.h: Do not include tree.h.
8448         * genattrtab.c (write_header): Generate inclusion of tree.h.
8449         * genautomata.c (main): Likewise.
8450         * genemit.c: Likewise.
8451         * genopinit.c: Likewise.
8452         * genoutput.c (output_prologue): Likewise.
8453         * genpeep.c: Likewise.
8455 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8457         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
8458         little endian.
8459         (vec_unpacku_hi_v8hi): Likewise.
8460         (vec_unpacku_lo_v16qi): Likewise.
8461         (vec_unpacku_lo_v8hi): Likewise.
8463 2013-10-20  Jan Hubicka  <jh@suse.cz>
8465         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
8466         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
8467         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
8469 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
8471         * config/mips/mips.h (ISA_HAS_WSBH): Define.
8472         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
8473         constants.
8474         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
8476 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
8478         PR target/58603
8479         * system.h: Undef m_slot.
8481 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8483         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
8484         all elements for both endian flavors.
8486 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
8488         PR target/58792
8489         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
8490         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
8491         and SI_REG for 64bit SYSV ABI targets.
8493 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
8495         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
8496         to multi_reg_return.  Clarify that we are skipping USEs of multiple
8497         return registers.  Use bool type where appropriate.
8499 2013-10-18  Jan Hubicka  <jh@suse.cz>
8501         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
8502         for cold functions.
8503         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
8504         (X86_TUNE_PUSH_MEMORY): Likewise.
8505         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
8506         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
8507         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
8508         New.
8509         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
8510         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
8511         Remove.
8512         (ix86_option_override_internal): Update to use tune features instead
8513         of variables.
8515 2013-10-18  Cong Hou  <congh@google.com>
8517         PR tree-optimization/58508
8518         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
8519         statement that contains data refs with zero-step.
8521 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
8523         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
8524         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
8525         * gimple-low.c (gimple_check_call_arg,
8526         gimple_check_call_matching_types): Move to cgraph.c.
8527         * gimple-low.h: Remove prototype.
8528         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
8529         Relocate from gimple-low.c.
8530         * cgraph.h: Add prototype.  Don't include basic-block.h.
8531         * gimplify.c: Add gimple-low to include list.
8532         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
8533         * tree-eh.c: Add gimple-low to include list.
8534         * tree-nested.c: Likewise.
8535         * cfgexpand.c: Add tree-ssa-address.h to include list.
8536         * expr.c: Likewise.
8537         * gimple-fold.c: Likewise.
8538         * gimple-ssa-strength-reduction.c: Likewise.
8539         * trans-mem.c: Likewise.
8540         * tree-mudflap.c: Likewise.
8541         * tree-ssa-loop-ivopts.c: Likewise.
8542         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
8543         (degenerate_phi_result): Move to tree-phinodes.c.
8544         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
8545         * tree-ssa-threadedge.c: Likewise.
8546         * tree-vrp.c: Likewise.
8547         * tree-phinodes.c (degenerate_phi_result): Relocate here.
8548         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
8549         * tree-phinodes.h (degenerate_phi_result): Add prototype.
8550         * tree-ssa-copy.c: Include tree-ssa-dom.h.
8551         * tree-ssa-forwprop.c: Likewise.
8552         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
8553         pass_data_cleanup_cfg_post_optimizing,
8554         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
8555         * tree-optimize.c: Delete File.
8556         * graphite.c: Include tree-cfgcleanup.h.
8557         * passes.c: Likewise.
8558         * tree-cfg.c: Likewise.
8559         * tree-profile.c: Likewise.
8560         * tree-ssa-dse.c: Likewise.
8561         * tree-ssa-loop-ivcanon.c: Likewise.
8562         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
8563         * tree-outof-ssa.c: Include sbitmap.h.
8564         * tree-ssa-live.c: Likewise.
8565         * tree-ssa-propagate.c: Likewise.
8566         * tree-ssa-structalias.c: Likewise.
8567         * tree-stdarg.c: Likewise.
8568         * Makefile.in (OBJS): Delete tree-optimize.o.
8569         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
8570         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
8571         * varasm.c: Include basic-block.h.
8572         * cfgloop.h: Include function.h instead of basic-block.h
8573         (bb_loop_depth): Move to cfgloop.c.
8574         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
8576 2013-10-18  Teresa Johnson  <tejohnson@google.com>
8578         * predict.c (probably_never_executed): Compare frequency-based
8579         count to number of training runs.
8580         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
8582 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8584         * config/arm/arm.c (cortexa9_extra_costs): New table.
8585         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
8587 2013-10-18  Jeff Law  <law@redhat.com>
8589         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
8591         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
8592         (register_jump_thread): Add "registered_jump_thread" debug
8593         counter support.
8594         * dbgcnt.def (registered_jump_thread): New debug counter.
8596 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
8598         * config/rs6000/rs6000.c: Include cgraph.h.
8600 2013-10-18  Teresa Johnson  <tejohnson@google.com>
8602         * tree-ssa-tail-merge.c (replace_block_by): Update edge
8603         weights during merging.
8605 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
8607         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
8608         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
8609         * tree-ssa-operands.h: Remove prototype.
8610         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
8611         * gimple.c (virtual_operand_p): Relocate from gimple.c.
8612         * gimple.h: Add prototype.
8613         * gimple-ssa.h: Include tree-ssa-operands.h.
8614         * tree-dump.c: Add tree-cfg.h to include list.
8615         * tree-ssa-alias.c: Add ipa-reference.h to include list.
8616         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
8617         * config/i386/i386.c: Don't include tree-flow.h.
8618         * config/rs6000/rs6000.c: Likewise.
8620 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8622         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
8624 2013-10-18  Richard Biener  <rguenther@suse.de>
8626         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
8627         or TYPE_UNSIGNED of integral types.
8628         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
8629         NULL_TREE for zero-precision integral types.
8631 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
8633         * config/aarch64/arm_neon.h
8634         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
8636 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
8638         PR target/57756
8639         * opth-gen.awk: Define target_flags_explicit.
8641 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
8643         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
8644         fields to the reg_addr array that describes the valid addressing
8645         mode for any register, general purpose registers, floating point
8646         registers, and Altivec registers.
8647         (FIRST_RELOAD_REG_CLASS): Likewise.
8648         (LAST_RELOAD_REG_CLASS): Likewise.
8649         (struct reload_reg_map_type): Likewise.
8650         (reload_reg_map_type): Likewise.
8651         (RELOAD_REG_VALID): Likewise.
8652         (RELOAD_REG_MULTIPLE): Likewise.
8653         (RELOAD_REG_INDEXED): Likewise.
8654         (RELOAD_REG_OFFSET): Likewise.
8655         (RELOAD_REG_PRE_INCDEC): Likewise.
8656         (RELOAD_REG_PRE_MODIFY): Likewise.
8657         (reg_addr): Likewise.
8658         (mode_supports_pre_incdec_p): New helper functions to say whether
8659         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
8660         (mode_supports_pre_modify_p): Likewise.
8661         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
8662         print the valid address mode bits for each mode.
8663         (rs6000_debug_print_mode): Likewise.
8664         (rs6000_debug_reg_global): Likewise.
8665         (rs6000_setup_reg_addr_masks): New function to set up the address
8666         mask bits for each type.
8667         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
8668         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
8669         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
8670         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
8671         PRE_MODIFY are supported.
8672         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
8673         registers, instead of {src,dest}_av_p.
8674         (rs6000_print_options_internal): Tweak the debug output slightly.
8676 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
8678         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
8679         isa attribute.
8681 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
8683         * tree-flow.h (struct omp_region): Move to omp-low.c.
8684         Remove omp_ prototypes and variables.
8685         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
8686         (copy_var_decl): Relocate prototype from tree-flow.h.
8687         * gimple.c (copy_var_decl): Relocate from omp-low.c.
8688         * tree.h: Move prototype to omp-low.h.
8689         * omp-low.h: New File.  Relocate prototypes here.
8690         * omp-low.c (struct omp_region): Make local here.
8691         (root_omp_region): Make static.
8692         (copy_var_decl) Move to gimple.c.
8693         (new_omp_region): Make static.
8694         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
8695         * tree-cfg.c: Include omp-low.h.
8696         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
8697         * gimplify.c: Include omp-low.h.
8698         * tree-parloops.c: Likewise.
8700 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
8702         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
8703         operands are in memory, prefer to force non-matched operand 1 to
8704         the register.
8706 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
8708         PR target/58673
8709         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
8710         restrict TImode addresses to single indirect registers if both
8711         -mquad-memory and -mvsx-timode are used.
8712         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
8713         we should emit load/store quad.  Remove using %y for quad memory
8714         addresses.
8716         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
8717         constraints to allow load/store quad on machines where TImode is
8718         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
8719         for TImode to load integer constants.
8721 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8723         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
8725 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8727         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
8728         handling of STACK_REG.
8730 2013-10-17  Richard Biener  <rguenther@suse.de>
8732         PR tree-optimization/58143
8733         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
8734         New function.
8735         (rewrite_to_defined_overflow): Likewise.
8736         (move_computations_dom_walker::before_dom): Rewrite stmts
8737         with undefined signed overflow that are not always executed
8738         into unsigned arithmetic.
8740 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
8742         PR target/57756
8743         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
8744         explicit isa flag to be an options variable, instead of using
8745         global_options_set.  Remove define from rs6000.h.
8746         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
8748         * config/rs6000/rs6000.c (rs6000_option_override_internal):
8749         Initialize rs6000_isa_flags_explicit.
8750         (rs6000_function_specific_save): Add gcc_options* parameter, so
8751         that the powerpc builds after the 2013-10-15 changes.
8752         (rs6000_function_specific_restore): Likewise.
8754 2013-10-16  DJ Delorie  <dj@redhat.com>
8756         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
8757         op is a REG before checking REGNO.
8758         (rl78_alloc_physical_registers): Verify pattern is a SET before
8759         checking SET_SRC.
8761 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8763         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
8764         endianness.
8765         (vec_unpacks_lo_v4sf): Likewise.
8766         (vec_unpacks_float_hi_v4si): Likewise.
8767         (vec_unpacks_float_lo_v4si): Likewise.
8768         (vec_unpacku_float_hi_v4si): Likewise.
8769         (vec_unpacku_float_lo_v4si): Likewise.
8771 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8773         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
8774         (vsx_concat_v2sf): Likewise.
8776 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
8778         * config/aarch64/aarch64.md
8779         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
8781 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
8783         PR tree-optimization/58697
8784         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
8785         estimated_loop_iterations_int.
8786         (max_stmt_executions_int): Call get_max_loop_iterations_int.
8787         (get_max_loop_iterations_int): New.  HWINT version of
8788         get_max_loop_iterations.
8789         * cfgloop.h: Add prototypes.
8790         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
8791         * loop-unroll.c (decide_peel_once_rolling): Call
8792         get_estimated_loop_iterations_int.
8793         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
8794         * tree-ssa-loop-niter.h: Tweak prototypes.
8796 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
8798         * gengtype-parse.c (struct_field_seq): Ignore access-control
8799         keywords ("public:" etc).
8801 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8803         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
8804         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
8806 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
8808         * config/arm/arm.opt (mlra): New option.
8809         * config/arm/arm.c (arm_lra_p): New function.
8810         (TARGET_LRA_P): Define.
8812 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
8814         * tree-core.h (tree_code_name): Remove.
8815         * tree.h (get_tree_code_name): New prototype.
8816         * tree.c (tree_code_name): Make static.
8817         (get_tree_code_name): New function.
8818         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
8819         tree_class_check_failed, tree_range_check_failed,
8820         tree_not_class_check_failed, omp_clause_check_failed,
8821         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
8822         wrapper get_tree_code_name instead of calling tree_code_name directly.
8823         * tree-vrp.c (dump_asserts_for): Likewise.
8824         * tree-dump.c (dequeue_and_dump): Likewise.
8825         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
8826         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
8827         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
8828         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
8829         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8830         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
8831         dump_gimple_omp_for): Likewise.
8832         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
8833         * tree-ssa-pre.c (print_pre_expr): Likewise.
8834         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
8835         * print-tree.c (print_node_brief, print_node): Likewise.
8836         * gimple.c (gimple_check_failed): Likewise.
8837         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
8838         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
8839         * config/mep/mep.c (mep_validate_vliw): Likewise.
8840         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
8841         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
8843 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
8845         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
8846         for AMD bdver3.
8848 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
8850         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
8851         (MULTILIB_MATCHES): Add multilib for -march=v8.
8853 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
8855         PR target/57756
8856         * optc-save-gen.awk: Add extra parameter to the save and restore
8857         target calls.
8858         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
8859         * tree.c (build_optimization_node): New parameter.  Add extra parameter
8860         to call to cl_optimization_save.
8861         (build_target_option_node): New parameter. Add extra parameter
8862         to call to cl_target_option_save.
8863         * tree.h (build_optimization_node): New parameter.
8864         (build_target_option_node): New parameter.
8865         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
8866         build_optimization_node and build_target_option_node.
8867         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
8868         (handle_pragma_push_options): Ditto.
8869         * toplev.c (process_options): Ditto.
8870         * opts.c (init_options_struct): Check for opts_set non-null.
8871         * target.def (target_option.save): New parameter.
8872         (target_option.restore): New parameter.
8873         * tm.texi: Generate.
8874         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
8875         (ix86_pragma_target_parse): Ditto.
8876         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
8877         parameters.
8878         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
8879         to  build_optimization_node and build_target_option_node.
8880         (rs6000_valid_attribute_p): Ditto.
8881         (rs6000_pragma_target_parse): Ditto.
8882         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
8883         data.
8884         * config/i386/i386.h:
8885         TARGET_64BIT_P: New Macro
8886         TARGET_MMX_P: New Macro.
8887         TARGET_3DNOW_P: New Macro.
8888         TARGET_3DNOW_A_P: New Macro.
8889         TARGET_SSE_P: New Macro.
8890         TARGET_SSE2_P: New Macro.
8891         TARGET_SSE3_P: New Macro.
8892         TARGET_SSSE3_P: New Macro.
8893         TARGET_SSE4_1_P: New Macro.
8894         TARGET_SSE4_2_P: New Macro.
8895         TARGET_AVX_P: New Macro.
8896         TARGET_AVX2_P: New Macro.
8897         TARGET_AVX512F_P: New Macro.
8898         TARGET_AVX512PF_P: New Macro.
8899         TARGET_AVX512ER_P: New Macro.
8900         TARGET_AVX512CD_P: New Macro.
8901         TARGET_FMA_P: New Macro.
8902         TARGET_SSE4A_P: New Macro.
8903         TARGET_FMA4_P: New Macro.
8904         TARGET_XOP_P: New Macro.
8905         TARGET_LWP_P: New Macro.
8906         TARGET_ABM_P: New Macro.
8907         TARGET_BMI_P: New Macro.
8908         TARGET_BMI2_P: New Macro.
8909         TARGET_LZCNT_P: New Macro.
8910         TARGET_TBM_P: New Macro.
8911         TARGET_POPCNT_P: New Macro.
8912         TARGET_SAHF_P: New Macro.
8913         TARGET_MOVBE_P: New Macro.
8914         TARGET_CRC32_P: New Macro.
8915         TARGET_AES_P: New Macro.
8916         TARGET_PCLMUL_P: New Macro.
8917         TARGET_CMPXCHG16B_P: New Macro.
8918         TARGET_FSGSBASE_P: New Macro.
8919         TARGET_RDRND_P: New Macro.
8920         TARGET_F16C_P: New Macro.
8921         TARGET_RTM_P: New Macro.
8922         TARGET_HLE_P: New Macro.
8923         TARGET_RDSEED_P: New Macro.
8924         TARGET_PRFCHW_P: New Macro.
8925         TARGET_ADX_P: New Macro.
8926         TARGET_FXSR_P: New Macro.
8927         TARGET_XSAVE_P: New Macro.
8928         TARGET_XSAVEOPT_P: New Macro.
8929         TARGET_LP64_P: New Macro.
8930         TARGET_X32_P: New Macro.
8931         TARGET_FPMATH_DEFAULT_P: New Macro.
8932         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
8933         * config/i386/i386.c (ix86_option_override_internal): New parameters.
8934         opts and opts_set.
8935         Change ix86_tune_string to access opts->x_ix86_tune_string.
8936         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
8937         Change ix86_arch_string to access opts->x_ix86_arch_string.
8938         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
8939         Change ix86_pmode to access opts->x_ix86_pmode.
8940         Change ix86_abi to access opts->x_ix86_abi.
8941         Change ix86_cmodel to access opts->x_ix86_cmodel.
8942         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
8943         Change ix86_isa_flags_explicit to access
8944         opts->x_ix86_isa_flags_explicit.
8945         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
8946         Change ix86_regparm to access opts->x_ix86_regparm.
8947         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
8948         Change ix86_preferred_stack_boundary_arg to access
8949         opts->x_ix86_preferred_stack_boundary_arg.
8950         Change ix86_force_align_arg_pointer to access
8951         opts->x_ix86_force_align_arg_pointer.
8952         Change ix86_incoming_stack_boundar_arg to access
8953         opts->x_ix86_incoming_stack_boundar_arg.
8954         Change ix86_fpmath to access opts->x_ix86_fpmath.
8955         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
8956         Change ix86_recip_name to access opts->x_ix86_recip_name.
8957         Change ix86_stack_protector_guard to access
8958         opts->x_ix86_stack_protector_guard.
8959         Change ix86_tune_memcpy_strategy to access
8960         opts->x_ix86_tune_memcpy_strategy.
8961         Change ix86_tune_memset_strategy to access
8962         opts->x_ix86_tune_memset_strategy.
8963         Change global_options to access opts.
8964         Change global_options_set to access opts_set.
8965         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
8966         Change TARGET_MMX to TARGET_MMX_P (opts->...).
8967         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
8968         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
8969         Change TARGET_SSE to TARGET_SSE_P (opts->...).
8970         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
8971         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
8972         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
8973         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
8974         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
8975         Change TARGET_AVX to TARGET_AVX_P (opts->...).
8976         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
8977         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
8978         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
8979         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
8980         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
8981         Change TARGET_FMA to TARGET_FMA_P (opts->...).
8982         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
8983         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
8984         Change TARGET_XOP to TARGET_XOP_P (opts->...).
8985         Change TARGET_LWP to TARGET_LWP_P (opts->...).
8986         Change TARGET_ABM to TARGET_ABM_P (opts->...).
8987         Change TARGET_BMI to TARGET_BMI_P (opts->...).
8988         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
8989         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
8990         Change TARGET_TBM to TARGET_TBM_P (opts->...).
8991         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
8992         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
8993         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
8994         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
8995         Change TARGET_AES to TARGET_AES_P (opts->...).
8996         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
8997         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
8998         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
8999         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
9000         Change TARGET_F16C to TARGET_F16C_P (opts->...).
9001         Change TARGET_RTM to TARGET_RTM_P (opts->...).
9002         Change TARGET_HLE to TARGET_HLE_P (opts->...).
9003         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
9004         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
9005         Change TARGET_ADX to TARGET_ADX_P (opts->...).
9006         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
9007         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
9008         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
9009         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
9010         Change TARGET_X32 to TARGET_X32_P (opts->...).
9011         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
9012         Change TARGET_FLOAT_RETURNS_IN_80387 to
9013         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
9014         (ix86_function_specific_save): New parameter. Use opts-> fields
9015         to replace global fields.
9016         (ix86_function_specific_restore): Ditto.
9017         (ix86_valid_target_attribute_inner_p): New parameters.
9018         Fix recursive call.
9019         Fix call to ix86_handle_option and set_option.
9020         (ix86_valid_target_attribute_tree): New parameters.
9021         Change global_options to access opts.
9022         Change global_options_set to access opts_set.
9023         Fix call to ix86_valid_target_attribute_inner_p.
9024         Change ix86_tune_string to access opts->x_ix86_tune_string.
9025         Change ix86_arch_string to access opts->x_ix86_arch_string.
9026         Change ix86_fpmath to access opts->x_ix86_fpmath
9027         Fix call to ix86_option_override_internal.
9028         Fix call to ix86_add_new_builtins.
9029         Fix calls to build_optimization_node and build_target_option_node.
9030         (ix86_valid_target_attribute_p): Remove access to global_options.
9031         Use new gcc_options structure func_options.
9032         Fix call to ix86_valid_target_attribute_tree.
9033         Fix call to  build_optimization_node.
9034         (get_builtin_code_for_version): Fix call to
9035         ix86_valid_target_attribute_tree.
9037 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
9039         * Makefile.in (PICFLAG): New.
9040         (enable_host_shared): New.
9041         (INTERNAL_CFLAGS): Use PICFLAG.
9042         (LIBIBERTY): Use pic build of libiberty.a if configured with
9043         --enable-host-shared.
9044         * configure.ac: Add --enable-host-shared, setting up new
9045         PICFLAG variable.
9046         * configure: Regenerate.
9047         * doc/install.texi (--enable-shared): Add note contrasting it with ...
9048         (--enable-host-shared): New option.
9050 2013-10-15  Richard Biener  <rguenther@suse.de>
9052         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
9053         for built-in functions.
9055 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9057         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
9058         (optimize_range_tests_1): New function,
9059         extracted from optimize_range_tests.
9060         (optimize_range_tests_xor): Similarly.
9061         (optimize_range_tests_diff): New function.
9062         (optimize_range_tests): Use optimize_range_tests_1.
9064 2013-10-15  Cong Hou  <congh@google.com>
9066         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
9067         requirement of the reduction pattern so that one operand of the
9068         reduction operation can come from outside of the loop.
9070 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9072         * config/arm/neon-schedgen.ml: Remove.
9073         * config/arm/cortex-a9-neon.md: Remove comment regarding
9074         neon-schedgen.ml.
9076 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9078         * config/arm/types: Remove old neon types.
9080 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9082         * config/arm/cortex-a7.md
9083         (cortex_a7_neon_type): New.
9084         (cortex_a7_neon_mul): Update for new types.
9085         (cortex_a7_neon_mla): Likewise.
9086         (cortex_a7_neon): Likewise.
9088 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9090         * config/arm/cortex-a15-neon.md
9091         (cortex_a15_neon_type): New,
9093         (cortex_a15_neon_int_1): Remove.
9094         (cortex_a15_neon_int_2): Likewise.
9095         (cortex_a15_neon_int_3): Likewise.
9096         (cortex_a15_neon_int_4): Likewise.
9097         (cortex_a15_neon_int_5): Likewise.
9098         (cortex_a15_neon_vqneg_vqabs): Likewise.
9099         (cortex_a15_neon_vmov): Likewise.
9100         (cortex_a15_neon_vaba): Likewise.
9101         (cortex_a15_neon_vaba_qqq): Likewise.
9102         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9103         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9104         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9105         Likewise.
9106         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9107         (cortex_a15_neon_mla_qqq_8_16): Likewise.
9108         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
9109         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9110         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9111         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
9112         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9113         (cortex_a15_neon_shift_1): Likewise.
9114         (cortex_a15_neon_shift_2): Likewise.
9115         (cortex_a15_neon_shift_3): Likewise.
9116         (cortex_a15_neon_vshl_ddd): Likewise.
9117         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9118         (cortex_a15_neon_vsra_vrsra): Likewise.
9119         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9120         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9121         (cortex_a15_neon_bp_3cycle): Likewise.
9122         (cortex_a15_neon_ldm_2): Likewise.
9123         (cortex_a15_neon_stm_2): Likewise.
9124         (cortex_a15_neon_mcr): Likewise.
9125         (cortex_a15_neon_mrc): Likewise.
9126         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
9127         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
9128         (cortex_a15_neon_fp_vmul_ddd): Likewise.
9129         (cortex_a15_neon_fp_vmul_qqd): Likewise.
9130         (cortex_a15_neon_fp_vmla_ddd): Likewise.
9131         (cortex_a15_neon_fp_vmla_qqq): Likewise.
9132         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9133         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9134         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9135         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9136         (cortex_a15_neon_bp_simple): Likewise.
9137         (cortex_a15_neon_bp_2cycle): Likewise.
9138         (cortex_a15_neon_bp_3cycle): Likewise.
9139         (cortex_a15_neon_vld1_1_2_regs): Likewise.
9140         (cortex_a15_neon_vld1_3_4_regs): Likewise.
9141         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9142         (cortex_a15_neon_vld2_4_regs): Likewise.
9143         (cortex_a15_neon_vld3_vld4): Likewise.
9144         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9145         (cortex_a15_neon_vst1_3_4_regs): Likewise.
9146         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
9147         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
9148         (cortex_a15_neon_vst3_vst4): Rename to...
9149         (cortex_a15_neon_vst4): This, update for new attributes.
9150         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
9151         (cortex_a15_neon_vld3_vld4_lane): Likewise.
9152         (cortex_a15_neon_vst1_vst2_lane): Likewise.
9153         (cortex_a15_neon_vst3_vst4_lane): Likewise.
9154         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
9155         (cortex_a15_neon_ldm_2): Likewise.
9156         (cortex_a15_neon_stm_2): Likewise.
9157         (cortex_a15_neon_mcr): Likewise.
9158         (cortex_a15_neon_mcr_2_mcrr): Likewise.
9159         (cortex_a15_neon_mrc): Likewise.
9160         (cortex_a15_neon_mrrc): Likewise.
9162         (cortex_a15_neon_abd): New.
9163         (cortex_a15_neon_abd_q): Likewise.
9164         (cortex_a15_neon_aba): Likewise.
9165         (cortex_a15_neon_aba_q): Likewise.
9166         (cortex_a15_neon_acc): Likewise.
9167         (cortex_a15_neon_acc_q): Likewise.
9168         (cortex_a15_neon_arith_basic): Likewise.
9169         (cortex_a15_neon_arith_complex): Likewise.
9170         (cortex_a15_neon_multiply): Likewise.
9171         (cortex_a15_neon_multiply_q): Likewise.
9172         (cortex_a15_neon_mla): Likewise.
9173         (cortex_a15_neon_mla_q): Likewise.
9174         (cortex_a15_neon_sat_mla_long): Likewise.
9175         (cortex_a15_neon_shift_acc): Likewise.
9176         (cortex_a15_neon_shift_imm_basic): Likewise.
9177         (cortex_a15_neon_shift_imm_complex): Likewise.
9178         (cortex_a15_neon_shift_reg_basic): Likewise.
9179         (cortex_a15_neon_shift_reg_basic_q): Likewise.
9180         (cortex_a15_neon_shift_reg_complex): Likewise.
9181         (cortex_a15_neon_shift_reg_complex_q): Likewise.
9182         (cortex_a15_neon_fp_negabs): Likewise
9183         (cortex_a15_neon_fp_arith): Likewise
9184         (cortex_a15_neon_fp_arith_q): Likewise
9185         (cortex_a15_neon_fp_cvt_int): Likewise
9186         (cortex_a15_neon_fp_cvt_int_q): Likewise
9187         (cortex_a15_neon_fp_cvt_16): Likewise
9188         (cortex_a15_neon_fp_mul): Likewise
9189         (cortex_a15_neon_fp_mul_q): Likewise
9190         (cortex_a15_neon_fp_mla): Likewise
9191         (cortex_a15_neon_fp_mla_q): Likewise
9192         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
9193         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
9194         (cortex_a15_neon_bitops): Likewise.
9195         (cortex_a15_neon_bitops_q): Likewise.
9196         (cortex_a15_neon_from_gp): Likewise.
9197         (cortex_a15_neon_from_gp_q): Likewise.
9198         (cortex_a15_neon_tbl3_tbl4): Likewise.
9199         (cortex_a15_neon_zip_q): Likewise.
9200         (cortex_a15_neon_to_gp): Likewise.
9201         (cortex_a15_neon_load_a): Likewise.
9202         (cortex_a15_neon_load_b): Likewise.
9203         (cortex_a15_neon_load_c): Likewise.
9204         (cortex_a15_neon_load_d): Likewise.
9205         (cortex_a15_neon_load_e): Likewise.
9206         (cortex_a15_neon_load_f): Likewise.
9207         (cortex_a15_neon_store_a): Likewise.
9208         (cortex_a15_neon_store_b): Likewise.
9209         (cortex_a15_neon_store_c): Likewise.
9210         (cortex_a15_neon_store_d): Likewise.
9211         (cortex_a15_neon_store_e): Likewise.
9212         (cortex_a15_neon_store_f): Likewise.
9213         (cortex_a15_neon_store_g): Likewise.
9214         (cortex_a15_neon_store_h): Likewise.
9215         (cortex_a15_vfp_to_from_gp): Likewise.
9217 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9219         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
9221         (cortex_a9_neon_vshl_ddd): Remove.
9222         (cortex_a9_neon_vst3_vst4): Likewise.
9223         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9225         (cortex_a9_neon_bit_ops_q): New.
9227         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
9228         (cortex_a9_neon_int_2): Likewise.
9229         (cortex_a9_neon_int_3): Likewise.
9230         (cortex_a9_neon_int_4): Likewise.
9231         (cortex_a9_neon_int_5): Likewise.
9232         (cortex_a9_neon_vqneg_vqabs): Likewise.
9233         (cortex_a9_neon_vmov): Likewise.
9234         (cortex_a9_neon_vaba): Likewise.
9235         (cortex_a9_neon_vaba_qqq): Likewise.
9236         (cortex_a9_neon_shift_1): Likewise.
9237         (cortex_a9_neon_shift_2): Likewise.
9238         (cortex_a9_neon_shift_3): Likewise.
9239         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9240         (cortex_a9_neon_vsra_vrsra): Likewise.
9241         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9242         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9243         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9244         Likewise.
9245         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9246         (cortex_a9_neon_mla_qqq_8_16): Likewise.
9247         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9248         Likewise.
9249         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9250         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9251         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
9252         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9253         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
9254         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
9255         (cortex_a9_neon_fp_vsum): Likewise.
9256         (cortex_a9_neon_fp_vmul_ddd): Likewise.
9257         (cortex_a9_neon_fp_vmul_qqd): Likewise.
9258         (cortex_a9_neon_fp_vmla_ddd): Likewise.
9259         (cortex_a9_neon_fp_vmla_qqq): Likewise.
9260         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
9261         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
9262         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9263         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9264         (cortex_a9_neon_bp_simple): Likewise.
9265         (cortex_a9_neon_bp_2cycle): Likewise.
9266         (cortex_a9_neon_bp_3cycle): Likewise.
9267         (cortex_a9_neon_ldr): Likewise.
9268         (cortex_a9_neon_str): Likewise.
9269         (cortex_a9_neon_vld1_1_2_regs): Likewise.
9270         (cortex_a9_neon_vld1_3_4_regs): Likewise.
9271         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9272         (cortex_a9_neon_vld2_4_regs): Likewise.
9273         (cortex_a9_neon_vld3_vld4): Likewise.
9274         (cortex_a9_neon_vld1_vld2_lane): Likewise.
9275         (cortex_a9_neon_vld3_vld4_lane): Likewise.
9276         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9277         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9278         (cortex_a9_neon_vst1_3_4_regs): Likewise.
9279         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
9280         (cortex_a9_neon_vst1_vst2_lane): Likewise.
9281         (cortex_a9_neon_vst3_vst4_lane): Likewise.
9282         (cortex_a9_neon_mcr): Likewise.
9283         (cortex_a9_neon_mcr_2_mcrr): Likewise.
9284         (cortex_a9_neon_mrc): Likewise.
9285         (cortex_a9_neon_mrrc): Likewise.
9287 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9289         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
9291         (cortex_a8_neon_vshl_ddd): Remove.
9292         (cortex_a8_neon_vst3_vst4): Likewise.
9293         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
9295         (cortex_a8_neon_bit_ops_q): New.
9297         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
9298         (cortex_a8_neon_int_2): Likewise..
9299         (cortex_a8_neon_int_3): Likewise.
9300         (cortex_a8_neon_int_5): Likewise.
9301         (cortex_a8_neon_vqneg_vqabs): Likewise.
9302         (cortex_a8_neon_int_4): Likewise.
9303         (cortex_a8_neon_vaba): Likewise.
9304         (cortex_a8_neon_vaba_qqq): Likewise.
9305         (cortex_a8_neon_shift_1): Likewise.
9306         (cortex_a8_neon_shift_2): Likewise.
9307         (cortex_a8_neon_shift_3): Likewise.
9308         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9309         (cortex_a8_neon_vsra_vrsra): Likewise.
9310         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9311         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9312         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9313         Likewise.
9314         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9315         (cortex_a8_neon_mla_qqq_8_16): Likewise.
9316         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9317         Likewise.
9318         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9319         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9320         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
9321         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9322         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
9323         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
9324         (cortex_a8_neon_fp_vsum): Likewise.
9325         (cortex_a8_neon_fp_vmul_ddd): Likewise.
9326         (cortex_a8_neon_fp_vmul_qqd): Likewise.
9327         (cortex_a8_neon_fp_vmla_ddd): Likewise.
9328         (cortex_a8_neon_fp_vmla_qqq): Likewise.
9329         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
9330         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
9331         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9332         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9333         (cortex_a8_neon_bp_simple): Likewise.
9334         (cortex_a8_neon_bp_2cycle): Likewise.
9335         (cortex_a8_neon_bp_3cycle): Likewise.
9336         (cortex_a8_neon_ldr): Likewise.
9337         (cortex_a8_neon_str): Likewise.
9338         (cortex_a8_neon_vld1_1_2_regs): Likewise.
9339         (cortex_a8_neon_vld1_3_4_regs): Likewise.
9340         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9341         (cortex_a8_neon_vld2_4_regs): Likewise.
9342         (cortex_a8_neon_vld3_vld4): Likewise.
9343         (cortex_a8_neon_vld1_vld2_lane): Likewise.
9344         (cortex_a8_neon_vld3_vld4_lane): Likewise.
9345         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9346         (cortex_a8_neon_vst1_3_4_regs): Likewise.
9347         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
9348         (cortex_a8_neon_vst1_vst2_lane): Likewise.
9349         (cortex_a8_neon_vst3_vst4_lane): Likewise.
9350         (cortex_a8_neon_mcr): Likewise.
9351         (cortex_a8_neon_mcr_2_mcrr): Likewise.
9352         (cortex_a8_neon_mrc): Likewise.
9353         (cortex_a8_neon_mrrc): Likewise.
9355 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9357         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
9358         (fp): New.
9359         * config/aarch64/aarch64-simd.md (neon_type): Remove.
9360         (aarch64_simd_dup<mode>): Add "type" attribute.
9361         (aarch64_dup_lane<mode>): Likewise.
9362         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
9363         (*aarch64_simd_mov<mode>): Likewise.
9364         (aarch64_simd_mov_from_<mode>low): Likewise.
9365         (aarch64_simd_mov_from_<mode>high): Likewise.
9366         (orn<mode>3): Likewise.
9367         (bic<mode>3): Likewise.
9368         (add<mode>3): Likewise.
9369         (sub<mode>3): Likewise.
9370         (mul<mode>3): Likewise.
9371         (*aarch64_mul3_elt<mode>): Likewise.
9372         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
9373         (*aarch64_mul3_elt_to_128df): Likewise.
9374         (*aarch64_mul3_elt_to_64v2df): Likewise.
9375         (neg<mode>2): Likewise.
9376         (abs<mode>2): Likewise.
9377         (abd<mode>_3): Likewise.
9378         (aba<mode>_3): Likewise.
9379         (fabd<mode>_3): Likewise.
9380         (*fabd_scalar<mode>3): Likewise.
9381         (and<mode>3): Likewise.
9382         (ior<mode>3): Likewise.
9383         (xor<mode>3): Likewise.
9384         (one_cmpl<mode>2): Likewise.
9385         (aarch64_simd_vec_set<mode>): Likewise.
9386         (aarch64_simd_lshr<mode>): Likewise.
9387         (aarch64_simd_ashr<mode>): Likewise.
9388         (aarch64_simd_imm_shl<mode>): Likewise.
9389         (aarch64_simd_reg_sshl<mode): Likewise.
9390         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
9391         (aarch64_simd_reg_shl<mode>_signed): Likewise.
9392         (aarch64_simd_vec_setv2di): Likewise.
9393         (aarch64_simd_vec_set<mode>): Likewise.
9394         (aarch64_mla<mode>): Likewise.
9395         (*aarch64_mla_elt<mode>): Likewise.
9396         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
9397         (aarch64_mls<mode>): Likewise.
9398         (*aarch64_mls_elt<mode>): Likewise.
9399         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
9400         (<su><maxmin><mode>3): Likewise.
9401         (move_lo_quad_<mode>): Likewise.
9402         (aarch64_simd_move_hi_quad_<mode>): Likewise.
9403         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
9404         (vec_pack_trunc_<mode>): Likewise.
9405         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
9406         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
9407         (*aarch64_<su>mlal_lo<mode>): Likewise.
9408         (*aarch64_<su>mlal_hi<mode>): Likewise.
9409         (*aarch64_<su>mlsl_lo<mode>): Likewise.
9410         (*aarch64_<su>mlsl_hi<mode>): Likewise.
9411         (*aarch64_<su>mlal<mode>): Likewise.
9412         (*aarch64_<su>mlsl<mode>): Likewise.
9413         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
9414         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
9415         (add<mode>3): Likewise.
9416         (sub<mode>3): Likewise.
9417         (mul<mode>3): Likewise.
9418         (div<mode>3): Likewise.
9419         (neg<mode>2): Likewise.
9420         (abs<mode>2): Likewise.
9421         (fma<mode>4): Likewise.
9422         (*aarch64_fma4_elt<mode>): Likewise.
9423         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
9424         (*aarch64_fma4_elt_to_128df): Likewise.
9425         (*aarch64_fma4_elt_to_64v2df): Likewise.
9426         (fnma<mode>4): Likewise.
9427         (*aarch64_fnma4_elt<mode>): Likewise.
9428         (*aarch64_fnma4_elt_<vswap_width_name><mode>
9429         (*aarch64_fnma4_elt_to_128df): Likewise.
9430         (*aarch64_fnma4_elt_to_64v2df): Likewise.
9431         (<frint_pattern><mode>2): Likewise.
9432         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
9433         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
9434         (vec_unpacks_lo_v4sf): Likewise.
9435         (aarch64_float_extend_lo_v2df): Likewise.
9436         (vec_unpacks_hi_v4sf): Likewise.
9437         (aarch64_float_truncate_lo_v2sf): Likewise.
9438         (aarch64_float_truncate_hi_v4sf): Likewise.
9439         (aarch64_vmls<mode>): Likewise.
9440         (<su><maxmin><mode>3): Likewise.
9441         (<maxmin_uns><mode>3): Likewise.
9442         (reduc_<sur>plus_<mode>): Likewise.
9443         (reduc_<sur>plus_v2di): Likewise.
9444         (reduc_<sur>plus_v2si): Likewise.
9445         (reduc_<sur>plus_<mode>): Likewise.
9446         (aarch64_addpv4sf): Likewise.
9447         (clz<mode>2): Likewise.
9448         (reduc_<maxmin_uns>_<mode>): Likewise.
9449         (reduc_<maxmin_uns>_v2di): Likewise.
9450         (reduc_<maxmin_uns>_v2si): Likewise.
9451         (reduc_<maxmin_uns>_<mode>): Likewise.
9452         (reduc_<maxmin_uns>_v4sf): Likewise.
9453         (aarch64_simd_bsl<mode>_internal): Likewise.
9454         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9455         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
9456         (aarch64_get_lane<mode>): Likewise.
9457         (*aarch64_combinez<mode>): Likewise.
9458         (aarch64_combine<mode>): Likewise.
9459         (aarch64_simd_combine<mode>): Likewise.
9460         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
9461         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
9462         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
9463         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
9464         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
9465         (aarch64_<sur>h<addsub><mode>): Likewise.
9466         (aarch64_<sur><addsub>hn<mode>): Likewise.
9467         (aarch64_<sur><addsub>hn2<mode>): Likewise.
9468         (aarch64_pmul<mode>): Likewise.
9469         (aarch64_<su_optab><optab><mode>): Likewise.
9470         (aarch64_<sur>qadd<mode>): Likewise.
9471         (aarch64_sqmovun<mode>): Likewise.
9472         (aarch64_<sur>qmovn<mode>): Likewise.
9473         (aarch64_s<optab><mode>): Likewise.
9474         (aarch64_sq<r>dmulh<mode>): Likewise.
9475         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
9476         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
9477         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
9478         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
9479         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
9480         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
9481         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
9482         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
9483         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
9484         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
9485         (aarch64_sqdmull<mode>): Likewise.
9486         (aarch64_sqdmull_lane<mode>_internal): Likewise.
9487         (aarch64_sqdmull_n<mode>): Likewise.
9488         (aarch64_sqdmull2<mode>_internal): Likewise.
9489         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
9490         (aarch64_sqdmull2_n<mode>_internal): Likewise.
9491         (aarch64_<sur>shl<mode>): Likewise.
9492         (aarch64_<sur>q<r>shl<mode>
9493         (aarch64_<sur>shll_n<mode>): Likewise.
9494         (aarch64_<sur>shll2_n<mode>): Likewise.
9495         (aarch64_<sur>shr_n<mode>): Likewise.
9496         (aarch64_<sur>sra_n<mode>): Likewise.
9497         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
9498         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
9499         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
9500         (aarch64_cm<optab><mode>): Likewise.
9501         (aarch64_cm<optab>di): Likewise.
9502         (aarch64_cm<optab><mode>): Likewise.
9503         (aarch64_cm<optab>di): Likewise.
9504         (aarch64_cmtst<mode>): Likewise.
9505         (aarch64_cmtstdi): Likewise.
9506         (aarch64_cm<optab><mode>): Likewise.
9507         (*aarch64_fac<optab><mode>): Likewise.
9508         (aarch64_addp<mode>): Likewise.
9509         (aarch64_addpdi): Likewise.
9510         (sqrt<mode>2): Likewise.
9511         (vec_load_lanesoi<mode>): Likewise.
9512         (vec_store_lanesoi<mode>): Likewise.
9513         (vec_load_lanesci<mode>): Likewise.
9514         (vec_store_lanesci<mode>): Likewise.
9515         (vec_load_lanesxi<mode>): Likewise.
9516         (vec_store_lanesxi<mode>): Likewise.
9517         (*aarch64_mov<mode>): Likewise.
9518         (aarch64_ld2<mode>_dreg): Likewise.
9519         (aarch64_ld2<mode>_dreg): Likewise.
9520         (aarch64_ld3<mode>_dreg): Likewise.
9521         (aarch64_ld3<mode>_dreg): Likewise.
9522         (aarch64_ld4<mode>_dreg): Likewise.
9523         (aarch64_ld4<mode>_dreg): Likewise.
9524         (aarch64_tbl1<mode>): Likewise.
9525         (aarch64_tbl2v16qi): Likewise.
9526         (aarch64_combinev16qi): Likewise.
9527         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
9528         (aarch64_st2<mode>_dreg): Likewise.
9529         (aarch64_st2<mode>_dreg): Likewise.
9530         (aarch64_st3<mode>_dreg): Likewise.
9531         (aarch64_st3<mode>_dreg): Likewise.
9532         (aarch64_st4<mode>_dreg): Likewise.
9533         (aarch64_st4<mode>_dreg): Likewise.
9534         (*aarch64_simd_ld1r<mode>): Likewise.
9535         (aarch64_frecpe<mode>): Likewise.
9536         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
9537         (aarch64_frecps<mode>): Likewise.
9539 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9541         * config/arm/iterators.md (V_elem_ch): New.
9542         (q): Likewise.
9543         (VQH_type): Likewise.
9544         * config/arm/arm.md (is_neon_type): New.
9545         (conds): Use is_neon_type.
9546         (anddi3_insn): Update type attribute.
9547         (xordi3_insn): Likewise.
9548         (one_cmpldi2): Likewise.
9549         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
9550         * config/arm/neon.md (neon_mov): Update type attribute.
9551         (*movmisalign<mode>_neon_store): Likewise.
9552         (*movmisalign<mode>_neon_load): Likewise.
9553         (vec_set<mode>_internal): Likewise.
9554         (vec_set<mode>_internal): Likewise.
9555         (vec_setv2di_internal): Likewise.
9556         (vec_extract<mode>): Likewise.
9557         (vec_extract<mode>): Likewise.
9558         (vec_extractv2di): Likewise.
9559         (*add<mode>3_neon): Likewise.
9560         (adddi3_neon): Likewise.
9561         (*sub<mode>3_neon): Likewise.
9562         (subdi3_neon): Likewise.
9563         (fma<VCVTF:mode>4): Likewise.
9564         (fma<VCVTF:mode>4_intrinsic): Likewise.
9565         (*fmsub<VCVTF:mode>4): Likewise.
9566         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
9567         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
9568         (ior<mode>3): Likewise.
9569         (and<mode>3): Likewise.
9570         (orn<mode>3_neon): Likewise.
9571         (orndi3_neon): Likewise.
9572         (bic<mode>3_neon): Likewise.
9573         (bicdi3_neon): Likewise.
9574         (xor<mode>3): Likewise.
9575         (one_cmpl<mode>2): Likewise.
9576         (abs<mode>2): Likewise.
9577         (neg<mode>2): Likewise.
9578         (negdi2_neon): Likewise.
9579         (*umin<mode>3_neon): Likewise.
9580         (*umax<mode>3_neon): Likewise.
9581         (*smin<mode>3_neon): Likewise.
9582         (*smax<mode>3_neon): Likewise.
9583         (vashl<mode>3): Likewise.
9584         (vashr<mode>3_imm): Likewise.
9585         (vlshr<mode>3_imm): Likewise.
9586         (ashl<mode>3_signed): Likewise.
9587         (ashl<mode>3_unsigned): Likewise.
9588         (neon_load_count): Likewise.
9589         (ashldi3_neon_noclobber): Likewise.
9590         (ashldi3_neon): Likewise.
9591         (signed_shift_di3_neon): Likewise.
9592         (unsigned_shift_di3_neon): Likewise.
9593         (ashrdi3_neon_imm_noclobber): Likewise.
9594         (lshrdi3_neon_imm_noclobber): Likewise.
9595         (<shift>di3_neon): Likewise.
9596         (widen_ssum<mode>3): Likewise.
9597         (widen_usum<mode>3): Likewise.
9598         (quad_halves_<code>v4si): Likewise.
9599         (quad_halves_<code>v4sf): Likewise.
9600         (quad_halves_<code>v8hi): Likewise.
9601         (quad_halves_<code>v16qi): Likewise.
9602         (reduc_splus_v2di): Likewise.
9603         (neon_vpadd_internal<mode>): Likewise.
9604         (neon_vpsmin<mode>): Likewise.
9605         (neon_vpsmax<mode>): Likewise.
9606         (neon_vpumin<mode>): Likewise.
9607         (neon_vpumax<mode>): Likewise.
9608         (*ss_add<mode>_neon): Likewise.
9609         (*us_add<mode>_neon): Likewise.
9610         (*ss_sub<mode>_neon): Likewise.
9611         (*us_sub<mode>_neon): Likewise.
9612         (neon_vadd<mode>_unspec): Likewise.
9613         (neon_vaddl<mode>): Likewise.
9614         (neon_vaddw<mode>): Likewise.
9615         (neon_vhadd<mode>): Likewise.
9616         (neon_vqadd<mode>): Likewise.
9617         (neon_vaddhn<mode>): Likewise.
9618         (neon_vmul<mode>): Likewise.
9619         (neon_vfms<VCVTF:mode>): Likewise.
9620         (neon_vmlal<mode>): Likewise.
9621         (neon_vmls<mode>): Likewise.
9622         (neon_vmlsl<mode>): Likewise.
9623         (neon_vqdmulh<mode>): Likewise.
9624         (neon_vqdmlal<mode>): Likewise.
9625         (neon_vqdmlsl<mode>): Likewise.
9626         (neon_vmull<mode>): Likewise.
9627         (neon_vqdmull<mode>): Likewise.
9628         (neon_vsub<mode>_unspec): Likewise.
9629         (neon_vsubl<mode>): Likewise.
9630         (neon_vsubw<mode>): Likewise.
9631         (neon_vqsub<mode>): Likewise.
9632         (neon_vhsub<mode>): Likewise.
9633         (neon_vsubhn<mode>): Likewise.
9634         (neon_vceq<mode>): Likewise.
9635         (neon_vcge<mode>): Likewise.
9636         (neon_vcgeu<mode>): Likewise.
9637         (neon_vcgt<mode>): Likewise.
9638         (neon_vcgtu<mode>): Likewise.
9639         (neon_vcle<mode>): Likewise.
9640         (neon_vclt<mode>): Likewise.
9641         (neon_vcage<mode>): Likewise.
9642         (neon_vcagt<mode>): Likewise.
9643         (neon_vtst<mode>): Likewise.
9644         (neon_vabd<mode>): Likewise.
9645         (neon_vabdl<mode>): Likewise.
9646         (neon_vaba<mode>): Likewise.
9647         (neon_vabal<mode>): Likewise.
9648         (neon_vmax<mode>): Likewise.
9649         (neon_vmin<mode>): Likewise.
9650         (neon_vpaddl<mode>): Likewise.
9651         (neon_vpadal<mode>): Likewise.
9652         (neon_vpmax<mode>): Likewise.
9653         (neon_vpmin<mode>): Likewise.
9654         (neon_vrecps<mode>): Likewise.
9655         (neon_vrsqrts<mode>): Likewise.
9656         (neon_vqabs<mode>): Likewise.
9657         (neon_vqneg<mode>): Likewise.
9658         (neon_vcls<mode>): Likewise.
9659         (clz<mode>2): Likewise.
9660         (popcount<mode>2): Likewise.
9661         (neon_vrecpe<mode>): Likewise.
9662         (neon_vrsqrte<mode>): Likewise.
9663         (neon_vget_lane<mode>_sext_internal): Likewise.
9664         (neon_vget_lane<mode>_zext_internal): Likewise.
9665         (neon_vdup_n<mode>): Likewise.
9666         (neon_vdup_n<mode>): Likewise.
9667         (neon_vdup_nv2di): Likewise.
9668         (neon_vdup_lane<mode>_interal): Likewise.
9669         (*neon_vswp<mode>): Likewise.
9670         (neon_vcombine<mode>): Likewise.
9671         (float<mode><V_cvtto>2): Likewise.
9672         (floatuns<mode><V_cvtto>2): Likewise.
9673         (fix_trunc<mode><V_cvtto>2): Likewise.
9674         (fixuns_trunc<mode><V_cvtto>2
9675         (neon_vcvt<mode>): Likewise.
9676         (neon_vcvt<mode>): Likewise.
9677         (neon_vcvtv4sfv4hf): Likewise.
9678         (neon_vcvtv4hfv4sf): Likewise.
9679         (neon_vcvt_n<mode>): Likewise.
9680         (neon_vcvt_n<mode>): Likewise.
9681         (neon_vmovn<mode>): Likewise.
9682         (neon_vqmovn<mode>): Likewise.
9683         (neon_vqmovun<mode>): Likewise.
9684         (neon_vmovl<mode>): Likewise.
9685         (neon_vmul_lane<mode>): Likewise.
9686         (neon_vmul_lane<mode>): Likewise.
9687         (neon_vmull_lane<mode>): Likewise.
9688         (neon_vqdmull_lane<mode>): Likewise.
9689         (neon_vqdmulh_lane<mode>): Likewise.
9690         (neon_vqdmulh_lane<mode>): Likewise.
9691         (neon_vmla_lane<mode>): Likewise.
9692         (neon_vmla_lane<mode>): Likewise.
9693         (neon_vmlal_lane<mode>): Likewise.
9694         (neon_vqdmlal_lane<mode>): Likewise.
9695         (neon_vmls_lane<mode>): Likewise.
9696         (neon_vmls_lane<mode>): Likewise.
9697         (neon_vmlsl_lane<mode>): Likewise.
9698         (neon_vqdmlsl_lane<mode>): Likewise.
9699         (neon_vext<mode>): Likewise.
9700         (neon_vrev64<mode>): Likewise.
9701         (neon_vrev32<mode>): Likewise.
9702         (neon_vrev16<mode>): Likewise.
9703         (neon_vbsl<mode>_internal): Likewise.
9704         (neon_vshl<mode>): Likewise.
9705         (neon_vqshl<mode>): Likewise.
9706         (neon_vshr_n<mode>): Likewise.
9707         (neon_vshrn_n<mode>): Likewise.
9708         (neon_vqshrn_n<mode>): Likewise.
9709         (neon_vqshrun_n<mode>): Likewise.
9710         (neon_vshl_n<mode>): Likewise.
9711         (neon_vqshl_n<mode>): Likewise.
9712         (neon_vqshlu_n<mode>): Likewise.
9713         (neon_vshll_n<mode>): Likewise.
9714         (neon_vsra_n<mode>): Likewise.
9715         (neon_vsri_n<mode>): Likewise.
9716         (neon_vsli_n<mode>): Likewise.
9717         (neon_vtbl1v8qi): Likewise.
9718         (neon_vtbl2v8qi): Likewise.
9719         (neon_vtbl3v8qi): Likewise.
9720         (neon_vtbl4v8qi): Likewise.
9721         (neon_vtbl1v16qi): Likewise.
9722         (neon_vtbl2v16qi): Likewise.
9723         (neon_vcombinev16qi): Likewise.
9724         (neon_vtbx1v8qi): Likewise.
9725         (neon_vtbx2v8qi): Likewise.
9726         (neon_vtbx3v8qi): Likewise.
9727         (neon_vtbx4v8qi): Likewise.
9728         (*neon_vtrn<mode>_insn): Likewise.
9729         (*neon_vzip<mode>_insn): Likewise.
9730         (*neon_vuzp<mode>_insn): Likewise.
9731         (neon_vld1<mode>): Likewise.
9732         (neon_vld1_lane<mode>): Likewise.
9733         (neon_vld1_lane<mode>): Likewise.
9734         (neon_vld1_dup<mode>): Likewise.
9735         (neon_vld1_dup<mode>): Likewise.
9736         (neon_vld1_dupv2di): Likewise.
9737         (neon_vst1<mode>): Likewise.
9738         (neon_vst1_lane<mode>): Likewise.
9739         (neon_vst1_lane<mode>): Likewise.
9740         (neon_vld2<mode>): Likewise.
9741         (neon_vld2<mode>): Likewise.
9742         (neon_vld2_lane<mode>): Likewise.
9743         (neon_vld2_lane<mode>): Likewise.
9744         (neon_vld2_dup<mode>): Likewise.
9745         (neon_vst2<mode>): Likewise.
9746         (neon_vst2<mode>): Likewise.
9747         (neon_vst2_lane<mode>): Likewise.
9748         (neon_vst2_lane<mode>): Likewise.
9749         (neon_vld3<mode>): Likewise.
9750         (neon_vld3qa<mode>): Likewise.
9751         (neon_vld3qb<mode>): Likewise.
9752         (neon_vld3_lane<mode>): Likewise.
9753         (neon_vld3_lane<mode>): Likewise.
9754         (neon_vld3_dup<mode>): Likewise.
9755         (neon_vst3<mode>): Likewise.
9756         (neon_vst3qa<mode>): Likewise.
9757         (neon_vst3qb<mode>): Likewise.
9758         (neon_vst3_lane<mode>): Likewise.
9759         (neon_vst3_lane<mode>): Likewise.
9760         (neon_vld4<mode>): Likewise.
9761         (neon_vld4qa<mode>): Likewise.
9762         (neon_vld4qb<mode>): Likewise.
9763         (neon_vld4_lane<mode>): Likewise.
9764         (neon_vld4_lane<mode>): Likewise.
9765         (neon_vld4_dup<mode>): Likewise.
9766         (neon_vst4<mode>): Likewise.
9767         (neon_vst4qa<mode>): Likewise.
9768         (neon_vst4qb<mode>): Likewise.
9769         (neon_vst4_lane<mode>): Likewise.
9770         (neon_vst4_lane<mode>): Likewise.
9771         (neon_vec_unpack<US>_lo_<mode>): Likewise.
9772         (neon_vec_unpack<US>_hi_<mode>): Likewise.
9773         (neon_vec_<US>mult_lo_<mode>): Likewise.
9774         (neon_vec_<US>mult_hi_<mode>): Likewise.
9775         (neon_vec_<US>shiftl_<mode>): Likewise.
9776         (neon_unpack<US>_<mode>): Likewise.
9777         (neon_vec_<US>mult_<mode>): Likewise.
9778         (vec_pack_trunc_<mode>): Likewise.
9779         (neon_vec_pack_trunc_<mode>): Likewise.
9780         (neon_vabd<mode>_2): Likewise.
9781         (neon_vabd<mode>_3): Likewise.
9783 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9785         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
9786         (load_pair): Update type attribute.
9787         (store_pair): Update type attribute.
9788         * config/aarch64/iterators.md (q): New.
9790 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9792         * config/arm/types.md: Add new types for Neon insns.
9794 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9795             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9796             Sergey Lega  <sergey.s.lega@intel.com>
9797             Anna Tikhonova  <anna.tikhonova@intel.com>
9798             Ilya Tocar  <ilya.tocar@intel.com>
9799             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9800             Ilya Verbin  <ilya.verbin@intel.com>
9801             Kirill Yukhin  <kirill.yukhin@intel.com>
9802             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9804         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
9805         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
9806         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
9807         (rcp14<mode>): New.
9808         (srcp14<mode>): Ditto.
9809         (rsqrt14<mode>): Ditto.
9810         (rsqrt14<mode>): Ditto.
9811         (avx512f_vmscalef<mode>): Ditto.
9812         (avx512f_scalef<mode>): Ditto.
9813         (avx512f_getexp<mode>): Ditto.
9814         (avx512f_sgetexp<mode>): Ditto.
9815         (avx512f_fixupimm<mode>): Ditto.
9816         (avx512f_sfixupimm<mode>): Ditto.
9817         (avx512f_rndscale<mode>): Ditto.
9818         (*avx512er_exp2<mode>): Ditto.
9819         (*avx512er_rcp28<mode>): Ditto.
9820         (avx512er_rsqrt28<mode>): Ditto.
9821         (avx512f_getmant<mode>): Ditto.
9822         (avx512f_getmant<mode>): Ditto.
9823         (avx512f_rndscale<mode>): Fix formatting.
9825 2013-10-15  Martin Jambor  <mjambor@suse.cz>
9827         * ipa-utils.h (ipa_edge_within_scc): Declare.
9828         * ipa-cp.c (edge_within_scc): Moved...
9829         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
9831 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9832             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9833             Sergey Lega  <sergey.s.lega@intel.com>
9834             Anna Tikhonova  <anna.tikhonova@intel.com>
9835             Ilya Tocar  <ilya.tocar@intel.com>
9836             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9837             Ilya Verbin  <ilya.verbin@intel.com>
9838             Kirill Yukhin  <kirill.yukhin@intel.com>
9839             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9841         * config/i386/predicates.md (const_8_to_15_operand): New.
9842         (const_16_to_31_operand): Ditto.
9843         * config/i386/sse.md (V8FI): New.
9844         (V16FI): Ditto.
9845         (reduc_splus_v8df): Ditto.
9846         (reduc_splus_v16sf): Ditto.
9847         (avx512f_vextract<shuffletype>32x4_1): Ditto.
9848         (vec_extract_hi_<mode>): Ditto.
9849         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
9850         (vec_set_lo_<mode>): Ditto.
9851         (vec_set_hi_<mode>): Ditto.
9852         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
9853         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
9854         (avx512f_pshufd_1): Ditto.
9855         (avx512f_broadcast<mode>): Ditto.
9856         (avx512f_broadcast<mode>): Ditto.
9857         (define_split): Split vec_extract_lo into move.
9858         (ssequartermode): Ditto.
9859         (ssedoublemode): Extened with wider modes.
9860         (vec_extract_lo_<mode>): Ditto.
9862 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9863             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9864             Sergey Lega  <sergey.s.lega@intel.com>
9865             Anna Tikhonova  <anna.tikhonova@intel.com>
9866             Ilya Tocar  <ilya.tocar@intel.com>
9867             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9868             Ilya Verbin  <ilya.verbin@intel.com>
9869             Kirill Yukhin  <kirill.yukhin@intel.com>
9870             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9872         * config/i386/predicates.md (register_or_constm1_operand): New.
9873         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
9874         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
9875         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
9876         UNSPEC_SCATTER_PREFETCH
9877         (VI48_512): New.
9878         (avx512f_ucmp<mode>3): Ditto.
9879         (avx512f_vternlog<mode>): Ditto.
9880         (avx512f_align<mode>): Ditto.
9881         (<shift_insn><mode>3): Ditto.
9882         (avx512f_<rotate>v<mode>): Ditto.
9883         (avx512f_<rotate><mode>): Ditto.
9884         (avx512f_eq<mode>3): Ditto.
9885         (avx512f_eq<mode>3_1): Ditto.
9886         (avx512f_gt<mode>3): Ditto.
9887         (avx512f_testm<mode>3): Ditto.
9888         (avx512f_testnm<mode>3): Ditto.
9889         (avx512pf_gatherpf<mode>): Ditto.
9890         (*avx512pf_gatherpf<mode>_mask): Ditto.
9891         (*avx512pf_gatherpf<mode>): Ditto.
9892         (avx512pf_scatterpf<mode>): Ditto.
9893         (*avx512pf_scatterpf<mode>_mask): Ditto.
9894         (*avx512pf_scatterpf<mode>): Ditto.
9895         (avx512f_vec_dup_gpr<mode>): Ditto.
9896         (clz<mode>2): Ditto.
9897         (conflict<mode>): Ditto.
9898         (REDUC_SMINMAX_MODE): Extened with wider modes.
9899         (reduc_<code>_<mode>): Ditto.
9900         (vlshr<mode>3): Ditto.
9901         (vashl<mode>3): Ditto.
9903 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9904             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9905             Sergey Lega  <sergey.s.lega@intel.com>
9906             Anna Tikhonova  <anna.tikhonova@intel.com>
9907             Ilya Tocar  <ilya.tocar@intel.com>
9908             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9909             Ilya Verbin  <ilya.verbin@intel.com>
9910             Kirill Yukhin  <kirill.yukhin@intel.com>
9911             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9913         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
9914         UNSPEC_SCATTER.
9915         (VI48F_512): New.
9916         (avx512fmaskmode): Ditto.
9917         (bcstscalarsuff): Ditto.
9918         (avx512f_blendm<mode>): Ditto.
9919         (cmp_imm_predicate): Ditto.
9920         (avx512f_cmp<mode>3): Ditto.
9921         (avx512f_vec_dup<mode>): Ditto.
9922         (avx512f_vec_dup_mem<mode>): Ditto.
9923         (avx512f_vpermi2var<mode>3): Ditto.
9924         (avx512f_vpermt2var<mode>3): Ditto.
9925         (vec_init<mode>): Ditto.
9926         (avx512f_gathersi<mode>): Ditto.
9927         (*avx512f_gathersi<mode>): Ditto.
9928         (*avx512f_gathersi<mode>_2): Ditto.
9929         (avx512f_gatherdi<mode>): Ditto.
9930         (*avx512f_gatherdi<mode>): Ditto.
9931         (*avx512f_gatherdi<mode>_2): Ditto.
9932         (avx512f_scattersi<mode>): Ditto.
9933         (*avx512f_scattersi<mode>): Ditto.
9934         (avx512f_scatterdi<mode>): Ditto.
9935         (*avx512f_scatterdi<mode>): Ditto.
9936         (sseintprefix): Extened with wider modes.
9937         (VEC_GATHER_IDXSI): Ditto.
9938         (VEC_GATHER_IDXDI): Ditto.
9939         (VEC_GATHER_SRCDI): Ditto.
9941 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9942             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9944         * config/arm/t-aprofile: New file.
9945         * config.gcc: Handle --with-multilib-list option.
9947 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
9949         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
9950         the input for r2.
9952 2013-10-15  Richard Biener  <rguenther@suse.de>
9954         * tree-loop-distribution.c (build_empty_rdg): Inline into
9955         single user.
9956         (rdg_flag_vertex): Inline into single user.
9957         (rdg_flag_vertex_and_dependent): Likewise.
9958         (build_rdg_partition_for_vertex): Remove processed bitmap.
9959         (rdg_build_partitions): Simplify.
9961 2013-10-15  Richard Biener  <rguenther@suse.de>
9963         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9964         Restructure forwarding through conversions and copies to
9965         avoid performing copy-propagation the wrong way.  Adjust
9966         recursion invocations.
9967         (forward_propagate_addr_expr): Add argument stating if we
9968         are recursing from a single-use.
9969         (ssa_forward_propagate_and_combine): Adjust.
9971 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
9973         * dumpfile.h (gcc::dump_manager): New class, to hold state
9974         relating to dumpfile management.
9975         (get_dump_file_name): Remove in favor of method of dump_manager.
9976         (dump_initialized_p): Likewise.
9977         (dump_start): Likewise.
9978         (dump_finish): Likewise.
9979         (dump_switch_p): Likewise.
9980         (dump_register): Likewise.
9981         (get_dump_file_info): Likewise.
9982         * context.c (gcc::context::context): Construct the dump_manager
9983         instance.
9984         * context.h (gcc::context::get_dumps): New.
9985         (gcc::context::m_dumps): New.
9986         * coverage.c (coverage_init): Port to dump_manager API.
9987         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
9988         (extra_dump_files_in_use): Likewise.
9989         (extra_dump_files_alloced): Likewise.
9990         (gcc::dump_manager::dump_manager): New.
9991         (dump_register): Convert to...
9992         (gcc::dump_manager::dump_register): ...method, replacing
9993         function-static next_dump with m_next_dump field.
9994         (get_dump_file_info): Convert to...
9995         (gcc::dump_manager::get_dump_file_info): ...method.
9996         (get_dump_file_name): Convert to...
9997         (gcc::dump_manager::get_dump_file_name): ...method.
9998         (dump_start): Convert to...
9999         (gcc::dump_manager::dump_start): ...method.
10000         (dump_finish): Convert to...
10001         (gcc::dump_manager::dump_finish): ...method.
10002         (dump_begin): Replace body with...
10003         (gcc::dump_manager::dump_begin): ...new method.
10004         (dump_phase_enabled_p): Convert to...
10005         (gcc::dump_manager::dump_phase_enabled_p): ...method.
10006         (dump_phase_enabled_p): Convert to...
10007         (gcc::dump_manager::dump_phase_enabled_p): ...method.
10008         (dump_initialized_p):  Convert to...
10009         (gcc::dump_manager::dump_initialized_p): ...method.
10010         (dump_flag_name): Replace body with...
10011         (gcc::dump_manager::dump_flag_name): ...new method.
10012         (dump_enable_all): Convert to...
10013         (gcc::dump_manager::dump_enable_all): ...new method.
10014         (opt_info_enable_passes): Convert to...
10015         (gcc::dump_manager::opt_info_enable_passes): ...new method.
10016         (dump_switch_p_1): Convert to...
10017         (gcc::dump_manager::dump_switch_p_1): ...new method.
10018         (dump_switch_p):  Convert to...
10019         (gcc::dump_manager::dump_switch_p): ...new method.
10020         (opt_info_switch_p): Port to dump_manager API.
10021         (enable_rtl_dump_file): Likewise.
10022         * opts-global.c (handle_common_deferred_options): Port to new
10023         dump_manager API.
10024         * passes.c (pass_manager::finish_optimization_passes): Likewise.
10025         (pass_manager::register_one_dump_file): Likewise.
10026         (pass_manager::register_pass): Likewise.
10027         (pass_init_dump_file): Likewise.
10028         (pass_fini_dump_file): Likewise.
10029         * statistics.c (statistics_early_init): Likewise.
10031 2013-10-14  Richard Biener  <rguenther@suse.de>
10033         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
10034         iterative_hash_canonical_type, gimple_canonical_type_hash,
10035         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
10036         gimple_register_canonical_type, print_gimple_types_stats,
10037         free_gimple_type_tables): Move to lto/lto.c
10038         (gt-gimple.h): Do not include.
10039         * gimple.h (gimple_register_canonical_type,
10040         print_gimple_types_stats, free_gimple_type_tables): Remove.
10041         * Makefile.in (GTFILES): Remove gimple.c.
10043 2013-10-14  Travis Snoozy  <quandary@remstate.com>
10045         PR target/58716
10046         * config/msp430/msp430.c (msp430_option_override): Correct thinko
10047         scanning for msp430x targets.
10049 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
10051         PR bootstrap/58509
10052         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
10053         (registers_ok_for_ldd_peep): Move around.
10054         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
10055         * config/sparc/sparc.md (widening peepholes): Use it.
10057 2013-10-14  Richard Biener  <rguenther@suse.de>
10059         PR middle-end/58712
10060         PR middle-end/55358
10061         * gimple.c (iterative_hash_canonical_type): Make sure to
10062         record the hash into the correct hashtable slot.
10064 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
10066         PR rtl-optimization/58662
10067         * combine.c (try_combine): Take into account death nodes on I2 when
10068         splitting a PARALLEL of two independent SETs.  Fix dump message.
10070 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
10072         PR target/51244
10073         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
10074         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
10075         extra_objs.
10076         * config/sh/t-sh (sh_treg_combine.o): New entry.
10077         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
10078         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
10079         (register_sh_passes): New function.  Register sh_treg_combine pass.
10080         (sh_option_override): Invoke it.
10081         (sh_canonicalize_comparison): Handle op0_preserve_value.
10082         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
10083         opportunities.  Canonicalize branch condition.
10084         (nott): Allow only if pseudos can be created for non-SH2A.
10086 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10088         PR target/58690
10089         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
10090         (ix86_expand_movmem): Replace copy_addr_to_reg with
10091         ix86_copy_addr_to_reg.
10092         (ix86_expand_setmem): Likewise.
10094 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
10096         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
10097         provided by ix86_fp_compare_mode instead of CCFPUmode.
10099 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
10101         * config/aarch64/arm_neon.h
10102         (vtbx<1,3>_<psu>8): Fix register constriants.
10104 2013-10-11  Jeff Law  <law@redhat.com>
10106         PR tree-optimization/58640
10107         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
10108         threading paths that cross over two loop entry points.
10110 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10112         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
10113         handle vector float as well.
10114         (*vsx_le_perm_load_v4si): Likewise.
10115         (*vsx_le_perm_store_v2di): Likewise.
10116         (*vsx_le_perm_store_v4si): Likewise.
10118 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10120         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
10121         directly to circumvent subtract from splat{31} workaround.
10122         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
10123         prototype.
10124         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
10125         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
10126         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
10127         (altivec_vperm_<mode>): Convert to define_insn_and_split to
10128         separate big and little endian logic.
10129         (*altivec_vperm_<mode>_internal): New define_insn.
10130         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
10131         separate big and little endian logic.
10132         (*altivec_vperm_<mode>_uns_internal): New define_insn.
10133         (vec_permv16qi): Add little endian logic.
10135 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
10137         * doc/extend.texi (returns_nonnull): Remove arguments.
10139 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10140             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10141             Sergey Lega  <sergey.s.lega@intel.com>
10142             Anna Tikhonova  <anna.tikhonova@intel.com>
10143             Ilya Tocar  <ilya.tocar@intel.com>
10144             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10145             Ilya Verbin  <ilya.verbin@intel.com>
10146             Kirill Yukhin  <kirill.yukhin@intel.com>
10147             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10149         * config/i386/sse.md (VI48F_256_512): New.
10150         (avx2_permvar<mode>): Change to ...
10151         (<avx2_avx512f>_permvar<mode>): This.
10153 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10154             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10155             Sergey Lega  <sergey.s.lega@intel.com>
10156             Anna Tikhonova  <anna.tikhonova@intel.com>
10157             Ilya Tocar  <ilya.tocar@intel.com>
10158             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10159             Ilya Verbin  <ilya.verbin@intel.com>
10160             Kirill Yukhin  <kirill.yukhin@intel.com>
10161             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10163         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
10164         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
10165         * config/i386/sse.md (VI4_AVX): New.
10166         (sf2simodelower): Ditto.
10167         (sse2_cvtps2dq): Change to ...
10168         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
10170 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10171             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10172             Sergey Lega  <sergey.s.lega@intel.com>
10173             Anna Tikhonova  <anna.tikhonova@intel.com>
10174             Ilya Tocar  <ilya.tocar@intel.com>
10175             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10176             Ilya Verbin  <ilya.verbin@intel.com>
10177             Kirill Yukhin  <kirill.yukhin@intel.com>
10178             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10180         * config/i386/sse.md (V_512): New.
10181         (VI_512): Ditto.
10182         (vcond<V_512:mode><VF_512:mode>): Ditto.
10183         (vcond<V_512:mode><VI_512:mode>): Ditto.
10184         (vcondu<V_512:mode><VI_512:mode>): Ditto.
10186 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10187             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10188             Sergey Lega  <sergey.s.lega@intel.com>
10189             Anna Tikhonova  <anna.tikhonova@intel.com>
10190             Ilya Tocar  <ilya.tocar@intel.com>
10191             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10192             Ilya Verbin  <ilya.verbin@intel.com>
10193             Kirill Yukhin  <kirill.yukhin@intel.com>
10194             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10196         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
10197         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
10198         (FMAMODE): Ditto.
10199         (fma<mode>4): Removed condition.
10200         (fms<mode>4): Ditto.
10201         (fnma<mode>4): Ditto.
10202         (fnms<mode>4): Ditto.
10203         (fma4i_fmadd_<mode>): Ditto.
10204         (*fma_fmadd_<mode>): Ditto.
10205         (*fma_fmsub_<mode>): Ditto.
10206         (*fma_fnmadd_<mode>): Ditto.
10207         (*fma_fnmsub_<mode>): Ditto.
10208         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
10209         (*fma_fmaddsub_<mode>): Ditto.
10210         (*fma_fmsubadd_<mode>): Ditto.
10211         (*fmai_fmadd_<mode>): Ditto.
10212         (*fmai_fmsub_<mode>): Ditto.
10213         (*fmai_fnmadd_<mode>): Ditto.
10214         (*fmai_fnmsub_<mode>): Ditto.
10216 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10217             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10218             Sergey Lega  <sergey.s.lega@intel.com>
10219             Anna Tikhonova  <anna.tikhonova@intel.com>
10220             Ilya Tocar  <ilya.tocar@intel.com>
10221             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10222             Ilya Verbin  <ilya.verbin@intel.com>
10223             Kirill Yukhin  <kirill.yukhin@intel.com>
10224             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10226         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
10227         (VI124_256): Changed to ...
10228         (VI124_256_48_512): This.
10229         (ssepackmode): Extended with wider modes.
10230         (<code><mode>3): Changed iterator.
10231         (*avx2_<code><mode>3): Ditto.
10232         (vec_pack_trunc_<mode>): Ditto.
10234 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10235             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10236             Sergey Lega  <sergey.s.lega@intel.com>
10237             Anna Tikhonova  <anna.tikhonova@intel.com>
10238             Ilya Tocar  <ilya.tocar@intel.com>
10239             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10240             Ilya Verbin  <ilya.verbin@intel.com>
10241             Kirill Yukhin  <kirill.yukhin@intel.com>
10242             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10244         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
10245         (VI8F_256_512): Ditto.
10246         (abs<mode>2): Changed iterator.
10247         (avx2_perm<mode>): Changed to ...
10248         (<avx2_avx512f>_perm<mode>): This.
10249         (avx2_perm<mode>_1): Changed to ...
10250         (<avx2_avx512f>_perm<mode>_1): This.
10252 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10253             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10254             Sergey Lega  <sergey.s.lega@intel.com>
10255             Anna Tikhonova  <anna.tikhonova@intel.com>
10256             Ilya Tocar  <ilya.tocar@intel.com>
10257             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10258             Ilya Verbin  <ilya.verbin@intel.com>
10259             Kirill Yukhin  <kirill.yukhin@intel.com>
10260             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10262         * config/i386/sse.md (VI48_AVX512F): New.
10263         (VI48_AVX2): Changed to ...
10264         (VI48_AVX2_48_AVX512F): This.
10265         (avx2_ashrv<mode>): Changed to ...
10266         (<avx2_avx512f>_ashrv<mode>): This.
10267         (avx2_<shift_insn>v<mode>): Changed to ...
10268         (<avx2_avx512f>_<shift_insn>v<mode>): This.
10270 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10271             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10272             Sergey Lega  <sergey.s.lega@intel.com>
10273             Anna Tikhonova  <anna.tikhonova@intel.com>
10274             Ilya Tocar  <ilya.tocar@intel.com>
10275             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10276             Ilya Verbin  <ilya.verbin@intel.com>
10277             Kirill Yukhin  <kirill.yukhin@intel.com>
10278             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10280         * config/i386/sse.md (VI4_AVX512F): New.
10281         (VI8_AVX2_AVX512F): Ditto.
10282         (mul<mode>3): Extended with wider modes.
10283         (*<sse4_1_avx2>_mul<mode>3): Ditto.
10284         (mul<mode>3): Ditto.
10285         (vec_widen_<s>mult_odd_<mode>): Ditto.
10287 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10288             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10289             Sergey Lega  <sergey.s.lega@intel.com>
10290             Anna Tikhonova  <anna.tikhonova@intel.com>
10291             Ilya Tocar  <ilya.tocar@intel.com>
10292             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10293             Ilya Verbin  <ilya.verbin@intel.com>
10294             Kirill Yukhin  <kirill.yukhin@intel.com>
10295             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10297         * config/i386/sse.md (VI2_AVX512F): New.
10298         (VI124_AVX512F): Ditto.
10299         (sseunpackmode): Extended with wider modes.
10300         (sseunpackfltmode): Ditto.
10301         (vec_unpacks_float_hi_<mode>): Ditto.
10302         (vec_unpacks_float_lo_<mode>): Ditto.
10303         (vec_unpacku_float_hi_<mode>): Ditto.
10304         (vec_unpacku_float_lo_<mode>): Ditto.
10305         (vec_unpacks_lo_<mode>): Ditto.
10306         (vec_unpacks_hi_<mode>): Ditto.
10307         (vec_unpacku_lo_<mode>): Ditto.
10308         (vec_unpacku_hi_<mode>): Ditto.
10310 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10311             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10312             Sergey Lega  <sergey.s.lega@intel.com>
10313             Anna Tikhonova  <anna.tikhonova@intel.com>
10314             Ilya Tocar  <ilya.tocar@intel.com>
10315             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10316             Ilya Verbin  <ilya.verbin@intel.com>
10317             Kirill Yukhin  <kirill.yukhin@intel.com>
10318             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10320         * config/i386/i386.md (multdiv): New.
10321         (multdiv_mnemonic): Ditto.
10322         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
10323         (<sse>_vm<multdiv_mnemonic><mode>3): This.
10324         (<sse>_vmdiv<mode>3): Removed.
10326 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10327             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10328             Sergey Lega  <sergey.s.lega@intel.com>
10329             Anna Tikhonova  <anna.tikhonova@intel.com>
10330             Ilya Tocar  <ilya.tocar@intel.com>
10331             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10332             Ilya Verbin  <ilya.verbin@intel.com>
10333             Kirill Yukhin  <kirill.yukhin@intel.com>
10334             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10336         * config/i386/sse.md (V): Extended with wider modes.
10337         (VF2): Ditto.
10338         (ssehalfvecmode): Ditto.
10339         (i128): Ditto.
10340         (ssepackfltmode): Ditto.
10341         (avx_vec_concat<mode>): Ditto.
10342         (V_256_512): New iterator.
10343         (VF2_512_256): Ditto.
10344         (si2dfmode): New attribute.
10345         (si2dfmodelower): Ditto.
10346         (sf2dfmode): Ditto.
10347         (concat_tg_mode): Ditto.
10348         (floatv4siv4df2): Changed to ...
10349         (float<si2dfmodelower><mode>2): This.
10350         (avx_cvtps2pd256): Changed to ...
10351         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
10352         (vec_pack_trunc_v4df): Changed to ...
10353         (vec_pack_trunc_<mode>): This.
10354         (avx_vpermil<mode>): Changed to ...
10355         (<sse2_avx_avx512f>_vpermil<mode>): This.
10356         (<fixsuffix>fix_truncv8dfv8si2): New.
10357         (vec_pack_sfix_trunc_v8df): Ditto.
10358         (avx512f_rndscale<mode>): Ditto.
10359         (avx512f_roundpd512): Ditto.
10360         (vec_pack_ufix_trunc_<mode>): Updated iterator.
10362 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10363             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10364             Sergey Lega  <sergey.s.lega@intel.com>
10365             Anna Tikhonova  <anna.tikhonova@intel.com>
10366             Ilya Tocar  <ilya.tocar@intel.com>
10367             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10368             Ilya Verbin  <ilya.verbin@intel.com>
10369             Kirill Yukhin  <kirill.yukhin@intel.com>
10370             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10372         * config/i386/i386.md (any_fix): New iterator.
10373         (fixsuffix): New attribute.
10374         * config/i386/sse.md (VF1): Extened with wider modes.
10375         (VI): Ditto.
10376         (VI_AVX2): Ditto.
10377         (VI8): Ditto.
10378         (sseintvecmodelower): Ditto.
10379         (ssescalarmode): Ditto.
10380         (ssescalarnum): Ditto.
10381         (VF1_128_256): New.
10382         (ssexmmmode): Ditto.
10383         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
10384         (<sse>_rcp<mode>2): Change iterator.
10385         (rsqrt<mode>2): Ditto.
10386         (<sse>_rsqrt<mode>2): Ditto.
10387         (avx2_vec_dup<mode>): Ditto.
10388         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
10389         (round<mode>2_sfix): Ditto.
10390         (avx2_pbroadcast<mode>): Ditto.
10391         (*andnot<mode>3): Handle XI mode.
10392         (*<code><mode>3): Ditto.
10393         (AVXTOSSEMODE): Removed.
10394         (avx_vpermil<mode>): Changed to ...
10395         (<sse2_avx_avx512f>_vpermil<mode>): This.
10397 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10398             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10399             Sergey Lega  <sergey.s.lega@intel.com>
10400             Anna Tikhonova  <anna.tikhonova@intel.com>
10401             Ilya Tocar  <ilya.tocar@intel.com>
10402             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10403             Ilya Verbin  <ilya.verbin@intel.com>
10404             Kirill Yukhin  <kirill.yukhin@intel.com>
10405             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10407         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
10408         (<sse>_comi): Ditto.
10409         (<sse>_ucomi): Ditto.
10410         (sse_cvtss2siq_2): Ditto.
10411         (sse2_cvtsd2si): Ditto.
10412         (sse2_cvtsd2siq): Ditto.
10413         (sse2_cvttsd2si): Ditto.
10414         (sse2_cvttsd2siq): Ditto.
10415         (<shift_insn><mode>3): Ditto.
10416         (sse2_cvtsi2sdq): Update constraint and prefix.
10417         (sse_cvtsi2ss): Update prefix.
10418         (sse_cvtsi2ssq): Ditto.
10420 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
10422         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
10423         ignore internal calls.
10425 2013-10-11  Richard Biener  <rguenther@suse.de>
10427         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
10428         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
10429         TREE_OVERFLOW is set.
10431 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
10433         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
10435         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
10436         * gimple.h: Likewise.
10438         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
10440         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
10441         macros.
10443         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
10445         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
10446         * configure: Regenerate.
10448 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
10450         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
10451         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
10452         formatting fixes, use pp_colon instead of pp_character (..., ':'),
10453         similarly pp_right_paren.
10454         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
10455         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
10456         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
10457         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
10458         clauses.
10459         (omp_declare_simd_clauses_equal,
10460         omp_remove_redundant_declare_simd_attrs): New functions.
10461         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
10462         (walk_tree_1): Handle new OpenMP 4.0 clauses.
10463         * tree.h (OMP_LOOP_CHECK): Define.
10464         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10465         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
10466         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
10467         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
10468         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
10469         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
10470         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
10471         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
10472         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
10473         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
10474         OMP_CLAUSE_SIMDLEN_EXPR): Define.
10475         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
10476         (omp_remove_redundant_declare_simd_attrs): New prototype.
10477         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
10478         GIMPLE_OMP_TEAMS): New codes.
10479         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
10480         * omp-low.c (struct omp_context): Add cancel_label and cancellable
10481         fields.
10482         (target_nesting_level): New variable.
10483         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
10484         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
10485         for collapse > 1 static schedule unless ordered.
10486         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
10487         (determine_parallel_type): Adjust get_ws_args_for caller.
10488         (install_var_field): Handle mask & 4 for double indirection.
10489         (scan_sharing_clauses): Ignore shared clause on teams construct.
10490         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
10491         (create_omp_child_function): If inside target or declare target
10492         constructs, set "omp declare target" attribute on the child function.
10493         (find_combined_for): New function.
10494         (scan_omp_parallel): Handle combined loops.
10495         (scan_omp_target, scan_omp_teams): New functions.
10496         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
10497         restrictions and set ctx->cancellable for cancellable constructs.
10498         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
10499         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
10500         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
10501         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
10502         (omp_clause_aligned_alignment): New function.
10503         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
10504         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
10505         on teams constructs.  Handle user defined reductions and new
10506         OpenMP 4.0 clauses.
10507         (lower_reduction_clauses): Don't set placeholder to address of ref
10508         if it has already the right type.
10509         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
10510         (expand_parallel_call): Use the new non-_start suffixed builtins,
10511         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
10512         and GOMP_parallel_end after the call.
10513         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
10514         (expand_omp_for_init_counts): Handle combined loops.
10515         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
10516         loops.
10517         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
10518         end of cancellable loops.
10519         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
10520         Likewise.  Handle collapse > 1 loops.
10521         (expand_omp_simd): Handle combined loops.
10522         (expand_omp_for): Add inner_stmt argument, adjust callers of
10523         expand_omp_for* functions, use expand_omp_for_static*chunk even
10524         for collapse > 1 unless ordered.
10525         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
10526         of cancellable sections.
10527         (expand_omp_single): Remove need_barrier variable, just rely on
10528         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
10529         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
10530         (expand_omp_atomic_load, expand_omp_atomic_store,
10531         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
10532         (expand_omp_target): New function.
10533         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
10534         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
10535         (build_omp_regions_1): Immediately close region for
10536         GF_OMP_TARGET_KIND_UPDATE.
10537         (maybe_add_implicit_barrier_cancel): New function.
10538         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
10539         cancellation.
10540         (lower_omp_single): Likewise.  Add clobber after the barrier.
10541         (lower_omp_taskgroup): New function.
10542         (lower_omp_for): Handle combined loops.  Adjust
10543         lower_rec_input_clauses caller.  Handle cancellation.
10544         (lower_depend_clauses): New function.
10545         (lower_omp_taskreg): Lower depend clauses.  Adjust
10546         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
10547         cancellation.
10548         (lower_omp_target, lower_omp_teams): New functions.
10549         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
10550         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
10551         and GOMP_cancellation_point calls.
10552         (lower_omp): Fold stmts inside of target region.
10553         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
10554         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
10555         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
10556         (BT_FN_VOID_OMPFN_PTR_UINT,
10557         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
10558         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
10559         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
10560         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
10561         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
10562         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
10563         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
10564         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10565         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10566         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
10567         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10568         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
10569         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
10570         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
10571         BUILT_IN_GOMP_PARALLEL_END.
10572         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
10573         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
10574         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
10575         GF_OMP_FOR_KIND_DISTRIBUTE.
10576         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
10577         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
10578         (dump_gimple_omp_return): Print lhs if it has any.
10579         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
10580         gimple_omp_atomic_seq_cst_p.
10581         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
10582         and GIMPLE_OMP_TEAMS.
10583         * langhooks.c (lhd_omp_mappable_type): New function.
10584         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
10585         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
10586         hook.
10587         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
10588         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
10589         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
10590         (struct gimplify_omp_ctx): Add combined_loop field.
10591         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
10592         on stmts inside of target region.
10593         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
10594         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
10595         ORT_TARGET and ORT_TARGET_DATA.
10596         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
10597         Handle GOVD_MAP.
10598         (omp_notice_threadprivate_variable): Complain about threadprivate
10599         variables in target region.
10600         (omp_notice_variable): Complain about vars with non-mappable type
10601         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
10602         (omp_check_private): Ignore ORT_TARGET* regions.
10603         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
10604         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
10605         (find_combined_omp_for): New function.
10606         (gimplify_omp_for): Handle gimplification of combined loops.
10607         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
10608         OMP_TEAMS.
10609         (gimplify_omp_target_update): New function.
10610         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
10611         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
10612         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
10613         (gimplify_body): If fndecl has "omp declare target" attribute, add
10614         implicit ORT_TARGET context around it.
10615         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
10616         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
10617         * tree-nested.c (convert_nonlocal_reference_stmt,
10618         convert_local_reference_stmt, convert_gimple_call): Handle
10619         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10620         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
10621         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
10622         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
10623         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
10624         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
10625         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
10626         BUILT_IN_GOMP_LOOP_END_CANCEL,
10627         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
10628         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
10629         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
10630         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
10631         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
10632         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
10633         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
10634         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
10635         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
10636         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
10637         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
10638         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
10639         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
10640         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
10641         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
10642         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10643         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
10644         gimple_build_omp_teams): New functions.
10645         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
10646         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
10647         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
10648         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10649         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
10650         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
10651         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
10652         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
10653         GF_OMP_ATOMIC_SEQ_CST): New.
10654         (gimple_build_omp_taskgroup, gimple_build_omp_target,
10655         gimple_build_omp_teams): New prototypes.
10656         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
10657         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10658         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
10659         GIMPLE_OMP_SINGLE as end of range.
10660         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
10661         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
10662         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
10663         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
10664         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
10665         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
10666         gimple_omp_target_kind, gimple_omp_target_set_kind,
10667         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
10668         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
10669         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
10670         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
10671         gimple_omp_teams_set_clauses): New inlines.
10672         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
10673         and GIMPLE_OMP_TASKGROUP.
10674         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
10675         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
10676         enum omp_clause_proc_bind_kind): New.
10677         (union omp_clause_subcode): Add depend_kind, map_kind and
10678         proc_bind_kind fields.
10679         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
10680         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10681         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
10682         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
10683         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10685 2013-10-10  Teresa Johnson  <tejohnson@google.com>
10687         * predict.c (tree_estimate_probability): Add new parameter
10688         for estimate_bb_frequencies.
10689         (estimate_bb_frequencies): Add new parameter to force estimation.
10690         (rebuild_frequencies): When max frequency in function is small,
10691         recompute counts from frequencies.
10692         * predict.h (estimate_bb_frequencies): New parameter.
10694 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
10696         * ipa-inline.c (ipa_inline): Fix leak of "order" when
10697         optimizations are disabled.
10699 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
10701         * coverage.c (coverage_finish): Fix leak of da_file_name.
10703 2013-10-10  Jan Hubicka  <jh@suse.cz>
10705         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
10706         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
10707         Bobcat and generic.
10709 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
10711         PR middle-end/58670
10712         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
10713         if any labels are in FALLTHRU_BB, use a special label emitted
10714         immediately after the asm goto insn rather than label_rtx
10715         of the LABEL_DECL.
10716         (expand_asm_stmt): Adjust caller.
10717         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
10718         edge if the last insn in predecessor is a jump with single successor,
10719         but it isn't simplejump_p.
10721 2013-10-10  Richard Biener  <rguenther@suse.de>
10723         PR tree-optimization/58656
10724         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
10726 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
10728         * gimplify.c: Include expr.h and tm_p.h for targets with special
10729         va-arg padding requirements.
10731 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
10733         * tree-flow.h: Move some prototypes to gimple.h.
10734         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
10735         * gimple.h: Relocate some prototypes from tree-flow.h
10736         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
10737         Move to gimplify.c.
10738         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
10739         (build_va_arg_indirect_ref): Relocate and make static.
10740         (std_gimplify_va_arg_expr): Relocate here.
10741         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
10742         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
10744 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10746         * doc/md.texi: Document the mnemonic attribute.
10748 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10750         PR target/57377
10751         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
10752         (set_attr_alternative x ...) when searching for user defined
10753         mnemonic attribute.
10755 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
10757         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
10759 2013-10-09  Easwaran Raman <eraman@google.com>
10761         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
10762         * cfgexpand.c (defer_stack_allocation): ...use here
10763         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
10765 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10767         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
10768         (operand_equal_for_value_replacement): New function, extracted from
10769         value_replacement and enhanced to catch more cases.
10770         (value_replacement): Use operand_equal_for_value_replacement.
10772 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10774         * loop-doloop.c (doloop_modify, doloop_optimize): Use
10775         get_max_loop_iterations.
10777 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10779         * config/arm/aarch-common.c (arm_early_load_addr_dep):
10780         Place comment above function.
10782 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10784         * tree-flow.h: Remove all remaining prototypes, enums and structs that
10785         are not related to tree-cfg.c.
10786         * tree-ssa-address.h: New file.  Relocate prototypes.
10787         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
10788         (addr_for_mem_ref): New.  Combine call to get_address_description and
10789         return addr_for_mem_ref.
10790         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
10791         * tree-ssa-live.h: Adjust prototypes.
10792         * passes.c: Include tree-ssa-live.h.
10793         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
10794         * graphite.c (graphite_transform_loops): Make static.
10795         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10796         make_pass_graphite, pass_data_graphite_transforms,
10797         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
10798         * ipa-pure-const.c (warn_function_noreturn): Make static.
10799         (execute_warn_function_noreturn, gate_warn_function_noreturn,
10800         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10801         Relocate from tree-cfg.c
10802         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
10803         static.
10804         (execute_warn_function_noreturn, gate_warn_function_noreturn,
10805         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10806         Move to ipa-pure-const.c.
10807         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
10808         Relocate from tree-optimize.c.
10809         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
10810         make_pass_fixup_cfg): Move to tree-cfg.c.
10811         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
10812         Relocate some prototypes.
10813         * tree-data-ref.h (tree_check_data_deps) Add prototype.
10814         * tree-dump.c (dump_function_to_file): Remove prototype.
10815         Add tree-flow.h to the include file.
10816         * tree-dump.h: Remove prototype.
10817         * tree-parloops.h: New File.  Add prototypes.
10818         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
10819         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
10820         from tree-ssa-loop.c.
10821         * tree-predcom.c (run_tree_predictive_commoning,
10822         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
10823         Relocate here from tree-ssa-loop.c.
10824         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
10825         ssa_name_values.release ().
10826         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
10827         (ssa_name_values): Relocate from tree-flow.h.
10828         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
10829         * tree-ssa-loop.c (run_tree_predictive_commoning,
10830         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
10831         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10832         make_pass_graphite, pass_data_graphite_transforms,
10833         make_pass_graphite_transforms, gate_tree_parallelize_loops,
10834         tree_parallelize_loops, pass_data_parallelize_loops,
10835         make_pass_parallelize_loops): Move to other files.
10836         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
10837         moved here.
10838         * tree.h: Remove prototypes from tree-address.c.
10840 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10842         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
10843         (struct int_tree_map): Move to tree-hasher.h
10844         (SCALE, LABEL, PERCENT): Move to gimple.h
10845         * tree-flow-inline.h: Delete.  Move functions to other files.
10846         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
10847         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
10848         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
10849         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
10850         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
10851         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
10852         * tree-hasher.h: Don't include tree-flow.h.
10853         (struct int_tree_map): Relocate from tree-flow.h.
10854         * tree-sra.c (contains_view_convert_expr_p): Relocate from
10855         tree-flow-inline.h and make static.
10856         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
10857         tree-flow-inline.h.
10858         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
10859         tree-flow-inline.h and make static.
10860         * tree.h (is_global_var, may_be_aliased): Relocate from
10861         tree-flow-inline.h.
10862         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
10863         * value-prof.c: No longer include tree-flow-inline.h.
10864         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
10866 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10868         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
10869         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
10870         (enum move_pos): Move to tree-ssa-loop-im.h
10871         * cfgloop.h: Move some prototypes.
10872         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
10873         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
10874         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
10875         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
10876         (loop_containing_stmt): Relocate from tree-flow-inline.h.
10877         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
10878         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
10879         (enum move_pos): Relocate here.
10880         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
10881         tree-ssa-loop.c.
10882         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
10883         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
10884         make_pass_lim): Relocate here from tree-ssa-loop.c.
10885         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
10886         tree-ssa-loop.c.
10887         (loop_edge_to_cancel, unloop_loops): Make static.
10888         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10889         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
10890         (tree_complete_unroll, gate_tree_complete_unroll,
10891         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
10892         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10893         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
10894         * tree-ssa-loop-ivopts.c: Remove local prototypes.
10895         (stmt_invariant_in_loop_p): Remove unused function.
10896         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
10897         * tree-ssa-loop-manip.h: New file.  Add prototypes.
10898         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
10899         (gcov_type_to_double_int): Move to cfgloop.h.
10900         (double_int_cmp, bound_index,
10901         estimate_numbers_of_iterations_loop): Make static.
10902         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
10903         (max_loop_iterations): Factor out get_max_loop_iterations.
10904         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
10905         cfgloop.c.
10906         * tree-ssa-loop-niter.h: New file.  Add prototypes.
10907         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
10908         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
10909         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
10910         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
10911         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
10912         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
10913         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
10914         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
10915         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
10916         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
10917         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10918         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
10919         pass_data_complete_unroll, make_pass_complete_unroll,
10920         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10921         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
10922         tree-ssa-loop-ivcanon.c.
10923         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
10924         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
10925         tree-ssa-loop-prefetch.c.
10926         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
10927         tree-ssa-loop-im.c.
10928         (get_lsm_tmp_name): Relocate and add suffix parameter.
10929         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
10930         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
10931         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
10932         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
10933         (get_estimated_loop_iterations): Factor out accessor from
10934         estimated_loop_iterations in tree-ssa-loop-niter.c.
10935         (get_max_loop_iterations): Factor out accessor from
10936         _max_loop_iterations in tree-ssa-niter.c.
10937         * loop-unroll.c (decide_unroll_constant_iterations,
10938         decide_unroll_runtime_iterations, decide_peel_simple,
10939         decide_unroll_stupid): Use new get_* accessors.
10941 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
10943         PR tree-optimization/20318
10944         * doc/extend.texi (returns_nonnull): New function attribute.
10945         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
10946         attribute.
10947         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
10948         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
10950 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
10952         PR middle-end/58570
10953         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
10954         false if both components are bitfields.
10956 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10958         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
10959         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
10960         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
10961         * config/aarch64/aarch64.h
10962         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
10963         * config/aarch64/aarch64-simd-builtins.def
10964         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
10966 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10968         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
10970 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10972         * config/aarch64/arm_neon.h (vdiv_f64): Added.
10974 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10976         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
10977         (vneg_f64): New intrinsic.
10978         (vneg_s8): Asm replaced with C.
10979         (vneg_s16): Likewise.
10980         (vneg_s32): Likewise.
10981         (vneg_s64): New intrinsic.
10982         (vnegq_f32): Asm replaced with C.
10983         (vnegq_f64): Likewise.
10984         (vnegq_s8): Likewise.
10985         (vnegq_s16): Likewise.
10986         (vnegq_s32): Likewise.
10987         (vnegq_s64): Likewise.
10989 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
10991         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
10993 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10995         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
10996         packed stack special handling.
10997         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
10998         back to fixed stack slots for FPRs saved due to stdarg.
11000 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11002         * config/s390/s390.c (s390_frame_info): Restructure function.
11004 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11006         * config/s390/s390.c (struct s390_frame_layout): New field
11007         gpr_save_slots.
11008         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
11009         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
11010         regs_ever_clobbered to char*.
11011         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
11012         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
11013         (s390_register_info): Enable FPR save slots.  Move/Copy some
11014         functionality into ...
11015         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
11016         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
11017         function.
11018         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
11019         not imply a stack frame.
11020         (s390_init_frame_layout): Remove variable clobbered_regs.
11021         (s390_update_register_info): Remove function.
11022         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
11023         cannot be used for register renaming.
11024         (s390_hard_regno_scratch_ok): New function.
11025         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
11026         (s390_initial_elimination_offset): Change offset calculation of
11027         the return address pointer.
11028         (save_gprs): Deal with only r6 being saved from the call-saved regs.
11029         (restore_gprs): Set frame related flag.
11030         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
11031         (s390_emit_prologue): Call s390_register_info instead of
11032         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
11033         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
11034         (s390_optimize_prologue): Call s390_optimize_register_info.
11035         Try to remove also FPR slot save/restore INSNs.  Remove frame
11036         related flags from restore INSNs.
11038 2013-10-08  DJ Delorie  <dj@redhat.com>
11040         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
11041         (movhi): Likewise.
11043         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
11044         avoid conflict with the MI use of %c.
11045         * config/rl78/rl78-real.md: change %c to %C throughout.
11046         * config/rl78/rl78-virt.md: Likewise.
11048 2013-10-08  Jan Hubicka  <jh@suse.cz>
11050         * config/i386/i386.c (ix86_option_override_internal): Switch
11051         to SSE math for -ffast-math when target ISA supports SSE2.
11053 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
11055         * tree-flow.h: Remove some prototypes.
11056         * tree.h: Remove some protypes, add a couple.
11057         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
11058         using_eh_for_cleanups_p): Add interface routines for front ends.
11059         * tree-eh.h: New file.  Add protoptyes.
11060         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
11061         (add_stmt_to_eh_lp_fn): Make static.
11062         (lower_try_finally): Use new using_eh_for_cleanups_p.
11063         * emit-rtl.c: Include tree-eh.h.
11064         * gimple.h: Include tree-eh.h.
11066 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
11068         PR tree-optimization/58480
11069         * tree-vrp.c (infer_nonnull_range): New function.
11070         (infer_value_range): Call infer_nonnull_range.
11072 2013-10-08  Dehao Chen  <dehao@google.com>
11074         PR tree-optimization/58619
11075         * tree-inline.c (copy_phis_for_bb): Combine location data
11076         only if non-null.
11078 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11080         PR target/58423
11081         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
11082         RTX_FRAME_RELATED_P on INSN.
11084 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11086         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
11087         (altivec_expand_vec_perm_const): Call it.
11089 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11091         * config/rs6000/vector.md (mov<mode>): Emit permuted move
11092         sequences for LE VSX loads and stores at expand time.
11093         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
11094         prototype.
11095         * config/rs6000/rs6000.c (rs6000_const_vec): New.
11096         (rs6000_gen_le_vsx_permute): New.
11097         (rs6000_gen_le_vsx_load): New.
11098         (rs6000_gen_le_vsx_store): New.
11099         (rs6000_gen_le_vsx_move): New.
11100         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
11101         (*vsx_le_perm_load_v4si): New.
11102         (*vsx_le_perm_load_v8hi): New.
11103         (*vsx_le_perm_load_v16qi): New.
11104         (*vsx_le_perm_store_v2di): New.
11105         (*vsx_le_perm_store_v4si): New.
11106         (*vsx_le_perm_store_v8hi): New.
11107         (*vsx_le_perm_store_v16qi): New.
11108         (*vsx_xxpermdi2_le_<mode>): New.
11109         (*vsx_xxpermdi4_le_<mode>): New.
11110         (*vsx_xxpermdi8_le_V8HI): New.
11111         (*vsx_xxpermdi16_le_V16QI): New.
11112         (*vsx_lxvd2x2_le_<mode>): New.
11113         (*vsx_lxvd2x4_le_<mode>): New.
11114         (*vsx_lxvd2x8_le_V8HI): New.
11115         (*vsx_lxvd2x16_le_V16QI): New.
11116         (*vsx_stxvd2x2_le_<mode>): New.
11117         (*vsx_stxvd2x4_le_<mode>): New.
11118         (*vsx_stxvd2x8_le_V8HI): New.
11119         (*vsx_stxvd2x16_le_V16QI): New.
11121 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
11123         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
11125 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11127         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
11128         loop to work also for 31bit ABI.
11129         Save the stack pointer for frame_size > 0.
11131 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11133         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
11134         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
11135         constraint letters from expanders.
11136         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
11137         retry count to general_operand.
11138         ("tabort"): Give operand 0 a mode.
11139         ("tabort_1"): Add mode and constraint letter for operand 0.
11140         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
11142 2013-10-04  Jeff Law  <law@redhat.com>
11144         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
11146         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
11147         out of ...
11148         (thread_across_edge): Here.  Call it.
11150 2013-10-04  Cary Coutant  <ccoutant@google.com>
11152         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
11153         discarding a location list expression (or a piece of one).
11155 2013-10-03  Jan Hubicka  <jh@suse.cz>
11157         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
11158         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
11159         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
11161 2013-10-03  Jan Hubicka  <jh@suse.cz>
11163         * config/i386/i386.c (ix86_option_override_internal): Do not enable
11164         accumulate-outgoing-args when producing unwind info.
11166 2013-10-03  Wei Mi  <wmi@google.com>
11168         * lra-constraints.c (insert_move_for_subreg): New function
11169         extracted from simplify_operand_subreg.
11170         (simplify_operand_subreg): Add reload for paradoxical subreg.
11172 2013-10-03  Rong Xu  <xur@google.com>
11174         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
11175         the candidate of builtin_expect such that we should fix the
11176         size/time estimation.
11177         (estimate_function_body_sizes): Do the acutally size/time fix-up
11178         for builtin_expect.
11180 2013-10-03  Rong Xu  <xur@google.com>
11182         * predict.c (tree_predict_by_opcode): Get the probability
11183         for builtin_expect from param builtin_expect_probability.
11184         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
11185         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
11186         * doc/invoke.texi: Add documentation for builtin-expect-probability.
11188 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
11190         PR c++/19476
11191         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
11192         * calls.c (alloca_call_p): Use get_callee_fndecl.
11193         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
11194         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
11195         Likewise.
11196         (vrp_visit_stmt): Remove duplicated code.
11198 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11200         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
11201         ceildf2, btruncdf2, instead of vsx_* name.
11203         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
11204         iterators to only do V2DF and V4SF here.  Move the DF code to
11205         rs6000.md where it is combined with SF mode.  Replace <VSv> with
11206         just 'v' since only vector operations are handled with these insns
11207         after moving the DF support to rs6000.md.
11208         (vsx_sub<mode>3): Likewise.
11209         (vsx_mul<mode>3): Likewise.
11210         (vsx_div<mode>3): Likewise.
11211         (vsx_fre<mode>2): Likewise.
11212         (vsx_neg<mode>2): Likewise.
11213         (vsx_abs<mode>2): Likewise.
11214         (vsx_nabs<mode>2): Likewise.
11215         (vsx_smax<mode>3): Likewise.
11216         (vsx_smin<mode>3): Likewise.
11217         (vsx_sqrt<mode>2): Likewise.
11218         (vsx_rsqrte<mode>2): Likewise.
11219         (vsx_fms<mode>4): Likewise.
11220         (vsx_nfma<mode>4): Likewise.
11221         (vsx_copysign<mode>3): Likewise.
11222         (vsx_btrunc<mode>2): Likewise.
11223         (vsx_floor<mode>2): Likewise.
11224         (vsx_ceil<mode>2): Likewise.
11225         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
11226         (vsx_sminsf3): Likewise.
11227         (vsx_fmadf4): Likewise.
11228         (vsx_fmsdf4): Likewise.
11229         (vsx_nfmadf4): Likewise.
11230         (vsx_nfmsdf4): Likewise.
11231         (vsx_cmpdf_internal1): Likewise.
11233         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
11234         simpler to select whether a target has SPE or traditional floating
11235         point support in iterators.
11236         (TARGET_DF_SPE): Likewise.
11237         (TARGET_SF_FPR): Likewise.
11238         (TARGET_DF_FPR): Likewise.
11239         (TARGET_SF_INSN): Macros to say whether floating point support
11240         exists for a given operation for expanders.
11241         (TARGET_DF_INSN): Likewise.
11243         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
11244         combining of SF/DF mode operations, using both traditional and VSX
11245         registers.
11246         (Fvsx): Likewise.
11247         (Ff): Likewise.
11248         (Fv): Likewise.
11249         (Fs): Likewise.
11250         (Ffre): Likewise.
11251         (FFRE): Likewise.
11252         (abs<mode>2): Combine SF/DF modes using traditional floating point
11253         instructions.  Add support for using the upper DF registers with
11254         VSX support, and SF registers with power8-vector support.  Update
11255         expanders for operations supported by both the SPE and traditional
11256         floating point units.
11257         (abs<mode>2_fpr): Likewise.
11258         (nabs<mode>2): Likewise.
11259         (nabs<mode>2_fpr): Likewise.
11260         (neg<mode>2): Likewise.
11261         (neg<mode>2_fpr): Likewise.
11262         (add<mode>3): Likewise.
11263         (add<mode>3_fpr): Likewise.
11264         (sub<mode>3): Likewise.
11265         (sub<mode>3_fpr): Likewise.
11266         (mul<mode>3): Likewise.
11267         (mul<mode>3_fpr): Likewise.
11268         (div<mode>3): Likewise.
11269         (div<mode>3_fpr): Likewise.
11270         (sqrt<mode>3): Likewise.
11271         (sqrt<mode>3_fpr): Likewise.
11272         (fre<Fs>): Likewise.
11273         (rsqrt<mode>2): Likewise.
11274         (cmp<mode>_fpr): Likewise.
11275         (smax<mode>3): Likewise.
11276         (smin<mode>3): Likewise.
11277         (smax<mode>3_vsx): Likewise.
11278         (smin<mode>3_vsx): Likewise.
11279         (negsf2): Delete SF operations that are merged with DF.
11280         (abssf2): Likewise.
11281         (addsf3): Likewise.
11282         (subsf3): Likewise.
11283         (mulsf3): Likewise.
11284         (divsf3): Likewise.
11285         (fres): Likewise.
11286         (fmasf4_fpr): Likewise.
11287         (fmssf4_fpr): Likewise.
11288         (nfmasf4_fpr): Likewise.
11289         (nfmssf4_fpr): Likewise.
11290         (sqrtsf2): Likewise.
11291         (rsqrtsf_internal1): Likewise.
11292         (smaxsf3): Likewise.
11293         (sminsf3): Likewise.
11294         (cmpsf_internal1): Likewise.
11295         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
11296         (negdf2): Delete DF operations that are merged with SF.
11297         (absdf2): Likewise.
11298         (nabsdf2): Likewise.
11299         (adddf3): Likewise.
11300         (subdf3): Likewise.
11301         (muldf3): Likewise.
11302         (divdf3): Likewise.
11303         (fred): Likewise.
11304         (rsqrtdf_internal1): Likewise.
11305         (fmadf4_fpr): Likewise.
11306         (fmsdf4_fpr): Likewise.
11307         (nfmadf4_fpr): Likewise.
11308         (nfmsdf4_fpr): Likewise.
11309         (sqrtdf2): Likewise.
11310         (smaxdf3): Likewise.
11311         (smindf3): Likewise.
11312         (cmpdf_internal1): Likewise.
11313         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
11314         (btrunc<mode>2): Delete separate expander, and combine with the
11315         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
11316         (btrunc<mode>2_fpr): Likewise.
11317         (ceil<mode>2): Likewise.
11318         (ceil<mode>2_fpr): Likewise.
11319         (floor<mode>2): Likewise.
11320         (floor<mode>2_fpr): Likewise.
11321         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
11322         Add support for using the upper registers with VSX and
11323         power8-vector.  Move insns to be closer to the define_expands. On
11324         VSX systems, prefer the traditional form of FMA over the VSX
11325         version, since the traditional form allows the target not to
11326         overlap with the inputs.
11327         (fms<mode>4_fpr): Likewise.
11328         (nfma<mode>4_fpr): Likewise.
11329         (nfms<mode>4_fpr): Likewise.
11331 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11332             Richard Earnshaw  <richard.earnshaw@arm.com>
11334         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
11335         (struct mult_cost_table): Likewise.
11336         (struct mem_cost_table): Likewise.
11337         (struct fp_cost_table): Likewise.
11338         (struct vector_cost_table): Likewise.
11339         (cpu_cost_table): Likewise.
11340         * config/arm/arm.opt (mold-rts-costs): New option.
11341         (mnew-generic-costs): Likewise.
11342         * config/arm/arm.c (generic_extra_costs): New table.
11343         (cortexa15_extra_costs): Likewise.
11344         (arm_slowmul_tune): Use NULL as new costs.
11345         (arm_fastmul_tune): Likewise.
11346         (arm_strongarm_tune): Likewise.
11347         (arm_xscale_tune): Likewise.
11348         (arm_9e_tune): Likewise.
11349         (arm_v6t2_tune): Likewise.
11350         (arm_cortex_a5_tune): Likewise.
11351         (arm_cortex_a9_tune): Likewise.
11352         (arm_v6m_tune): Likewise.
11353         (arm_fa726te_tune): Likewise.
11354         (arm_cortex_a15_tune): Use cortex15_extra_costs.
11355         (arm_cortex_tune): Use generict_extra_costs.
11356         (shifter_op_p): New function.
11357         (arm_unspec_cost): Likewise.
11358         (LIBCALL_COST): Define.
11359         (arm_new_rtx_costs): New function.
11360         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
11361         table is available. Use old costs otherwise unless mnew-generic-costs
11362         is specified.
11363         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
11364         (cpu_cost_table): Declare.
11366 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11368         PR target/58460
11369         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
11370         (*subs_mul_imm_<mode>)
11371         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
11372         (*sub_<shift>_<mode>)
11373         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
11374         Remove k constraint.
11376 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
11378         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
11379         code.
11380         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
11382 2013-10-02  Teresa Johnson  <tejohnson@google.com>
11384         * predict.c (probably_never_executed): New function.
11385         (probably_never_executed_bb_p): Invoke probably_never_executed.
11386         (probably_never_executed_edge_p): Ditto.
11387         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11388         Treat profile insanities conservatively.
11390 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
11392         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
11394 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
11396         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
11397         use it.  Use smaller increase for scratch.  Don't increase reject
11398         for early clobber scratch.
11399         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
11400         setting eliminated regs except setting fp from hfp.
11401         (lra_eliminate): Check lra_insn_recog_data on NULL.
11403 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11405         PR target/58587
11406         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
11407         setting -mvsx-timode by default until the underlying problem is fixed.
11408         (RS6000_CPU, power7 defaults): Likewise.
11410 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11412         * config/x-linux (host-linux.o): Remove header dependencies.
11413         Use $(COMPILE) and $(POSTCOMPILE).
11414         * config/t-linux-android (linux-android.o): Ditto.
11416 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11418         * Makefile.in (expmed.o-warn): Remove.
11420 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11422         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
11423         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
11425 2013-10-02  Teresa Johnson  <tejohnson@google.com>
11427         * dojump.c (do_jump_1): Divide probability between
11428         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
11430 2013-10-02  Tom Tromey  <tromey@redhat.com>
11432         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
11434 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11436         * tree-flow.h: Remove some prototypes.
11437         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
11438         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
11439         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
11440         mark_virtual_phi_result_for_renaming): Relocate here.
11441         * tree-into-ssa.h: Add prototypes.
11442         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
11443         single_pred_before_succ_order.
11444         (blocks_in_phiopt_order): Rename and move to cfganal.c.
11445         (nonfreeing_call_p) Move to gimple.c.
11446         * cfganal.c (single_pred_before_succ_order): Move and renamed from
11447         tree-ssa-phiopt.c.
11448         * basic-block.h (single_pred_before_succ_order): Add prototype.
11449         * gimple.c (nonfreeing_call_p): Relocate here.
11450         * gimple.h: Add prototype.
11451         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
11452         * tree-ssa-dom.h: New file.  Relocate prototypes here.
11453         * tree-ssa.h: Include tree-ssa-dom.h.
11455 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11457         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
11458         Use $(COMPILE) and $(POSTCOMPILE).
11460         * config/alpha/x-alpha (driver-alpha.o): Ditto.
11462 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11464         * tree-flow.h: Remove some prototypes.
11465         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
11466         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
11467         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
11468         propagate_tree_value*): Move from here to...
11469         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
11470         propagate_tree_value*): Relocate here.
11471         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
11472         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
11473         * gimple-fold.c: Remove gimple-fold.h from include list.
11474         * tree-vrp.c: Remove gimple-fold.h from include list.
11475         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
11476         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
11477         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
11478         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
11479         * sese.c: Add tree-ssa-propagate.h to include list.
11481 2013-10-02  Richard Biener  <rguenther@suse.de>
11483         * tree-loop-distribution.c: Include tree-vectorizer.h for
11484         find_loop_location.
11485         (enum partition_kind): Remove PKIND_REDUCTION.
11486         (struct partition_s): Remove has_writes member, add reduction_p member.
11487         (partition_alloc): Adjust.
11488         (partition_builtin_p): Likewise.
11489         (partition_has_writes): Remove.
11490         (partition_reduction_p): New function.
11491         (partition_merge_into): Likewise.
11492         (generate_code_for_partition): Commonize builtin partition
11493         handling tail.
11494         (rdg_cannot_recompute_vertex_p): Remove.
11495         (already_processed_vertex_p): Likewise.
11496         (rdg_flag_vertex): Do not set has_writes.
11497         (classify_partition): Adjust.
11498         (rdg_build_partitions): Do not set has_writes, treat all
11499         partitions as useful.
11500         (distribute_loop): Record number of library calls generated.  Adjust.
11501         (tree_loop_distribution): Report number of loops and library
11502         calls generated as opt-info.
11504 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11506         * tree-flow.h: Include new .h files.  Move prototypes.
11507         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
11508         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
11509         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
11510         * tree-pretty-print.h: Add prototypes from tree-flow.h.
11511         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
11512         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
11513         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
11514         * tree.h (get_ref_base_and_extent): Move prototype out.
11515         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
11516         tree-dfa.h.
11517         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
11518         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
11519         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
11520         * tree-scalar-evolution.c: Include tree.h.
11521         * sese.c: Include tree.h.
11522         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
11523         * dwarf2out.c: Include tree-dfa.h.
11524         * tree-chrec.c: Include tree.h.
11525         * tree-data-ref.c: Include tree.h.
11527 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
11529         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
11530         Fix whitespace.
11532 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11534         * config/t-sol2 (sol2-c.o): Remove header dependencies.
11535         Use $(COMPILE) and $(POSTCOMPILE).
11536         (sol2-cxx.o): Likewise.
11537         (sol2-stubs.o): Likewise.
11538         (sol2.o): Likewise.
11539         * config/x-solaris (host-solaris.o): Likewise.
11541         * config/sparc/t-sparc (sparc.o): Remove.
11542         (sparc-c.o): Remove header dependencies.
11543         Use $(COMPILE) and $(POSTCOMPILE).
11544         * config/sparc/x-sparc: Likewise.
11546 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
11548         * config/arc/arc-opts.h: Add 2013 to Copyright years.
11549         * config/arc/arc700.md: Likewise.
11550         * config/arc/arc-modes.def: Likewise.
11551         * config/arc/arc-simd.h: Likewise.
11552         * config/arc/t-arc-uClibc: Likewise.
11553         * config/arc/t-arc-newlib: Likewise.
11555 2013-10-02  Renlin Li  <renlin.li@arm.com>
11557         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11558         plus_constant.
11559         (aarch64_expand_epilogue): Likewise.
11561 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11562             Yufeng Zhang  <yufeng.zhang@arm.com>
11564         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
11565         declaration.
11566         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
11567         'base_in' represent a conversion and legal_cast_p_1 holds; set
11568         'base_in' with the returned value from get_unwidened.
11570 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11572         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
11573         plus_constant is not used.
11575 2013-10-01  Wei Mi  <wmi@google.com>
11577         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
11578         * config/i386/i386.md: Add define_peephole2 to
11579         break partial reg stall for cvtss2sd/cvtsd2ss.
11581 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11583         * config/arc/arc.c (pass_arc_ifcvt::clone):
11584         Update for ctxt_ -> m_ctxt change.
11586 2013-10-01  Jeff Law  <law@redhat.com>
11588         * tree-ssa-threadupdate.c (struct redirection_data): Delete
11589         outgoing_edge and intermediate_edge fields.  Instead store the path.
11590         (redirection_data::hash): Hash on the last edge's destination index.
11591         (redirection_data::equal): Check the entire thread path.
11592         (lookup_redirectio_data): Corresponding changes.
11593         (create_edge_and_update_destination_phis): Likewise.
11594         (thread_single_edge): Likewise.
11596 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11597             Diego Novillo <dnovillo@google.com>
11599         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
11600         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
11601         (vld32wh_insn, vld32wl_insn): Delete commented-out old
11602         versions of these patterns.
11604         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
11605         (__builtin_arc_aligned): Likewise.
11607         * config/arc/arc.md: Expand adc_0 comment stating the intended
11608         purpose and why it isn't ready.
11609         Replace commented out call_value_via_label_mixed with a
11610         plain comment about bl_s.
11612         * config/arc/arc.c (stdio.h): Don't include directly.
11613         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
11614         Remove if (1) condition.
11615         (arc_encode_section_info): Fix comment.
11617 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11619         * config/arc/arc.c (arc_conditional_register_usage):
11620         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
11621         Also set reg_alloc_order for DMA config regs.
11623 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11624             Jeremy Bennett  <jeremy.bennett@embecosm.com>
11626         * doc/install.texi (--with-cpu): Mention ARC.
11627         (arc-*-elf32): New paragraph.
11628         (arc-linux-uclibc): Likewise.
11629         * doc/md.texi (Machine Constraints): Add ARC part.
11630         * doc/invoke.texi: (menu): Add ARC Options.
11631         (Machine Dependent Options) <ARC Options>: Add synopsis.
11632         (node ARC Options): Add.
11633         * doc/extend.texi (long_call / short_call attribute): Add ARC.
11634         (ARC Built-in Functions): New section defining
11635         generic ARC built-in functions.
11636         (ARC SIMD Built-in Functions): New section defining SIMD specific
11637         built-in functions.
11638         (Declaring Attributes of Functions): Extended
11639         description of short_call and long_call attributes for ARC and
11640         added index entries.
11642 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
11643             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
11644             Joern Rennecke  <joern.rennecke@embecosm.com>
11645             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
11646             Brendan Kehoe  <brendan@zen.org>
11647             Michael Eager  <eager@eagercon.com>
11648             Simon Cook  <simon.cook@embecosm.com>
11649             Jeremy Bennett  <jeremy.bennett@embecosm.com>
11651         * config/arc, common/config/arc: New directories.
11653 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11654             Brendan Kehoe  <brendan@zen.org>
11655             Simon Cook  <simon.cook@embecosm.com>
11657         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
11659 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
11661         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
11662         * tree-ssa-coalesce.h: New. Move prototype to here.
11663         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
11664         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
11665         (gimple_can_coalesce_p): Move to...
11666         * gimple.c (gimple_can_coalesce_p): Here.
11668 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
11670         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
11671         (dump_decl_set): Move to gimple.c.
11672         * gimple.h: Don't include tree-ssa-operands.h.
11673         (dump_decl_set): Add prototype.
11674         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
11675         Move to gimple-ssa.h.
11676         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
11677         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
11678         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
11679         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
11680         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
11681         than PHI_ARG_DEF.
11682         (dump_decl_set): Relocate here.
11683         * gimple-ssa.h: New file.
11684         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
11685         Relocate from gimple.h.
11686         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
11687         * tree-ssa-operands.c (swap_ssa_operands): Rename from
11688         swap_tree_operands and remove non-ssa path.
11689         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
11690         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
11691         swap_ssa_operands.
11692         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
11693         vect_is_simple_reduction_1): Use swap_ssa_operands.
11694         * tree-flow.h: Move various prototypes to tree-phinodes.h.
11695         (enum need_phi_state): Move to tree-into-ssa.c.
11696         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11697         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
11698         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
11699         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
11700         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11701         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11702         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11703         num_imm_uses): Move to ssa-iterators.h.
11704         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
11705         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
11706         tree-phinodes.h.
11707         (op_iter_done, op_iter_next_def, op_iter_next_tree,
11708         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
11709         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
11710         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
11711         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
11712         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
11713         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
11714         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
11715         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
11716         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
11717         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
11718         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
11719         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
11720         (set_phi_nodes): Move to tree-phinodes.h.
11721         * tree-ssa-operands.h (enum ssa_op_iter_type,
11722         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
11723         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
11724         (dump_decl_set): Remove prototype.
11725         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
11726         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
11727         (set_phi_nodes): Relocate from tree-flow-inline.h.
11728         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
11729         tree-flow-inline.h
11730         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
11731         include list.  Temporarily add gimple.h to include list.
11732         * ssa-iterators.h: New file.
11733         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11734         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
11735         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
11736         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
11737         Relocate from tree-ssa-operands.h.
11738         (delink_imm_use, link_imm_use_to_list, link_imm_use,
11739         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11740         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11741         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11742         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
11743         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
11744         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
11745         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
11746         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
11747         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
11748         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
11749         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
11750         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
11751         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
11752         Relocate from tree-flow-inline.h.
11753         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
11755 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
11757         * aarch64-simd.md
11758         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
11759         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
11760         Insert '\t' to output template.
11761         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
11762         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
11763         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
11764         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
11766 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
11768         * doc/install.texi (Host/target specific installation notes for GCC):
11769         Put @anchor before @heading.
11770         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
11771         Use @email for email addresses.
11773 2013-10-01  Jeff Law  <law@redhat.com>
11775         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
11776         a vec.  Only delete the path if we create one without successfully
11777         registering a jump thread.
11778         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
11779         as a pointer.
11780         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
11781         (paths): New vector of jump threading paths.
11782         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
11783         (THREAD_PATH): New accessor macro for the entire thread path.
11784         (lookup_redirection_data): Get intermediate and final outgoing edge
11785         from the thread path.
11786         (create_edge_and_update_destination_phis): Copy the threading path.
11787         (ssa_fix_duplicate_block_edges): Get edges and block types from the
11788         jump threading path.
11789         (ssa_redirect_edges): Get edges and block types from the jump threading
11790         path.  Free the path vector.
11791         (thread_block): Get edges from the jump threading path.  Look at the
11792         entire path to see if we thread to a loop exit.  If we cancel a jump
11793         thread request, then free the path vector.
11794         (thread_single_edge): Get edges and block types from the jump threading
11795         path.  Free the path vector.
11796         (thread_through_loop_header): Get edges and block types from the jump
11797         threading path.  Free the path vector.
11798         (mark_threaded_blocks): Iterate over the vector of paths and store
11799         the path on the appropriate edge.  Get edges and block types from the
11800         jump threading path.
11801         (mark_threaded_blocks): Get edges and block types from the jump
11802         threading path.  Free the path vector.
11803         (thread_through_all_blocks): Use the vector of paths rather than
11804         a vector of 3-edge sets.
11805         (register_jump_thread): Accept pointer to a path vector rather
11806         than the path vector itself.  Store the path vector for later use.
11807         Simplify.
11809 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
11810             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11812         PR target/58574
11813         * config/s390/s390.c (s390_split_branches): Modify check for table
11814         jump insns.
11815         (s390_chunkify_start): Rearrange table jump insn check in order to
11816         deal with compare and branch insns correctly.
11818 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
11820         PR target/58578
11821         Revert
11822         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
11823         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
11824         define_insn_and_split.
11825         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
11826         (shiftsi3_compare): New pattern.
11827         (rrx): New pattern.
11828         * config/arm/unspecs.md (UNSPEC_RRX): New.
11830 2013-10-01  Alan Modra  <amodra@gmail.com>
11832         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
11833         casing inout operands.
11835 2013-10-01  Richard Biener  <rguenther@suse.de>
11837         PR tree-optimization/58553
11838         * tree-loop-distribution.c (struct partition_s): Add niter member.
11839         (classify_partition): Populate niter member for the partition
11840         and properly identify whether the relevant store happens before
11841         or after the loop exit.
11842         (generate_memset_builtin): Use niter member from the partition.
11843         (generate_memcpy_builtin): Likewise.
11845 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
11847         * vec.h (vec_prefix, vec): Prefix member names with "m_".
11848         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
11850 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
11852         * basic-block.h (edge_list): Prefix member names with "m_".
11853         * context.h (context): Likewise.
11854         * domwalk.h (dom_walker): Likewise.
11855         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
11856         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
11857         * hash-table.h (hash_table): Likewise.
11858         * machmode.h (bit_field_mode_iterator): Likewise.
11859         * pass_manager.h (pass_list): Likewise.
11860         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
11861         * tree-pass.h (pass_data): Likewise.
11862         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
11863         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
11864         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
11865         * asan.c (pass_data_asan): Update accordingly.
11866         * cfganal.c (control_dependences::find_control_dependence): Likewise.
11867         (control_dependences::control_dependences): Likewise.
11868         (control_dependences::~control_dependences): Likewise.
11869         (control_dependences::~control_dependences): Likewise.
11870         (control_dependences::get_edges_dependent_on): Likewise.
11871         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
11872         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
11873         * context.c (gcc::context::context): Likewise.
11874         * cprop.c (pass_rtl_cprop::clone): Likewise.
11875         * domwalk.c (dom_walker::walk): Likewise.
11876         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
11877         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
11878         * mode-switching.c (pass_mode_switching::clone): Likewise.
11879         * passes.c (opt_pass::opt_pass): Likewise.
11880         (pass_manager::pass_manager): Likewise.
11881         * predict.c (pass_strip_predict_hints::clone): Likewise.
11882         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
11883         (pass_split_all_insns::clone): Likewise.
11884         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
11885         Likewise.
11886         (bit_field_mode_iterator::next_mode): Likewise.
11887         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
11888         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
11889         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
11890         * tree-complex.c (pass_lower_complex::clone): Likewise.
11891         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
11892         * tree-object-size.c (pass_object_sizes::clone): Likewise.
11893         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
11894         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
11895         (pass_fold_builtins::clone): Likewise.
11896         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
11897         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
11898         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
11899         (pass_cd_dce::clone): Likewise.
11900         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
11901         (pass_phi_only_cprop::clone): Likewise.
11902         * tree-ssa-dse.c (pass_dse::clone): Likewise.
11903         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
11904         * tree-ssa-loop.c (pass_lim::clone): Likewise.
11905         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
11906         * tree-ssa-pre.c (pass_fre::clone): Likewise.
11907         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
11908         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
11909         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
11910         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
11911         * tree-vrp.c (pass_vrp::clone): Likewise.
11912         * tsan.c (pass_tsan::clone): Likewise.
11914 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
11916         PR middle-end/58564
11917         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
11918         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
11920         PR middle-end/58564
11921         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
11922         optimization, punt if sign_bit_p looked through any zero extension.
11924 2013-09-30  Teresa Johnson  <tejohnson@google.com>
11926         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
11927         Update redirected out edge count in joiner case.
11928         (ssa_redirect_edges): Common the joiner and non-joiner cases
11929         so that joiner case gets profile updates.
11931 2013-09-30  Richard Biener  <rguenther@suse.de>
11933         PR tree-optimization/58554
11934         * tree-loop-distribution.c (classify_partition): Require
11935         unconditionally executed stores for memcpy and memset recognition.
11936         (tree_loop_distribution): Calculate dominance info.
11938 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
11940         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
11941         (NO_PROFILE_COUNTERS): Likewise.
11942         (PROFILE_HOOK): Likewise.
11943         (FUNCTION_PROFILER): Likewise.
11944         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
11946 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
11948         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
11949         calls and defines in TARGET_MACHO conditional.
11950         (load_macho_picbase_di): Likewise.
11951         (reload_macho_picbase): Likewise.
11952         (reload_macho_picbase_si): Likewise.
11953         (reload_macho_picbase_di): Likewise.
11954         (nonlocal_goto_receiver): Likewise.
11956 2013-09-30  Nick Clifton  <nickc@redhat.com>
11958         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
11959         that use the MSP430X ISA.
11960         (msp430_option_override): Scan -mmcu command line option for any
11961         MCU name that supports the MSP430X ISA.
11962         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
11963         -mmcu options which enable the MSP430X ISA.
11965 2013-09-30  Richard Biener  <rguenther@suse.de>
11967         PR middle-end/58532
11968         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
11969         before looking for setjmp-like calls.
11971 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11973         PR target/10901
11974         * config/darwin-protos.h (machopic_get_function_picbase): New.
11975         * config/darwin.c (machopic_get_function_picbase): New.
11976         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
11977         label for a new func.  (load_macho_picbase_di): Likewise.
11978         (reload_macho_picbase): New expand.
11979         (reload_macho_picbase_si): New insn.
11980         (reload_macho_picbase_di): New insn.
11981         (nonlocal_goto_receiver): New define and split.
11982         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
11983         (unspecv enum): Add UNSPECV_NLGR.
11985 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11987         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
11988         that altivec registers are correctly sized on Darwin.
11990 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11992         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
11993         darwin-driver.o): Use COMPILE and POSTCOMPILE.
11994         * config/x-darwin (host-darwin.o): Likewise.
11995         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
11996         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
11997         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
11999 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
12001         * doc/invoke.texi: Fix usage of @tie{} command.
12003 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
12005         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
12007 2013-09-28  Jan Hubicka  <jh@suse.cz>
12009         * config/i386/x86-tune.def: Add documentation for each of the options;
12010         add whitespace.
12012 2013-09-28  Jan Hubicka  <jh@suse.cz>
12014         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
12015         generic.
12016         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
12017         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
12018         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
12019         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
12020         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
12022 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
12024         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
12025         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
12026         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
12027         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
12028         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
12029         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
12030         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
12031         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
12032         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
12033         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
12034         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
12035         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
12036         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
12037         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
12038         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
12039         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
12040         gimple.h, godump.c, graphite-clast-to-gimple.c,
12041         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
12042         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
12043         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
12044         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
12045         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
12046         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
12047         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
12048         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
12049         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
12050         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
12051         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
12052         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
12053         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
12054         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
12055         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
12056         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
12057         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
12058         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
12059         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
12060         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
12061         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
12062         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
12063         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
12064         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
12065         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12066         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12067         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
12068         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
12069         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
12070         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12071         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12072         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
12073         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
12074         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
12075         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
12076         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
12077         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
12078         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
12079         whitespace before "(".
12081 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
12083         * expr.h (extract_bit_field): Remove packedp parameter.
12084         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
12085         from forward declaration.
12086         (store_split_bit_field): Remove packedp arg from calls to
12087         extract_fixed_bit_field.
12088         (extract_bit_field_1): Remove packedp parameter and packedp
12089         argument from recursive calls and calls to extract_fixed_bit_field.
12090         (extract_bit_field): Remove packedp parameter and corresponding
12091         arg to extract_bit_field_1.
12092         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
12093         to issue warnings.
12094         (extract_split_bit_field): Remove packedp arg from call to
12095         extract_fixed_bit_field.
12096         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
12097         (copy_blkmode_from_reg): Likewise.
12098         (copy_blkmode_to_reg): Likewise.
12099         (read_complex_part): Likewise.
12100         (store_field): Likewise.
12101         (expand_expr_real_1): Likewise.
12102         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
12103         to extract_bit_field.
12104         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
12105         call to extract_bit_field.
12106         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
12107         call to extract_bit_field.
12108         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
12109         and special packedp behavior from -fstrict-volatile-bitfields
12110         documentation.
12112 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12114         * lra-eliminations.c (init_elim_table): Guard value_p.
12116 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
12118         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
12119         DFmode, DImode, and SFmode in the upper VSX registers based on the
12120         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
12121         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
12122         of the VSX register handling.
12124         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
12125         (f32_sv): Likewise.
12126         (zero_extendsidi2_lfiwzx): Add support for loading into the
12127         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
12128         only do VSX memory options on Altivec registers.
12129         (extendsidi2_lfiwax): Likewise.
12130         (extendsfdf2_fpr): Likewise.
12131         (mov<mode>_hardfloat, SF/SD modes): Likewise.
12132         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
12133         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
12134         (movdi_internal64): Likewise.
12136 2013-09-27  Xinliang David Li  <davidxl@google.com>
12138         * opts.c (finish_options): Adjust parameters
12139         according to vect cost model.
12140         (common_handle_option): Set dynamic vect cost
12141         model for FDO.
12142         targhooks.c (default_add_stmt_cost): Compute stmt cost
12143         unconditionally.
12144         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12145         Use helper function.
12146         * tree-vectorizer.h (unlimited_cost_model): New function.
12147         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
12148         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
12149         function.
12150         (vect_enhance_data_refs_alignment): Ditto.
12151         * flag-types.h: New enum.
12152         * common/config/i386/i386-common.c (ix86_option_init_struct):
12153         No need to initialize vect_cost_model flag.
12154         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
12155         unconditionally.
12157 2013-09-27  Diego Novillo  <dnovillo@google.com>
12159         * gimple.h (enum ssa_mode): Remove.
12161 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
12163         * cfgloop.h (number_of_loops): Fix typo in check for null.
12165 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
12167         PR middle-end/58551
12168         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
12169         are children of outermost saved_cfun's loop, and set it up to
12170         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
12171         if loop != loop0 and SESE region contains bbs that belong to loop0.
12173 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
12175         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
12176         (binary_scale_code_p, get_base_term, get_index_term): New functions.
12177         (set_address_segment, set_address_base, set_address_index)
12178         (set_address_disp): Accept the argument unconditionally.
12179         (baseness): Remove must_be_base_p and must_be_index_p checks.
12180         (decompose_normal_address): Classify as much as possible in the
12181         main loop.
12183 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
12185         * cse.c (count_reg_usage): Handle INT_LIST.
12186         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
12187         * reginfo.c (reg_scan_mark_refs): Likewise.
12188         * reload1.c (eliminate_regs_1): Likewise.
12190 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
12192         PR middle-end/58547
12193         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
12194         signed.
12196 2013-09-27  Richard Biener  <rguenther@suse.de>
12198         PR tree-optimization/58459
12199         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
12200         restriction not propagating into loops.
12202 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
12204         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
12205         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
12206         * doc/tree-ssa.texi (Walking use-def chains): Delete.
12208 2013-09-26  Richard Biener  <rguenther@suse.de>
12210         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
12212 2013-09-26  Richard Biener  <rguenther@suse.de>
12214         * alias.h (component_uses_parent_alias_set): Rename to ...
12215         (component_uses_parent_alias_set_from): ... this.
12216         * alias.c (component_uses_parent_alias_set): Rename to ...
12217         (component_uses_parent_alias_set_from): ... this and return
12218         the desired parent.
12219         (reference_alias_ptr_type_1): Use the result from
12220         component_uses_parent_alias_set_from instead of stripping
12221         components one at a time.
12222         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
12224 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
12226         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
12227         Move prototypes to...
12228         * tree-ssa-ter.h: New File.  Move prototypes here.
12229         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
12230         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
12231         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
12232         from is_replaceable_p.
12233         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
12234         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
12235         (process_replaceable): Use ter_is_replaceable_p.
12236         (find_replaceable_in_bb): Use ter_is_replaceable_p.
12237         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
12238         newly refactored ssa_is_replaceable_p.
12239         * cfgexpand.c: Include tree-outof-ssa.h.
12240         * ssaexpand.h: Delete.
12242 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
12244         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
12245         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
12246         tree-ssa.c
12247         (create_gimple_tmp): Delete.
12248         (get_expr_type, build_assign, build_type_cast): Move to...
12249         * gimple-builder.c: New File.
12250         (get_expr_type): Relocate from gimple.c.
12251         (build_assign, build_type_cast): Change to only create ssanames.
12252         * gimple.h: Move prototypes to...
12253         * gimple-builder.h: New File. Here.
12254         * tree-ssa.h: And here.
12255         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
12256         count_uses_and_derefs): Relocate from gimple.c.
12257         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
12258         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
12259         * tree-ssa-math-opts (execute_cse_reciprocals): Use
12260         gimple_replace_ssa_lhs.
12261         * asan.c: Include gimple-builder.h.
12262         * Makefile.in: Add gimple-builder.o.
12264 2013-09-26  Richard Biener  <rguenther@suse.de>
12266         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
12267         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
12268         (loe_visit_block): Use gcc_checking_assert.
12269         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
12270         gimple_assign_ssa_name_copy_p.
12271         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
12272         change.
12274 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
12276         * config/rs6000/t-rs6000 (rs6000.o): Remove.
12277         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
12279 2013-09-26  Richard Biener  <rguenther@suse.de>
12281         PR tree-optimization/58539
12282         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
12283         the fact that debug statements are not taking part in loop-closed
12284         SSA construction.
12286 2013-09-26  Nick Clifton  <nickc@redhat.com>
12288         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
12289         time warning message.
12290         (msp430_print_operand_raw): Delete unused letter parameter.
12291         (TARGET_PRINT_OPERAND_ADDRESS): Define.
12292         (msp430_print_operand_address): New function.
12293         (msp430_print_operand): Move address printing code from here to
12294         new function.
12295         * config/msp430/msp430.md (movsipsi2): Add comment in generated
12296         assembler.
12297         (zero_extendpsisi2): Likewise.
12298         (extendpsisi2): New pattern.
12299         (andneghi3): New pattern.
12301 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
12303         * config/aarch64/aarch64.opt (mlra): New option.
12304         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
12305         (TARGET_LRA_P): Define.
12307 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
12309         * expr.c (expand_assignment): Remove obsolete comment.
12311 2013-09-25  Jeff Law  <law@redhat.com>
12313         * tree-flow.h (thread_through_all_blocks): Prototype moved into
12314         tree-ssa-threadupdate.h.
12315         (register_jump_thread): Similarly.
12316         * tree-ssa-threadupdate.h: New header file.
12317         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
12318         * tree-vrp.c: Likewise.
12319         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
12320         (thread_around_empty_blocks): Change type of path vector argument to
12321         an edge,type pair from just an edge.  Initialize both elements when
12322         appending to a jump threading path.  Tweak references to elements
12323         appropriately.
12324         (thread_across_edge): Similarly.  Release memory for the elements
12325         as needed.
12326         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
12327         (dump_jump_thread_path): New function broken out from
12328         register_jump_thread.
12329         (register_jump_thread): Use dump_jump_thread_path.  Change type of
12330         path vector entries.  Search the path for NULL edges and dump
12331         the path if one is found.  Tweak the conversion of path to 3-edge
12332         form to use the block copy type information embedded in the path.
12334 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
12336         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
12338 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
12339             Vladimir Makarov  <vmakarov@redhat.com>
12341         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
12342         from the least significant bit.
12343         (strip_address_mutations): Add bitfield operations handling.
12344         (must_be_index_p): Add shifting and rotate operations handling.
12345         (set_address_base): Use must_be_base_p predicate.
12346         (set_address_index): Use must_be_index_p predicate.
12348 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12349             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12350             Sergey Lega  <sergey.s.lega@intel.com>
12351             Anna Tikhonova  <anna.tikhonova@intel.com>
12352             Ilya Tocar  <ilya.tocar@intel.com>
12353             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12354             Ilya Verbin  <ilya.verbin@intel.com>
12355             Kirill Yukhin  <kirill.yukhin@intel.com>
12356             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12358         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12359         Use new names.
12360         (ix86_expand_vector_move_misalign): Support new unaligned load and
12361         stores and use new names.
12362         (CODE_FOR_sse2_storedqu): Rename to ...
12363         (CODE_FOR_sse2_storedquv16qi): ... this.
12364         (CODE_FOR_sse2_loaddqu): Rename to ...
12365         (CODE_FOR_sse2_loaddquv16qi): ... this.
12366         (CODE_FOR_avx_loaddqu256): Rename to ...
12367         (CODE_FOR_avx_loaddquv32qi): ... this.
12368         (CODE_FOR_avx_storedqu256): Rename to ...
12369         (CODE_FOR_avx_storedquv32qi): ... this.
12370         * config/i386/i386.md (fpint_logic): New.
12371         * config/i386/sse.md (VMOVE): Extend for AVX512.
12372         (VF): Ditto.
12373         (VF_128_256): New.
12374         (VF_512): Ditto.
12375         (VI_UNALIGNED_LOADSTORE): Ditto.
12376         (sse2_avx_avx512f): Ditto.
12377         (sse2_avx2): Extend for AVX512.
12378         (sse4_1_avx2): Ditto.
12379         (avx2_avx512f): New.
12380         (sse): Extend for AVX512.
12381         (sse2): Ditto.
12382         (sse4_1): Ditto.
12383         (avxsizesuffix): Ditto.
12384         (sseintvecmode): Ditto.
12385         (ssePSmode): Ditto.
12386         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
12387         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
12388         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12389         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
12390         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12391         (<sse2_avx_avx512f>_storedqu<mode): ... this.
12392         (<sse>_movnt<mode>): Replace constraint "x" with "v".
12393         (STORENT_MODE): Extend for AVX512.
12394         (*absneg<mode>2): Replace constraint "x" with "v".
12395         (*mul<mode>3): Ditto.
12396         (*ieee_smin<mode>3): Ditto.
12397         (*ieee_smax<mode>3): Ditto.
12398         (avx_cmp<mode>3): Replace VF with VF_128_256.
12399         (*<sse>_maskcmp<mode>3_comm): Ditto.
12400         (<sse>_maskcmp<mode>3): Ditto.
12401         (<sse>_andnot<mode>3): Extend for AVX512.
12402         (<code><mode>3, anylogic): Replace VF with VF_128_256.
12403         (<code><mode>3, fpint_logic): New.
12404         (*<code><mode>3): Extend for AVX512.
12405         (avx512flogicsuff): New.
12406         (avx512f_<logic><mode>): Ditto.
12407         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
12408         VF_128_256.
12409         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
12410         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
12411         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
12412         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
12413         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
12414         (xop_vpermil2<mode>3): Ditto.
12415         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
12416         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
12417         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
12418         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
12420 2013-09-25  Tom Tromey  <tromey@redhat.com>
12422         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
12423         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
12424         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
12425         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
12426         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
12427         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
12428         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
12429         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
12430         (GRAPHITE_HTAB_H): Remove.
12432 2013-09-25  Tom Tromey  <tromey@redhat.com>
12434         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
12436 2013-09-25  Tom Tromey  <tromey@redhat.com>
12438         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
12440 2013-09-25  Tom Tromey  <tromey@redhat.com>
12442         * config/i386/t-i386 (i386.o): Remove.
12443         (i386-c.o): Use COMPILE and POSTCOMPILE.
12445 2013-09-25  Tom Tromey  <tromey@redhat.com>
12447         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
12449 2013-09-25  Tom Tromey  <tromey@redhat.com>
12451         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
12452         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
12453         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
12454         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
12455         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
12456         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
12457         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
12458         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
12459         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
12460         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
12461         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
12462         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
12463         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
12464         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
12465         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
12466         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
12467         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
12468         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
12469         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
12470         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
12471         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
12472         (tree-ssa-pre.o, tree-ssa-sccvn.o)
12473         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
12474         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
12475         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
12476         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
12477         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
12478         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
12479         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
12480         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
12481         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
12482         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
12483         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
12484         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
12485         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
12486         (graphite-clast-to-gimple.o, graphite-dependences.o)
12487         (graphite-interchange.o, graphite-poly.o)
12488         (graphite-scop-detection.o, graphite-sese-to-poly.o)
12489         (graphite-optimize-isl.o, tree-vect-loop.o)
12490         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
12491         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
12492         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
12493         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
12494         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
12495         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
12496         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
12497         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
12498         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
12499         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
12500         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
12501         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
12502         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
12503         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
12504         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
12505         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
12506         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
12507         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
12508         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
12509         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
12510         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
12511         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
12512         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
12513         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
12514         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
12515         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
12516         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
12517         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
12518         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
12519         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
12520         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
12521         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
12522         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
12523         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
12524         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
12525         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
12526         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
12527         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
12528         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
12529         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
12530         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
12531         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
12532         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
12533         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
12534         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
12535         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
12536         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
12537         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
12538         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
12539         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
12540         (gcov-dump.o): Remove.
12541         (default-c.o): Use COMPILE and POSTCOMPILE.
12542         (CFLAGS-gcc.o): New variable.
12543         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
12545 2013-09-25  Tom Tromey  <tromey@redhat.com>
12547         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
12548         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
12549         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
12550         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
12551         (c-family/c-pragma.o, c-family/c-pretty-print.o)
12552         (c-family/c-semantics.o, c-family/c-ada-spec.o)
12553         (c-family/array-notation-common.o, c-family/stub-objc.o)
12554         (c-family/c-ubsan.o): Remove.
12556 2013-09-25  Tom Tromey  <tromey@redhat.com>
12558         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
12560 2013-09-25  Tom Tromey  <tromey@redhat.com>
12562         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
12563         to add -DENABLE_SHARED_LIBGCC.
12564         (gcc.o): Don't use subshell.
12566 2013-09-25  Tom Tromey  <tromey@redhat.com>
12568         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
12569         * configure.ac: Don't invoke AM_PROG_CC_C_O.
12570         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
12571         * configure, config.in: Rebuild.
12573 2013-09-25  Tom Tromey  <tromey@redhat.com>
12575         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
12576         (COMPILE, POSTCOMPILE): New variables.
12577         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
12578         (DEPFILES): New variable.
12579         Include ".Po" files.
12580         * configure.ac: Add checks for dependency checking.
12581         * configure, aclocal.m4: Regenerate.
12583 2013-09-25  Tom Tromey  <tromey@redhat.com>
12585         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
12586         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
12588 2013-09-25  Tom Tromey  <tromey@redhat.com>
12590         * Makefile.in (generated_files): Add options.h,
12591         target-hooks-def.h, insn-opinit.h,
12592         common/common-target-hooks-def.h, pass-instances.def,
12593         c-family/c-target-hooks-def.h.
12595 2013-09-25  Jeff Law  <law@redhat.com>
12597         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
12598         than foo[foo.length () - 1] to access last member in a vec.
12599         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
12601 2013-09-25  Richard Biener  <rguenther@suse.de>
12603         PR middle-end/58521
12604         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
12606 2013-09-25  Jan Hubicka  <jh@suse.cz>
12608         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
12609         test.
12611 2013-09-25  Marek Polacek  <polacek@redhat.com>
12613         PR sanitizer/58420
12614         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
12615         when determining the type name.
12617 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
12619         * config/sh/sh.md: Fix formatting.
12621 2013-09-24  Xinliang David Li  <davidxl@google.com>
12623         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
12624         max peel iterations parameter.
12625         * param.def: New parameter.
12626         * doc/invoke.texi: Document New parameter.
12628 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
12630         * gimple-pretty-print.c: Various whitespace tweaks.
12631         * tree-core.h: Likewise.
12632         * tree-pretty-print.c: Likewise.
12633         * tree-ssa-alias.c: Likewise.
12634         * tree-ssa-copy.c: Likewise.
12635         * tree-ssanames.c: Likewise.
12636         * tree-ssanames.h: Likewise.
12637         * tree-vrp.c: Likewise.
12639 2013-09-24  Alan Modra  <amodra@gmail.com>
12641         PR middle-end/57134
12642         PR middle-end/57586
12643         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
12644         for output operands that disallow regs.  Don't use EXPAND_WRITE on
12645         inout operands.
12647 2013-09-24  Richard Biener  <rguenther@suse.de>
12649         PR middle-end/58513
12650         * tree.c (reference_alias_ptr_type): Move ...
12651         * alias.c (reference_alias_ptr_type): ... here and implement
12652         in terms of the new reference_alias_ptr_type_1.
12653         (ref_all_alias_ptr_type_p): New helper.
12654         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
12655         use ref_all_alias_ptr_type_p.
12656         (get_deref_alias_set): Add flag_strict_aliasing check here.
12657         (reference_alias_ptr_type_1): New function, split out from ...
12658         (get_alias_set): ... here.
12659         (alias_ptr_types_compatible_p): New function.
12660         * alias.h (reference_alias_ptr_type): Declare.
12661         (alias_ptr_types_compatible_p): Likewise.
12662         * tree.h (reference_alias_ptr_type): Remove.
12663         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
12664         to compare MEM_REF alias types.
12666 2013-09-24  Richard Biener  <rguenther@suse.de>
12668         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
12670 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12672         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
12673         reload helper function arrays into a single array reg_addr.
12674         (reload_fpr_gpr): Likewise.
12675         (reload_gpr_vsx): Likewise.
12676         (reload_vsx_gpr): Likewise.
12677         (struct rs6000_reg_addr): Likewise.
12678         (reg_addr): Likewise.
12679         (rs6000_debug_reg_global): Change rs6000_vector_reload,
12680         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
12681         (rs6000_init_hard_regno_mode_ok): Likewise.
12682         (rs6000_secondary_reload_direct_move): Likewise.
12683         (rs6000_secondary_reload): Likewise.
12685         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
12686         constraints: wu, ww, and wy.  Repurpose wv constraint added during
12687         power8 changes.  Put wg constraint in alphabetical order.
12689         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
12690         for future work to add ISA 2.07 VSX single precision support.
12691         (-mvsx-scalar-double): Change default from -1 to 1, update
12692         documentation comment.
12693         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
12694         (-mupper-regs-df): New debug switch to control whether DF values
12695         can go in the traditional Altivec registers.
12696         (-mupper-regs-sf): New debug switch to control whether SF values
12697         can go in the traditional Altivec registers.
12699         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
12700         and wy constraints.
12701         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
12702         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
12703         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
12704         (rs6000_debug_legitimate_address_p): Print if we are running
12705         before, during, or after reload.
12706         (rs6000_secondary_reload): Add a comment.
12707         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
12709         * config/rs6000/constraints.md (wa constraint): Sort w<x>
12710         constraints.  Update documentation string.
12711         (wd constraint): Likewise.
12712         (wf constraint): Likewise.
12713         (wg constraint): Likewise.
12714         (wn constraint): Likewise.
12715         (ws constraint): Likewise.
12716         (wt constraint): Likewise.
12717         (wx constraint): Likewise.
12718         (wz constraint): Likewise.
12719         (wu constraint): New constraint for ISA 2.07 SFmode scalar
12720         instructions.
12721         (ww constraint): Likewise.
12722         (wy constraint): Likewise.
12723         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
12724         in the previous submissions.
12725         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
12727 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
12729         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
12730         (REG_BR_PROB): Say that the probability is stored in an int_list.
12731         * reg-notes.def: Update commentary to mention INT_LIST.
12732         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
12733         (INT_LIST): New rtx.
12734         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
12735         * rtlanal.c (int_reg_note_p): New function.
12736         (alloc_reg_note): Assert that the note does not have an int argument.
12737         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
12738         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
12739         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
12740         rather than an INSN_LIST.  Handle INT_LIST.
12741         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
12742         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
12743         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
12744         Manipulate them as ints rather than rtxes.
12745         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
12746         * regmove.c (copy_src_to_dest): Likewise.
12747         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
12749         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
12750         into the cases that need it.
12751         * config/arm/arm.c (arm_unwind_emit): Likewise.
12753         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
12754         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
12755         * loop-doloop.c (add_test, doloop_modify): Likewise.
12756         * loop-unswitch.c (compare_and_jump_seq): Likewise.
12757         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
12758         * predict.c (combine_predictions_for_insn): Likewise.
12759         * print-rtl.c (print_rtx): Handle INT_LIST.
12760         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
12761         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
12762         * config/arm/arm.c (emit_unlikely_jump): Likewise.
12763         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
12764         (ix86_split_fp_branch, predict_jump): Likewise.
12765         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
12766         * config/sh/sh.c (expand_cbranchsi4): Likewise.
12767         * config/spu/spu.c (ea_load_store_inline): Likewise.
12769         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
12770         value of a REG_BR_PROB note.
12771         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12772         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
12773         * emit-rtl.c (try_split): Likewise.
12774         * predict.c (br_prob_note_reliable_p): Likewise.
12775         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
12776         * reorg.c (mostly_true_jump): Likewise.
12777         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
12778         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
12779         * config/i386/i386.c (ix86_print_operand): Likewise.
12780         * config/ia64/ia64.c (ia64_print_operand): Likewise.
12781         * config/mmix/mmix.c (mmix_print_operand): Likewise.
12782         * config/rs6000/rs6000.c (output_cbranch): Likewise.
12783         * config/s390/s390.c (s390_expand_tbegin): Likewise.
12784         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
12785         * config/sparc/sparc.c (output_cbranch): Likewise.
12786         * config/spu/spu.c (get_branch_target): Likewise.
12787         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
12788         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
12790 2013-09-23  Jan Hubicka  <jh@suse.cz>
12792         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
12793         for ipa-devirt.
12794         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
12795         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
12796         of external calls
12797         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
12798         (gimple_fold_call): Dump inconsistent devirtualizations; add
12799         sanity check for type based devirtualizations.
12800         * ipa-prop.c: Include ipa-utils.h
12801         (ipa_intraprocedural_devirtualization): Add sanity check.
12802         (try_make_edge_direct_virtual_call): Likewise.
12804 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
12806         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
12807         assignment statements.
12809 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
12811         * gimple-pretty-print.c (dump_ssaname_info): New function.
12812         (dump_gimple_phi): Call it.
12813         (pp_gimple_stmt_1): Likewise.
12814         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
12815         (range_info_def): Declare.
12816         * tree-pretty-print.c (pp_double_int): New function.
12817         (dump_generic_node): Call it.
12818         * tree-pretty-print.h (pp_double_int): Declare.
12819         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
12820         * tree-ssanames.h (range_info_def): New structure.
12821         (value_range_type): Move definition here.
12822         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
12823         Declare.
12824         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
12825         initialization.
12826         (set_range_info): New function.
12827         (get_range_info): Likewise.
12828         (duplicate_ssa_name_range_info): Likewise.
12829         (duplicate_ssa_name_fn): Check pointer type and call
12830         duplicate_ssa_name_range_info.
12831         * tree-ssa-copy.c (fini_copy_prop): Likewise.
12832         * tree-vrp.c (value_range_type): Remove definition, now in
12833         tree-ssanames.h.
12834         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
12835         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
12836         (SSA_NAME_RANGE_INFO): New macro.
12838 2013-09-23  Richard Biener  <rguenther@suse.de>
12840         PR tree-optimization/58464
12841         * tree-ssa-pre.c (phi_trans_lookup): Remove.
12842         (phi_trans_add): Change to add conditionally on being not present.
12843         (phi_translate_1): Remove recursion detection here.
12844         (phi_translate): Pre-seed the cache with NULL to catch
12845         recursion here in a more generic way.
12846         (bitmap_find_leader): Adjust comment.
12847         (get_representative_for): Dump value-numbers.
12848         (create_expression_by_pieces): Likewise.
12849         (insert_into_preds_of_block): Likewise.
12851 2013-09-23  Christian Bruel  <christian.bruel@st.com>
12853         PR target/58475
12854         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
12855         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
12857 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
12859         Revert r202780:
12860         2013-09-20  Renlin Li  <renlin.li@arm.com>
12862         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12863         plus_constant.
12864         (aarch64_expand_epilogue): Likewise.
12865         (aarch64_legitimize_reload_address): Likewise.
12867 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
12869         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
12870         NULL_TREE before pushing them onto the vector.  Likewise for labels.
12872 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
12874         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
12875         comparison operators when -fno-trapping-math is in effect.
12876         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
12877         comparison operators in TFmode and assert that unsupported operators
12878         cannot reach here.
12879         (ia64_print_operand): Likewise.
12881 2013-09-21  Jan Hubicka  <jh@suse.cz>
12883         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
12884         (sse_typeless_stores): Enable for core
12885         (sse_load0_by_pxor): Likewise.
12886         (four_jump_limit): Disable for core.
12887         (pad_returns): Likewise.
12888         (avoid_vector_decode): Likewise.
12889         (fuse_cmp_and_branch): Enable for cores.
12890         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
12892 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
12894         PR middle-end/56791
12895         * config/pa/pa.c (pa_option_override): Disable auto increment and
12896         decrement instructions until reload is completed.
12898         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
12899         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
12900         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12902 2013-09-20  DJ Delorie  <dj@redhat.com>
12903             Nick Clifton  <nickc@redhat.com>
12905         * config/rl78/rl78.c: Various whitespace and comment tweaks.
12906         (need_to_save): Save bank 0 on interrupts.
12907         (characterize_address): Strip far address wrappers.
12908         (rl78_as_legitimate_address): Likewise.
12909         (transcode_memory_rtx): Likewise.
12910         (rl78_peep_movhi_p): Disable this peephole after devirt.
12911         (rl78_propogate_register_origins): Forget all origins when a
12912         CLOBBER is seen.
12913         * config/rl78/rl78-virt.md: Various whitespace tweaks.
12914         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
12915         peephole2's.
12916         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
12917         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
12918         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
12919         relocating.
12920         * config/rl78/constraints.md: Various whitespace and paren tweaks.
12922 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
12924         * config/pa/pa.md: In "scc" insn patterns, change output template to
12925         handle const0_rtx in reg_or_0_operand operands.
12927 2013-09-20  Martin Husemann  <martin@NetBSD.org>
12929         PR target/56875
12930         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
12931         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
12933 2013-09-20  Richard Biener  <rguenther@suse.de>
12935         PR middle-end/58484
12936         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
12937         remembering SSA name version and block index.
12938         (new_scev_info_str): Adjust.
12939         (hash_scev_info): Likewise.  Also hash the block index.
12940         (eq_scev_info): Adjust.
12941         (find_var_scev_info): Likewise.
12942         (struct instantiate_cache_entry): Remove.
12943         (struct instantiate_cache_type): Use a htab to map name, block
12944         to chrec.
12945         (instantiate_cache_type::~instantiate_cache_type): Adjust.
12946         (get_instantiated_value_entry): Likewise.
12947         (hash_idx_scev_info, eq_idx_scev_info): New functions.
12948         (instantiate_scev_name): Adjust.
12950 2013-09-20  Jeff Law  <law@redhat.com>
12952         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
12954 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
12956         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
12957         Call aarch64_simd_expand_args to update op[argc].
12959 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
12961         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
12962         plugin argument.
12964 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
12966         * gengtype.c (file_rules): Added rule for *.cc files.
12967         (get_output_file_with_visibility): Give fatal message when no
12968         rules found.
12970 2013-09-20  Renlin Li  <renlin.li@arm.com>
12972         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
12973         (aarch64_expand_epilogue): Likewise.
12974         (aarch64_legitimize_reload_address): Likewise.
12976 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12978         PR middle-end/57748
12979         * expr.c (expand_assignment): Remove misalignp code path.
12981 2013-09-20  Marek Polacek  <polacek@redhat.com>
12983         PR sanitizer/58413
12984         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
12985         TYPE_PRECISION.  Add asserts.
12987 2013-09-20  Richard Biener  <rguenther@suse.de>
12989         PR tree-optimization/58453
12990         * tree-loop-distribution.c (distribute_loop): Apply the cost
12991         model for -ftree-loop-distribute-patterns, too.
12993 2013-09-20  Richard Biener  <rguenther@suse.de>
12995         PR middle-end/58473
12996         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
12997         make type comparison less strict.
12999 2013-09-20  Alan Modra  <amodra@gmail.com>
13001         * configure: Regenerate.
13002         * aclocal.m4: Regenerate.
13004 2013-09-20  Marek Polacek  <polacek@redhat.com>
13006         PR other/58467
13007         * doc/extend.texi: Document that attribute used is meant to be used
13008         on variables with static storage duration.
13010 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
13012         PR tree-optimization/58472
13013         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
13014         simd_lane_access set inv_p = false.
13015         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
13016         the simduid magic VAR_DECL.
13018 2013-09-19  Jan Hubicka  <jh@suse.cz>
13020         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
13022 2013-09-17  Jeff Law  <law@redhat.com>
13024         * tree-ssa-dom.c (record_temporary_equivalences): New function
13025         split out of dom_opt_dom_walker::after_dom_children.
13026         (dom_opt_dom_walker::thread_across_edge): Move common code
13027         in here from dom_opt_dom_walker::after_dom_children.
13028         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
13030 2013-09-19  Jan Hubicka  <jh@suse.cz>
13032         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
13033         (TARGET_GENERIC): Use PROCESOR_GENERIC
13034         (enum processor_type): Unify generic32 and 64.
13035         * i386.md (cpu): Likewise.
13036         * x86-tune.def (use_leave): Enable for generic32.
13037         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
13038         * athlon.md: Change generic64 to generic in all occurences.
13039         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
13040         (ix86_target_macros_internal): Likewise.
13041         * driver-i386.c (host_detect_local_cpu): Likewise.
13042         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
13043         to ..
13044         (generic_memcpy, generic_memset, generic_cost): This one.
13045         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
13046         (m_GENERIC32, m_GENERIC64): Remove.
13047         (m_GENERIC): Turn into one flag.
13048         (processor_target): Unify generic tunnings.
13049         (ix86_option_override_internal): Replace generic32/64 by generic.
13050         (ix86_issue_rate): Likewise.
13051         (ix86_adjust_cost): Likewise.
13053 2013-09-19  Jan Hubicka  <jh@suse.cz>
13055         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
13056         of speculative flag.
13058 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
13060         * omp-low.c (expand_omp_sections): Always pass len - 1 to
13061         GOMP_sections_start, even if !exit_reachable.
13063 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
13065         * lra-constraints.c (need_for_all_save_p): Use macro
13066         HARD_REGNO_CALL_PART_CLOBBERED.
13067         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
13068         set up pseudo conflict hard regs.
13070 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13072         PR target/58452
13073         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
13074         operands.
13076 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
13078         PR rtl-optimization/58438
13079         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
13080         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
13081         from previous subpasses.
13083 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
13085         * arm.c (arm_get_frame_offsets): Validate architecture supports
13086         LDRD/STRD before accepting the tuning preference.
13087         (arm_expand_prologue): Likewise.
13088         (arm_expand_epilogue): Likewise.
13090 2013-09-18  Richard Biener  <rguenther@suse.de>
13092         PR tree-optimization/58417
13093         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
13094         have chrecs with symbols defined in the loop as operands.
13095         (chrec_fold_multiply): Likewise.
13096         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
13097         parameters before folding binary operations.
13098         (struct instantiate_cache_entry_hasher): Remove.
13099         (struct instantiate_cache_type): Use a pointer-map.
13100         (instantiate_cache_type::instantiate_cache_type): New function.
13101         (instantiate_cache_type::get): Likewise.
13102         (instantiate_cache_type::set): Likewise.
13103         (instantiate_cache_type::~instantiate_cache_type): Adjust.
13104         (get_instantiated_value_entry): Likewise.
13105         (global_cache): New global.
13106         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
13107         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
13108         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
13109         (instantiate_scev_name): Adjust.
13110         (instantiate_scev): Construct global instead of local cache.
13111         (resolve_mixers): Likewise.
13113 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
13114             Paolo Carlini  <paolo.carlini@oracle.com>
13116         PR c++/58458
13117         * doc/implement-cxx.texi: Fix references to the C++ standards.
13119 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
13121         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
13122         * tree-vect-data-refs.c (vect_analyze_data_refs): For
13123         simd_lane_access drs, update also DR_ALIGNED_TO.
13125 2013-09-18  Marek Polacek  <polacek@redhat.com>
13127         PR sanitizer/58411
13128         * doc/extend.texi: Document no_sanitize_undefined attribute.
13129         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
13130         no_sanitize_undefined attribute.
13132 2013-09-18  Nick Clifton  <nickc@redhat.com>
13134         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
13135         (ASM_DECLARE_FUNCTION_NAME): Define.
13137 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
13139         * compare-elim.c (find_comparison_dom_walker): New class
13140         (find_comparisons_in_bb): Rename to
13141         find_comparison_dom_walker::before_dom_children
13142         (find_comparisons): Adjust
13143         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
13144         adjust.
13145         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
13146         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
13147         (init_walk_dominator_tree): Remove declaration.
13148         (fini_walk_dominator_tree): Remove declaration.
13149         * fwprop.c (single_def_use_dom_walker): New class
13150         (single_def_use_enter_block): Convert to
13151         single_def_use_dom_walker::before_dom_children.
13152         (single_def_use_leave_block): Convert to
13153         single_def_use_dom_walker::after_dom_children.
13154         (build_single_def_use_links): Adjust.
13155         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
13156         class.
13157         (find_candidates_in_block): Convert to
13158         find_candidates_dom_walker::before_dom_children.
13159         (execute_strength_reduction): Adjust.
13160         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
13161         (sese_dom_walker): New class.
13162         (sese_dom_walker::sese_dom_walker): New constructor.
13163         (sese_dom_walker::~sese_dom_walker): New destructor.
13164         (build_sese_conditions_before): Convert to
13165         sese_dom_walker::before_dom_children.
13166         (build_sese_conditions_after): Convert to
13167         sese_dom_walker::after_dom_children.
13168         (build_poly_scop): Adjust
13169         * tree-into-ssa.c (rewrite_dom_walker): New class
13170         (rewrite_enter_block): Convert to
13171         rewrite_dom_walker::before_dom_children.
13172         (rewrite_leave_block): Convert to
13173         rewrite_dom_walker::after_dom_children.
13174         (rewrite_update_dom_walker): New class.
13175         (rewrite_update_enter_block): Convert to
13176         rewrite_update_dom_walker::before_dom_children.
13177         (rewrite_update_leave_block): Convert to
13178         rewrite_update_dom_walker::after_dom_children.
13179         (rewrite_blocks, rewrite_into_ssa): Adjust.
13180         (mark_def_dom_walker): New class.
13181         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
13182         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
13183         (mark_def_sites_blocks): Convert to
13184         mark_def_dom_walker::before_dom_children.
13185         (mark_def_site_blocks): Remove.
13186         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
13187         (tree_ssa_dominator_optimize): Adjust.
13188         (dom_thread_across_edge): Convert to method
13189         dom_opt_dom_walker::thread_across_edge.
13190         (dom_opt_enter_block): Convert to member function
13191         dom_opt_dom_walker::before_dom_children.
13192         (dom_opt_leave_block): Convert to member function
13193         dom_opt_dom_walker::after_dom_children.
13194         * tree-ssa-dse.c (dse_dom_walker): New class.
13195         (dse_enter_block): Convert to member function
13196         dse_dom_walker::before_dom_children.
13197         (tree_ssa_dse): Adjust.
13198         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
13199         (determine_invariantness_stmt): Convert to method
13200         invariantness_dom_walker::before_dom_children.
13201         (determine_invariantness): Remove
13202         (move_computations_dom_walker): New class.
13203         (move_computations_stmt): Convert to method
13204         move_computations_dom_walker::before_dom_children.
13205         (move_computations, tree_ssa_lim): Adjust.
13206         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
13207         (nt_init_block): Convert to method
13208         notrappping_dom_walker::before_dom_children.
13209         (nt_fini_block): Convert to method
13210         method nontrapping_dom_walker::after_dom_children.
13211         (get_non_trapping): Adjust.
13212         * tree-ssa-pre.c (eliminate_dom_walker): New class.
13213         (eliminate_bb): Convert to method
13214         eliminate_dom_walker::before_dom_children.
13215         (eliminate_leave_block): Convert to method
13216         eliminate_dom_walker::after_dom_children.
13217         (eliminate): Adjust.
13218         * tree-ssa-strlen.c (strlen_dom_walker): New class.
13219         (strlen_enter_block): Convert to method
13220         strlen_dom_walker::before_dom_children.
13221         (strlen_leave_block): Convert to method
13222         method strlen_dom_walker::after_dom_children.
13223         (tree_ssa_strlen): Adjust.
13224         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
13225         (tree_ssa_uncprop): Adjust.
13226         (uncprop_leave_block): Convert to method
13227         uncprop_dom_walker::after_dom_children.
13228         (uncprop_leave_block): Convert to method
13229         uncprop_dom_walker::before_dom_children.
13231 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
13233         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
13234         branch in same basic block.  Check both src and dest of the move insn.
13236 2013-09-17  Nick Clifton  <nickc@redhat.com>
13238         * config/rl78/rl78-real.md (bf): New pattern.
13239         (bt): New pattern.
13240         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
13241         (rl78_print_operand): Do not put a # before a %B.
13242         * config/rl78/rl78.opt: Tweak doc strings.
13244 2013-09-17  DJ Delorie  <dj@redhat.com>
13246         * config/rl78/constraints.md (Wcv): Allow up to $r31.
13247         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
13248         (rl78_option_override): Likewise, if -mallregs.
13249         (is_virtual_register): Likewise.
13250         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
13251         (REGNO_OK_FOR_BASE_P): Likewise.
13252         * config/rl78/rl78.opt (-mallregs): New.
13254 2013-09-17  Nick Clifton  <nickc@redhat.com>
13256         * config/rl78/rl78.c (need_to_save): Change return type to bool.
13257         For interrupt functions: save all call clobbered registers if the
13258         interrupt handler is not a leaf function.
13259         (rl78_expand_prologue): Always recompute the frame information.
13260         For interrupt functions: only select bank 0 if one of the bank 0
13261         registers is going to be psuhed.
13263 2013-09-17  DJ Delorie  <dj@redhat.com>
13265         * config/rl78/constraints.md: For each W* constraint, rename to C*
13266         and create a W* constraint that checks for an optional ES: prefix
13267         pattern also.
13268         * config/rl78/rl78.md (UNS_ES_ADDR): New.
13269         (es_addr): New.  Used to wrap far addresses.
13270         * config/rl78/rl78-protos.h (rl78_es_addr): New.
13271         (rl78_es_base): New.
13272         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
13273         wrapped far addresses.
13274         (rl78_print_operand_1): Unwrap far addresses before processing.
13275         (rl78_lo16): Wrap far addresses in unspecs.
13276         (rl78_es_addr): New.
13277         (rl78_es_base): New.
13278         (insn_ok_now): Check for not-yet-wrapped far addresses.
13279         (transcode_memory_rtx): Properly re-wrap far addresses.
13281 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13283         * config/sparc/t-rtems: Add leon3 multilibs.
13285 2013-09-17  Cong Hou  <congh@google.com>
13287         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
13288         when checking the dot production pattern. The type of rhs operand
13289         of multiply is now checked correctly.
13291 2013-09-17  Jeff Law  <law@redhat.com>
13293         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13294         edge implied equivalences into successor phis.
13295         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
13296         here from tree-ssa-threadedge.c.
13297         (mark_threaded_blocks): When threading through a joiner, if both
13298         successors of the joiner's clone reach the same block, verify the
13299         PHI arguments are equal.  If not, cancel the jump threading request.
13300         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
13301         tree-ssa-threadupdate.c
13302         (thread_across_edge): Don't check PHI argument equality when
13303         threading through joiner block here.
13305 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
13307         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
13308         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
13309         (warn_uninit, warn_uninitialized_vars,
13310         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13311         Move to tree-ssa-uninit.c.
13312         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
13313         (has_undefined_value_p): New.  Pass dependant parts of
13314         ssa_undefined_value_p.
13315         (uninit_undefined_value_p): Use has_undefined_value_p.
13316         (warn_uninit, warn_uninitialized_vars,
13317         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13318         Move from tree-ssa.c.
13319         * tree-ssa.h: Adjust prototypes.
13321 2013-09-17  Jan Hubicka  <jh@suse.cz>
13323         PR middle-end/58332
13324         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
13325         * ipa-inline.c (can_inline_edge_p): Do not downgrade
13326         FUNCTION_NOT_OPTIMIZED.
13327         * ipa-inline-analysis.c (compute_inline_parameters): Function
13328         not optimized is not inlinable unless it is alwaysinline.
13329         (inline_analyze_function): Force calls in not optimized
13330         function not inlinable.
13332 2013-09-17  Jan Hubicka  <jh@suse.cz>
13334         PR middle-end/58329
13335         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
13336         to return NULL.
13337         * ipa.c (function_and_variable_visibility): Likewise.
13338         * ipa-profile.c (ipa_profile): Likewise.
13340 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13342         PR ipa/58398
13343         * cgraph.c (cgraph_function_body_availability): Check for ifunc
13344         attribute, and don't inline the resolver in this case.
13346 2013-09-17  Teresa Johnson  <tejohnson@google.com>
13348         * coverage.c (get_coverage_counts): Add missing newline.
13350 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13352         PR tree-optimization/58088
13353         * fold-const.c (mask_with_trailing_zeros): New function.
13354         (fold_binary_loc): Make sure we don't recurse infinitely
13355         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
13356         Use mask_with_trailing_zeros where appropriate.
13358 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
13360         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
13361         of 'prev' var to get better distance estimation.
13363 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13365         * tree-inline.h (struct copy_body_data): Add transform_parameter.
13366         * tree-inline.c (is_parameter_of): New predicate.
13367         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
13368         a parameter has been remapped.
13369         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
13370         (optimize_inline_calls): Initialize transform_parameter.
13371         (copy_gimple_seq_and_replace_locals): Likewise.
13372         (tree_function_versioning): Likewise.
13373         (maybe_inline_call_in_expr): Likewise.
13375 2013-09-17  Nick Clifton  <nickc@redhat.com>
13377         * config/msp430/msp430-protos.h: Add prototypes for new functions.
13378         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
13379         interrupt handlers.
13380         (is_attr_func): New function.
13381         (msp430_is_interrupt_func): New function.
13382         (is_naked_func): New function.
13383         (is_reentrant_func): New function.
13384         (is_critical_func): New function.
13385         (msp430_start_function): Add annotations for function attributes.
13386         (msp430_attr): New function.
13387         (msp430_attribute_table): New.
13388         (msp430_function_section): New function.
13389         (TARGET_ASM_FUNCTION_SECTION): Define.
13390         (msp430_builtin): New enum.
13391         (msp430_init_builtins): New function.
13392         (msp430_builtin_devl): New function.
13393         (msp430_expand_builtin): New function.
13394         (TARGET_INIT_BUILTINS): Define.
13395         (TARGET_EXPAND_BUILTINS): Define.
13396         (TARGET_BUILTIN_DECL): Define.
13397         (msp430_expand_prologue): Add support for naked, interrupt,
13398         critical and reentrant functions.
13399         (msp430_expand_epilogue): Likewise.
13400         (msp430_print_operand): Handle 'O' character.
13401         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
13402         NO_TRAMPOLINES.
13403         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
13404         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
13405         (pushm): Use a 'n' rather than an 'i' constraint.
13406         (msp_return): Add generation of the interrupt return instruction.
13407         (disable_interrupts): New pattern.
13408         (enable_interrupts): New pattern.
13409         (push_intr_state): New pattern.
13410         (pop_intr_state): New pattern.
13411         (bic_SR): New pattern.
13412         (bis_SR): New pattern.
13413         * doc/extend.texi: Document MSP430 function attributes and builtin
13414         functions.
13416 2013-09-17  Richard Biener  <rguenther@suse.de>
13418         PR tree-optimization/58432
13419         * tree-loop-distribution.c (tree_loop_distribution): Also
13420         scan PHIs for outside loop uses and seed a partition from them.
13422 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
13424         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
13425         (restructure_reference): Call backtrace_base_for_ref.
13427 2013-09-17  Alan Modra  <amodra@gmail.com>
13429         PR target/57589
13430         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
13431         patch.
13433 2013-09-16  DJ Delorie  <dj@redhat.com>
13435         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
13436         vregs location for RL78/G10.
13437         (rl78_expand_prologue): Avoid SEL on G10.
13438         (rl78_expand_epilogue): Likewise.
13439         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
13440         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13441         __RL78_G10__ when appropriate.
13442         (ASM_SPEC): Pass -mg10 along to the assembler.
13443         * config/rl78/rl78.md (sel_rb): Disable for G10.
13444         * config/rl78/rl78.opt: Add -mg10 option.
13445         * config/rl78/t-rl78: Add -mg10 multilib.
13447 2013-09-16  Xinliang David Li  <davidxl@google.com>
13449         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
13450         * omp-low.c (omp_max_vf): Ditto.
13451         (expand_omp_simd): Ditto.
13452         * tree-vectorizer.c (vectorize_loops): Ditto.
13453         (gate_vect_slp): Ditto.
13454         (gate_increase_alignment): Ditto.
13455         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
13456         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
13457         (gate_tree_vectorize): Name change.
13458         (tree_vectorize): Ditto.
13459         (pass_vectorize::gate): Call new function.
13460         (pass_vectorize::execute): Ditto.
13461         * opts.c: O3 default setting change.
13462         (finish_options): Check new flag.
13463         * doc/invoke.texi: Document new flags.
13464         * common.opt: New flags.
13466 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
13468         * doc/tm.texi.in (Cond Exec Macros): Remove node.
13469         (Condition Code): Don't reference it.
13470         * doc/tm.texi: Regenerate.
13472 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
13474         PR middle-end/58418
13475         * lra-constraints.c (undo_optional_reloads): Consider all optional
13476         reload even if it did not get a hard reg.
13478 2013-09-16  Teresa Johnson  <tejohnson@google.com>
13480         * dumpfile.c (dump_loc): Remove newline emission.
13481         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
13482         emission to dump_printf_loc calls where missing.
13483         (vect_mark_for_runtime_alias_test): Ditto.
13484         (vect_analyze_data_ref_dependence): Ditto.
13485         (vect_analyze_data_ref_dependences): Ditto.
13486         (vect_slp_analyze_data_ref_dependence): Ditto.
13487         (vect_slp_analyze_data_ref_dependences): Ditto.
13488         (vect_compute_data_ref_alignment): Ditto.
13489         (vect_update_misalignment_for_peel): Ditto.
13490         (vect_verify_datarefs_alignment): Ditto.
13491         (vector_alignment_reachable_p): Ditto.
13492         (vect_get_data_access_cost): Ditto.
13493         (vect_enhance_data_refs_alignment): Ditto.
13494         (vect_find_same_alignment_drs): Ditto.
13495         (vect_analyze_data_refs_alignment): Ditto.
13496         (vect_analyze_group_access): Ditto.
13497         (vect_analyze_data_ref_access): Ditto.
13498         (vect_analyze_data_ref_accesses): Ditto.
13499         (vect_prune_runtime_alias_test_list): Ditto.
13500         (vect_analyze_data_refs): Ditto.
13501         (vect_create_addr_base_for_vector_ref): Ditto.
13502         (vect_create_data_ref_ptr): Ditto.
13503         (vect_grouped_store_supported): Ditto.
13504         (vect_grouped_load_supported): Ditto.
13505         * value-prof.c (check_counter): Ditto.
13506         (check_ic_target): Ditto.
13507         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
13508         (vect_recog_widen_mult_pattern): Ditto.
13509         (vect_recog_widen_sum_pattern): Ditto.
13510         (vect_recog_over_widening_pattern): Ditto.
13511         (vect_recog_widen_shift_pattern): Ditto.
13512         (vect_recog_rotate_pattern): Ditto.
13513         (vect_recog_vector_vector_shift_pattern): Ditto.
13514         (vect_recog_divmod_pattern): Ditto.
13515         (vect_recog_mixed_size_cond_pattern): Ditto.
13516         (vect_recog_bool_pattern): Ditto.
13517         (vect_pattern_recog_1): Ditto.
13518         (vect_pattern_recog): Ditto.
13519         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
13520         (vect_is_simple_iv_evolution): Ditto.
13521         (vect_analyze_scalar_cycles_1): Ditto.
13522         (vect_get_loop_niters): Ditto.
13523         (vect_analyze_loop_1): Ditto.
13524         (vect_analyze_loop_form): Ditto.
13525         (vect_analyze_loop_operations): Ditto.
13526         (vect_analyze_loop_2): Ditto.
13527         (vect_analyze_loop): Ditto.
13528         (report_vect_op): Ditto.
13529         (vect_is_slp_reduction): Ditto.
13530         (vect_is_simple_reduction_1): Ditto.
13531         (vect_get_known_peeling_cost): Ditto.
13532         (vect_estimate_min_profitable_iters): Ditto.
13533         (vect_model_reduction_cost): Ditto.
13534         (vect_model_induction_cost): Ditto.
13535         (get_initial_def_for_induction): Ditto.
13536         (vect_create_epilog_for_reduction): Ditto.
13537         (vectorizable_reduction): Ditto.
13538         (vectorizable_induction): Ditto.
13539         (vectorizable_live_operation): Ditto.
13540         (vect_loop_kill_debug_uses): Ditto.
13541         (vect_transform_loop): Ditto.
13542         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
13543         (vect_stmt_relevant_p): Ditto.
13544         (process_use): Ditto.
13545         (vect_mark_stmts_to_be_vectorized): Ditto.
13546         (vect_model_simple_cost): Ditto.
13547         (vect_model_promotion_demotion_cost): Ditto.
13548         (vect_model_store_cost): Ditto.
13549         (vect_get_store_cost): Ditto.
13550         (vect_model_load_cost): Ditto.
13551         (vect_get_load_cost): Ditto.
13552         (vect_init_vector_1): Ditto.
13553         (vect_get_vec_def_for_operand): Ditto.
13554         (vect_finish_stmt_generation): Ditto.
13555         (vectorizable_call): Ditto.
13556         (vectorizable_conversion): Ditto.
13557         (vectorizable_assignment): Ditto.
13558         (vectorizable_shift): Ditto.
13559         (vectorizable_operation): Ditto.
13560         (vectorizable_store): Ditto.
13561         (vectorizable_load): Ditto.
13562         (vectorizable_condition): Ditto.
13563         (vect_analyze_stmt): Ditto.
13564         (vect_transform_stmt): Ditto.
13565         (vect_is_simple_use): Ditto.
13566         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
13567         (vect_can_advance_ivs_p): Ditto.
13568         (vect_update_ivs_after_vectorizer): Ditto.
13569         (vect_do_peeling_for_loop_bound): Ditto.
13570         (vect_gen_niters_for_prolog_loop): Ditto.
13571         (vect_update_inits_of_drs): Ditto.
13572         (vect_create_cond_for_alias_checks): Ditto.
13573         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
13574         (vect_build_slp_tree_1): Ditto.
13575         (vect_supported_load_permutation_p): Ditto.
13576         (vect_analyze_slp_instance): Ditto.
13577         (vect_analyze_slp): Ditto.
13578         (vect_make_slp_decision): Ditto.
13579         (vect_detect_hybrid_slp): Ditto.
13580         (vect_bb_vectorization_profitable_p): Ditto.
13581         (vect_slp_analyze_bb_1): Ditto.
13582         (vect_update_slp_costs_according_to_vf): Ditto.
13583         (vect_get_mask_element): Ditto.
13584         (vect_transform_slp_perm_load): Ditto.
13585         (vect_schedule_slp_instance): Ditto.
13586         (vect_schedule_slp): Ditto.
13587         (vect_slp_transform_bb): Ditto.
13588         * profile.c (read_profile_edge_counts): Ditto.
13589         (compute_branch_probabilities): Ditto.
13590         * coverage.c (get_coverage_counts): Ditto.
13592 2013-09-16  Diego Novillo  <dnovillo@google.com>
13594         * tree-core.h: Add missing comment lines from refactoring of tree.h.
13596 2013-09-16  Jan Hubicka  <jh@suse.cz>
13598         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
13599         abstract functions; for static functions check the presence of body.
13601 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
13603         * config/aarch64/aarch64-simd-builtins.def (fma): New.
13604         * config/aarch64/aarch64-simd.md
13605         (aarch64_mla_elt<mode>): New.
13606         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13607         (aarch64_mls_elt<mode>): Likewise.
13608         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13609         (aarch64_fma4_elt<mode>): Likewise.
13610         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13611         (aarch64_fma4_elt_to_128v2df): Likewise.
13612         (aarch64_fma4_elt_to_64df): Likewise.
13613         (fnma<mode>4): Likewise.
13614         (aarch64_fnma4_elt<mode>): Likewise.
13615         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
13616         (aarch64_fnma4_elt_to_128v2df): Likewise.
13617         (aarch64_fnma4_elt_to_64df): Likewise.
13618         * config/aarch64/iterators.md (VDQSF): New.
13619         * config/aarch64/arm_neon.h
13620         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
13621         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
13623 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
13625         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
13626         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13627         (aarch64_mul3_elt_to_128df): Likewise.
13628         (aarch64_mul3_elt_to_64v2df): Likewise.
13629         * config/aarch64/iterators.md (VEL): Also handle DFmode.
13630         (VMUL): New.
13631         (VMUL_CHANGE_NLANES) Likewise.
13632         (h_con): Likewise.
13633         (f): Likewise.
13634         * config/aarch64/arm_neon.h
13635         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
13637 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
13639         * config/aarch64/arm_neon.h
13640         (vcvtx_high_f32_f64): Fix parameters.
13642 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13643             Uros Bizjak  <ubizjak@gmail.com>
13645         * config/alpha.c: Include tree-ssanames.h.
13647 2013-09-16  Richard Biener  <rguenther@suse.de>
13649         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
13650         (dot_rdg_1): Handle control_dd.
13651         (create_edge_for_control_dependence): New function.
13652         (create_rdg_edges): Add control dependences if asked for.
13653         (build_rdg): Likewise.
13654         (generate_loops_for_partition): If there are not necessary
13655         control stmts remove all their dependencies.
13656         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
13657         (distribute_loop): Pass on control dependences.
13658         (tree_loop_distribution): Compute control dependences and remove
13659         restriction on number of loop nodes.
13661 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
13663         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
13664         for internal calls.
13666 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
13668         * cse.c (try_const_anchors): Punt on CC modes.
13670 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13672         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
13674 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
13676         PR target/58382
13677         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
13678         calls to word_mode.
13680 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
13682         PR target/48094
13683         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
13684         seen.
13685         (darwin_objc1_section): Likewise.
13686         (darwin_file_end): Emit Image Info section when required.
13688 2013-09-14  Jan Hubicka  <jh@suse.cz>
13690         * tree-into-ssa.c (gate_into_ssa): New.
13691         (pass_data_build_ssa): Use it.
13692         * cgraph.h (expand_thunk): Update prototype.
13693         * cgraphunit.c (analyze_function): Expand thunks early.
13694         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
13695         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
13696         set lowered flag; do not add new function.
13697         (assemble_thunks_and_aliases): Update.
13698         * tree-ssa.c (gate_init_datastructures): New gate.
13699         (pass_data_init_datastructures): Use it.
13701 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
13703         PR target/58269
13704         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
13705         xmm register set described in the psABI.
13707 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
13709         * dwarf2out.c (should_emit_struct_debug): Add check
13710         for type_decl variable is not NULL.
13712 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
13714         * config.gcc: Use new winnt-c.c target hooks
13715         * config/t-winnt: New file
13716         * config/winnt-c.c: New file
13717         * doc/tm.texi.in: Document new hook
13718         * doc/tm.texi: Regenerated
13720 2013-09-13  Jan Hubicka  <jh@suse.cz>
13722         PR middle-end/58094
13723         * ipa-inline.c (check_callers): New function.
13724         (check_caller_edge): Remove.
13725         (want_inline_function_to_all_callers_p): Also permit alises that are
13726         called dirrectly.
13727         (inline_to_all_callers): Terminate the walk when devirtualization
13728         introduce new calls.
13730 2013-09-13  Jan Hubicka  <jh@suse.cz>
13732         * ipa-inline-analysis.c (struct growth_data): Add node.
13733         (do_estimate_growth_1): Fix detection of recursion.
13735 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
13737         PR tree-optimization/58392
13738         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
13739         to avoid shadowing of outer loop variable.  If
13740         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
13741         replace_by_duplicate_decl simduid of loops that have it set and
13742         set dest_cfun->has_simduid_loops and/or
13743         dest_cfun->has_force_vect_loops.
13744         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
13745         instead of maybe_lookup_decl.
13746         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
13747         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
13748         call.  Copy over force_vect and copy and remap simduid.  Set
13749         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
13750         (copy_cfg_body): Remove blocks_to_copy argument.  Use
13751         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
13752         caller.  Don't set cfun->has_simduid_loops and/or
13753         cfun->has_force_vect_loops here.
13754         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
13755         caller.
13756         (expand_call_inline, tree_function_versioning): Adjust copy_body
13757         callers.
13759 2013-09-13  Martin Jambor  <mjambor@suse.cz>
13761         PR bootstrap/58388
13762         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
13763         the assert if the edge was a speculative one.
13765 2013-09-13  Richard Biener  <rguenther@suse.de>
13767         * tree-data-ref.h (known_dependences_p): Move here ...
13768         * tree-loop-distribution.c (known_dependences_p): ... from here.
13769         (dump_rdg_component, debug_rdg_component): Remove.
13770         (dump_rdg): Adjust.
13771         (generate_loops_for_partition): Use gimple_uid instead of
13772         relying on matching stmt visit order.
13773         (rdg_build_partitions): Take starting stmt vector.
13774         (ldist_gen): Merge into ...
13775         (distribute_loop): ... this function.  Do not compute starting
13776         vertices vector.
13777         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
13779 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13781         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
13782         Set type attribute correctly. Set predicable_short_it attribute.
13783         (cmpsi_shiftsi): Remove %? from output template.
13785 2013-09-13  Richard Biener  <rguenther@suse.de>
13787         * tree-loop-distribution.c (struct rdg_component,
13788         rdg_defs_used_in_other_loops_p, free_rdg_components,
13789         rdg_build_components): Remove.
13790         (stmts_from_loop): Do not record virtual PHIs.
13791         (generate_loops_for_partition): Skip virtual PHIs.
13792         (build_rdg_partition_for_component): Rename to ...
13793         (build_rdg_partition_for_vertex): ... this and adjust.
13794         (rdg_build_partitions): Take a vector of starting vertices
13795         instead of components.  Remove unnecessary leftover handling.
13796         (ldist_gen): Do not build components or record other stores.
13797         (distribute_loop): Do not distribute loops containing stmts
13798         with side-effects.
13800 2013-09-13  Christian Bruel  <christian.bruel@st.com>
13802         PR target/58314
13803         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
13805 2013-09-13  Kai Tietz  <ktietz@redhat.com>
13807         * config.gcc: Separate cases for mingw and cygwin targets,
13808         and add 64-bit cygwin target case.
13810         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
13811         dll-export inline-functions.
13812         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
13814 2013-09-13  Jeff Law  <law@redhat.com>
13816         PR middle-end/58387
13817         Revert:
13818         2013-09-06  Jeff Law  <law@redhat.com>
13820         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13821         edge implied equivalences into successor phis.
13823 2013-09-12  DJ Delorie  <dj@redhat.com>
13825         * config/rl78/rl78-virt.md: Change from | to \; for asm line
13826         separators.
13828 2013-09-12  Brooks Moses  <bmoses@google.com>
13830         PR driver/42955
13831         * Makefile.in: Do not install driver binaries in $(target)/bin.
13833 2013-09-12  DJ Delorie  <dj@redhat.com>
13835         * config/rl78/rl78.opt (mrelax): New.
13836         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
13837         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
13839         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
13840         between SP and FP.
13841         (rl78_expand_epilogue): Likewise.
13843 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
13845         PR middle-end/58335
13846         * lra-eliminations.c (remove_reg_equal_offset_note): New.
13847         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
13848         pointer elimination with using remove_reg_equal_offset_note.
13850 2013-09-12  DJ Delorie  <dj@redhat.com>
13852         * config/msp430/: New port.
13853         * config.gcc (msp430): Added.
13854         * doc/invoke.texi: Document MSP430 options.
13855         * doc/install.texi: Document msp430-elf
13856         * doc/md.texi: Document msp430-elf
13857         * doc/contrib.texi: Document msp430-elf
13859         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
13860         PSImode.
13862 2013-09-12  Martin Jambor  <mjambor@suse.cz>
13864         PR ipa/58389
13865         * ipa-prop.c (remove_described_reference): Give up if the edge in the
13866         reference descriptor is NULL.
13867         (ipa_edge_removal_hook): If owning a reference descriptor, set its
13868         edge to NULL.
13870 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
13872         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
13873         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
13874         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
13875         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
13876         make_temp_ssa_name): move to tree-ssanames.h
13877         * tree-ssa-alias.h: Move prototype.
13878         * tree-ssa.h: Include tree-ssanames.h.
13879         * tree-ssanames.c (FREE_SSANAMES): Move to here.
13880         * tree-ssanames.h: New.  Move items from tree-flow*.h
13881         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
13883 2013-09-12  Richard Biener  <rguenther@suse.de>
13885         PR tree-optimization/58404
13886         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
13887         propagate non-invariant addresses into dereferences wrapped
13888         in component references.
13890 2013-09-12  Richard Biener  <rguenther@suse.de>
13892         PR tree-optimization/58402
13893         * passes.def: Move pass_late_warn_uninitialized later.
13895 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
13897         * tree-ssa.h: New.  Move content from tree-flow.h and
13898         tree-flow-inline.h.
13899         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
13900         Move prototypes belonging to tree-ssa.c.
13901         * tree-flow-inline.h (redirect_edge_var_map_def,
13902         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
13903         tree-ssa.h.
13904         * gimple.h: Adjust prototypes.
13905         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
13906         to...
13907         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
13908         * tree.h: Move prototype to tree-ssa.h.
13909         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
13910         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
13911         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
13912         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
13913         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
13914         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
13915         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
13916         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
13917         graphite-blocking.c, graphite-clast-to-gimple.c,
13918         graphite-dependences.c, graphite-interchange.c,
13919         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
13920         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
13921         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
13922         ipa-reference.c, ipa-split.c, ipa-utils.c,
13923         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
13924         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
13925         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
13926         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
13927         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
13928         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13929         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
13930         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
13931         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
13932         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
13933         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
13934         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13935         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13936         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
13937         value-prof.c, var-tracking.c,
13938         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
13940 2013-09-12  Richard Biener  <rguenther@suse.de>
13942         PR tree-optimization/58396
13943         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
13944         (build_rdg): Take a loop-nest parameter, fix memleaks.
13945         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
13947 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
13949         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
13950         for SLM.
13952 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
13954         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
13955         The FMA instruction names should have a 'v' prefix.
13957 2013-09-12  Richard Biener  <rguenther@suse.de>
13959         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
13960         (dot_rdg): Use popen instead of system in optional code.
13961         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
13962         (already_processed_vertex_p): Adjust.
13963         (has_anti_or_output_dependence, predecessor_has_mem_write,
13964         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
13965         rdg_flag_uses): Remove.
13966         (rdg_flag_vertex): Simplify.
13967         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
13968         remove recursion.
13969         (build_rdg_partition_for_component): Process the first vertex
13970         of a component only.
13971         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
13973 2013-09-12  Alan Modra  <amodra@gmail.com>
13975         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
13977 2013-09-11  DJ Delorie  <dj@redhat.com>
13978             Nick Clifton  <nickc@redhat.com>
13980         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
13981         (rl78_stack_based_mem): New.
13982         * config/rl78/constraints.md (Iv08): New.
13983         (Iv16): New.
13984         (Iv24): New.
13985         (Is09): New.
13986         (Is17): New.
13987         (Is25): New.
13988         (ISsi): New.
13989         (IShi): New.
13990         (ISqi): New.
13991         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
13992         (movhi): Likewise.
13993         (movsi): Change from expand to insn-and-split.
13994         (ashrsi3): Clobber AX.
13995         (lshrsi3): New.
13996         (ashlsi3): New.
13997         (cbranchsi4): New.
13998         * config/rl78/rl78.md (CC_REG): Fix.
13999         (addsi3): Allow memory and immediate operands.
14000         (addsi3_internal): Split into...
14001         (addsi3_internal_virt): ...new, and ...
14002         (addsi3_internal_real): ...new.
14003         (subsi): New.
14004         (subsi3_internal_virt): New.
14005         (subsi3_internal_real): New.
14006         (mulsi3): Add memory operand.
14007         (mulsi3_rl78): Likewise.
14008         (mulsi3_g13): Likewise.
14009         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
14010         (cbranchqi4_real): Add more constraint options.
14011         (cbranchhi4_real): Expand pattern.
14012         (cbranchhi4_real_signed): New.
14013         (cbranchhi4_real_inverted): New.
14014         (cbranchsi4_real_lt): New.
14015         (cbranchsi4_real_ge): New.
14016         (cbranchsi4_real_signed): New.
14017         (cbranchsi4_real): New.
14018         (peephole2): New.
14019         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
14020         constant shifts.
14021         (lshrsi3_virt): Likewise.
14022         (ashlsi3_virt): Likewise.
14023         (cbranchqi4_virt_signed): New.
14024         (cbranchhi4_virt_signed): New.
14025         (cbranchsi4_virt): New.
14026         * config/rl78/rl78.c: Whitespace fixes throughout.
14027         (move_elim_pass): New.
14028         (pass_data_rl78_move_elim): New.
14029         (pass_rl78_move_elim): New.
14030         (make_pass_rl78_move_elim): New.
14031         (rl78_devirt_info): Run devirt earlier.
14032         (rl78_move_elim_info): New.
14033         (rl78_asm_file_start): Register it.
14034         (rl78_split_movsi): New.
14035         (rl78_as_legitimate_address): Allow virtual base registers when
14036         appropriate.
14037         (rl78_addr_space_convert): Remove spurious debug stuff.
14038         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
14039         (rl78_print_operand): More cases for not printing '#'.
14040         (rl78_expand_compare): Remove most of the logic.
14041         (content_memory): New.
14042         (clear_content_memory): New.
14043         (get_content_index): New.
14044         (get_content_name): New.
14045         (display_content_memory): New.
14046         (update_content): New.
14047         (record_content): New.
14048         (already_contains): New.
14049         (insn_ok_now): Re-recog insns with virtual registers.
14050         (add_postponed_content_update): New.
14051         (process_postponed_content_update): New.
14052         (gen_and_emit_move): New.
14053         (transcode_memory_rtx): Record new location content.
14054         Use gen_and_emit_move.
14055         (force_into_acc): New.
14056         (move_to_acc): Use gen_and_emit_move.
14057         (move_from_acc): Likewise.
14058         (move_acc_to_reg): Likewise.
14059         (move_to_x): Likewise.
14060         (move_to_hl): Likewise.
14061         (move_to_de): Likewise.
14062         (rl78_alloc_physical_registers_op1): Record location content.
14063         (has_constraint): New.
14064         (rl78_alloc_physical_registers_op2): Record location content.
14065         Optimize use of HL.
14066         (rl78_alloc_physical_registers_ro1): Likewise.
14067         (rl78_alloc_physical_registers_cmp): Likewise.
14068         (rl78_alloc_physical_registers_umul): Likewise.
14069         (rl78_alloc_address_registers_macax): New.
14070         (rl78_alloc_physical_registers): Initialize and set location
14071         content memory as needed.
14072         (rl78_reorg): Make sure split2 is called.
14073         (rl78_rtx_costs): New.
14075 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
14077         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
14078         for (not (neg ...)) and (neg (not ...)) cases.
14080 2013-09-11  Richard Biener  <rguenther@suse.de>
14082         PR middle-end/58377
14083         * passes.def: Split critical edges before late uninit warning passes.
14084         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
14086 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
14088         PR tree-optimization/58385
14089         * fold-const.c (build_range_check): If both low and high are NULL,
14090         use omit_one_operand_loc to preserve exp side-effects.
14092 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14094         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
14096 2013-09-11  Richard Biener  <rguenther@suse.de>
14098         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
14099         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
14100         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
14101         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
14102         stmts_from_loop, known_dependences_p, build_empty_rdg,
14103         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
14104         * tree-loop-distribution.c: ... here.
14105         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
14106         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
14107         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
14108         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
14109         * tree-loop-distribution.c: ... here.
14110         * tree-loop-distribution.c: Include gimple-pretty-print.h.
14111         (struct partition_s): Add loops member.
14112         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
14113         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
14114         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
14116 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14117             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14118             Sergey Lega  <sergey.s.lega@intel.com>
14119             Anna Tikhonova  <anna.tikhonova@intel.com>
14120             Ilya Tocar  <ilya.tocar@intel.com>
14121             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14122             Ilya Verbin  <ilya.verbin@intel.com>
14123             Kirill Yukhin  <kirill.yukhin@intel.com>
14124             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14126         * config/i386/constraints.md (k): New.
14127         (Yk): Ditto.
14128         * config/i386/i386.c (const regclass_map): Add new mask registers.
14129         (dbx_register_map): Ditto.
14130         (dbx64_register_map): Ditto.
14131         (svr4_dbx_register_map): Ditto.
14132         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
14133         disabled.
14134         (ix86_preferred_reload_class): Disable constants for mask registers.
14135         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
14136         (ix86_hard_regno_mode_ok): Support new mask registers.
14137         (x86_order_regs_for_local_alloc): Ditto.
14138         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
14139         (FIXED_REGISTERS): Add new mask registers.
14140         (CALL_USED_REGISTERS): Ditto.
14141         (REG_ALLOC_ORDER): Ditto.
14142         (VALID_MASK_REG_MODE): New.
14143         (FIRST_MASK_REG): Ditto.
14144         (LAST_MASK_REG): Ditto.
14145         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
14146         (MAYBE_MASK_CLASS_P): New.
14147         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
14148         (REG_CLASS_CONTENTS): Ditto.
14149         (MASK_REGNO_P): New.
14150         (ANY_MASK_REG_P): Ditto.
14151         (HI_REGISTER_NAMES): Add new mask registers.
14152         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
14153         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
14154         mask registers.
14155         (attribute "type"): Add mskmov, msklog.
14156         (attribute "length_immediate"): Support them.
14157         (attribute "memory"): Ditto.
14158         (attribute "prefix_0f"): Ditto.
14159         (*movhi_internal): Support new mask registers.
14160         (*movqi_internal): Ditto.
14161         (define_split): Split out clobber pattern is a logic
14162         insn on mask registers.
14163         (*k<logic><mode>): New.
14164         (*andhi_1): Extend to support mask regs.
14165         (*andqi_1): Extend to support mask regs.
14166         (kandn<mode>): New.
14167         (define_split): Split and-not to and and not if operands
14168         are not mask regs.
14169         (*<code><mode>_1): Separate HI mode to new pattern...
14170         (*<code>hi_1): This.
14171         (*<code>qi_1): Extend to support mask regs.
14172         (kxnor<mode>): New.
14173         (kortestzhi): Ditto.
14174         (kortestchi): Ditto.
14175         (kunpckhi): Ditto.
14176         (*one_cmpl<mode>2_1): Remove HImode and handle it...
14177         (*one_cmplhi2_1): ...Here, now with mask registers support.
14178         (*one_cmplqi2_1): Support new mask registers.
14179         (HI/QImode arithmetics splitter): Don't split if mask registers
14180         are used.
14181         (HI/QImode not splitter): Ditto.
14182         * config/i386/predicated.md (mask_reg_operand): New.
14183         (general_reg_operand): Ditto.
14185 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14187         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
14188         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
14190 2013-09-10  Jeff Law  <law@redhat.com>
14192         PR tree-optimization/58380
14193         * tree-ssa-threadupdate.c (thread_block): Recognize another case
14194         of threading through a buried loop header.
14196         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
14197         return value for single successor case.
14199 2013-09-10  Jan Hubicka  <jh@suse.cz>
14201         * ipa-devirt.c (ipa_devirt): Enable with LTO.
14203 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
14205         PR target/58361
14206         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
14207         support conditional execution.
14208         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
14210 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
14212         * lra.c (lra): Clear lra_optional_reload_pseudos before every
14213         constraint pass.
14214         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
14215         Check destination too to check move insn.
14216         (undo_optional_reloads): Add check that the original peudo did not
14217         changed its allocation and the optional reload was inherited on last
14218         inheritance pass.  Break loop after deciding to keep optional reload.
14219         (lra_undo_inheritance): Add check that inherited pseudo still in
14220         memory.
14222 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
14224         * config/aarch64/aarch64.md (generic_sched): New.
14225         * config/aarch64/aarch64-generic.md (load): Make conditional
14226         on generic_sched attribute.
14227         (nonload): Likewise.
14229 2013-09-10  Jan Hubicka  <jh@suse.cz>
14231         * lto-cgraph.c: Include ipa-utils.h.
14232         (compute_ltrans_boundary): Also add possible targets into the boundary.
14234 2013-09-10  Jan Hubicka  <jh@suse.cz>
14236         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
14237         VAR_DECL of vtable rather than full expression.
14239 2013-09-10  Jan Hubicka  <jh@suse.cz>
14240             Paolo Carlini  <paolo.carlini@oracle.com>
14242         * cgraphunit.c (analyze_functions): Save input_location, set it
14243         to UNKNOWN_LOCATION and restore it at the end.
14245 2013-09-10  Martin Jambor  <mjambor@suse.cz>
14247         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
14248         represented by a thunk.
14250 2013-09-10  Jeff Law  <law@redhat.com>
14252         PR tree-optimization/58343
14253         * tree-ssa-threadupdate.c (thread_block): Identify and disable
14254         jump threading requests through loop headers buried in the middle
14255         of a jump threading path.
14257         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
14258         in return value/type.
14260 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
14262         PR rtl-optimization/58365
14263         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
14264         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
14265         it differs.
14267 2013-09-10  Richard Biener  <rguenther@suse.de>
14269         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
14270         * tree-data-ref.c (create_rdg_vertices): Collect all data
14271         references, signal failure to the caller, use data-ref API.
14272         (build_rdg): Compute data references only once.  Maintain lifetime
14273         of data references and data dependences from within RDG.
14274         (free_rdg): Free dependence relations.
14275         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
14276         inventing extra dependences.
14277         (distribute_loop): Update for RDG API changes.
14279 2013-09-10  Kai Tietz  <ktietz@redhat.com>
14281         * doc/invoke.texi (fms-extensions): Document changed
14282         behavior for ms-abi targets.
14283         * config/i386/i386.c (ix86_option_override_internal):
14284         Set default value of option -fms-extension for ms-abi targets.
14286 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14288         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
14290 2013-09-10  Alan Modra  <amodra@gmail.com>
14292         PR target/58330
14293         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
14295 2013-09-10  Alan Modra  <amodra@gmail.com>
14297         * config/rs6000/predicates.md (add_cint_operand): New.
14298         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
14299         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
14300         using add_cint_operand.
14301         (largetoc_high_plus_aix): Likewise.
14303 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
14305         PR tree-optimization/58364
14306         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
14307         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
14308         the current range can't be an unconditional true or false.
14310 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
14312         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
14314 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
14316         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
14318 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
14320         PR c++/43452
14321         * doc/invoke.texi (-Wdelete-incomplete): Document it.
14323 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
14325         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
14326         NO_REGS for immediate that can't be moved directly into FP_REGS.
14328 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14330         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
14331         comparison with negated operand.
14332         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
14333         RTL form.
14335 2013-09-09  Richard Biener  <rguenther@suse.de>
14337         PR middle-end/58326
14338         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
14339         of a subloop record all its block as affecting loop-closed SSA form.
14341 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14343         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
14344         of an rtx/bitpos pair.
14345         (store_fixed_bit_field): Update accordingly.
14347 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14349         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
14350         GEN_INT.
14351         * builtins.c (expand_errno_check): Likewise.
14352         * dwarf2cfi.c (init_return_column_size): Likewise.
14353         * except.c (sjlj_mark_call_sites): Likewise.
14354         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14355         * lra-constraints.c (emit_inc): Likewise.
14356         * ree.c (combine_set_extension): Likewise.
14357         * regmove.c (fixup_match_2): Likewise.
14358         * reload1.c (inc_for_reload): Likewise.
14360 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14362         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
14363         (force_to_mode, simplify_shift_const_1, simplify_comparison):
14364         Use gen_int_mode with the mode of the associated simplify_* call.
14365         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
14366         * expmed.c (expand_shift_1): Likewise.
14367         * function.c (instantiate_virtual_regs_in_insn): Likewise.
14368         * loop-iv.c (iv_number_of_iterations): Likewise.
14369         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14370         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14372 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14374         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
14375         of the associated expand_* call.
14376         (asan_emit_stack_protection): Likewise.
14377         * builtins.c (round_trampoline_addr): Likewise.
14378         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
14379         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
14380         (emit_store_flag): Likewise.
14381         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
14382         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
14383         Likewise.
14384         * function.c (instantiate_virtual_regs_in_insn): Likewise.
14385         * ifcvt.c (noce_try_store_flag_constants): Likewise.
14386         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14387         * modulo-sched.c (generate_prolog_epilog): Likewise.
14388         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
14389         (expand_ctz, expand_ffs, expand_unop): Likewise.
14391 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14393         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
14394         of the associated gen_rtx_* call.
14395         * caller-save.c (init_caller_save): Likewise.
14396         * combine.c (find_split_point, make_extraction): Likewise.
14397         (make_compound_operation): Likewise.
14398         * dwarf2out.c (mem_loc_descriptor): Likewise.
14399         * explow.c (plus_constant, probe_stack_range): Likewise.
14400         * expmed.c (expand_mult_const): Likewise.
14401         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
14402         * reload1.c (init_reload): Likewise.
14403         * valtrack.c (cleanup_auto_inc_dec): Likewise.
14404         * var-tracking.c (adjust_mems): Likewise.
14405         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
14406         rather than gen_rtx_fmt_ee.
14408 2013-09-09  Jan Hubicka  <jh@suse.cz>
14410         PR middle-end/58294
14411         * value-prof.c (gimple_ic): Copy also abnormal edges.
14413 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14415         * asan.c (asan_shadow_cst): Use gen_int_mode.
14417 2013-09-08  Jan Hubicka  <jh@suse.cz>
14419         * ipa-profile.c: Add toplevel comment.
14420         (ipa_propagate_frequency_1): Be more conservative when profile is read.
14421         (contains_hot_call_p): New function.
14422         (ipa_propagate_frequency): Set frequencies based on counts when
14423         profile is read.
14424         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
14425         profile; do not tamper with profile after inlining if it is read.
14427 2013-09-08  Jan Hubicka  <jh@suse.cz>
14429         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
14430         speculative edges.
14432 2013-09-08  Jan Hubicka  <jh@suse.cz>
14434         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
14435         summary generation.
14437 2013-09-08  Jeff Law  <law@redhat.com>
14439         PR bootstrap/58340
14440         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
14441         of 'found'.
14443 2013-09-08  Andi Kleen  <ak@linux.intel.com>
14445         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
14447 2013-09-08  Jan Hubicka  <jh@suse.cz>
14449         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
14451 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
14453         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
14454         for non-debug insns.
14455         * lra.c (new_insn_reg): Take the containing insn as a parameter.
14456         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
14457         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
14458         accordingly.
14460 2013-09-08  Jan Hubicka  <jh@suse.cz>
14462         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
14463         targets and devirtualize to BUILT_IN_UNREACHABLE.
14464         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
14465         * ipa.c (walk_polymorphic_call_targets): New function.
14466         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
14467         functions; use the new timevar.
14468         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
14469         was removed from the program.
14470         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
14471         not consider it in the walk when its vtable is dead.
14472         (possible_polymorphic_call_targets_1): Pass anonymous flag to
14473         record_binfo.
14474         (devirt_variable_node_removal_hook): New function.
14475         (possible_polymorphic_call_targets): Also register
14476         devirt_variable_node_removal_hook.
14477         (ipa_devirt): Do not do non-speculative devirtualization.
14478         (gate_ipa_devirt): One execute if devirtualizing speculatively.
14480 2013-09-08  Jan Hubicka  <jh@suse.cz>
14482         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
14483         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
14484         varpool_remove_variable_insertion_hook): Declare.
14485         * varpool.c (varpool_node_hook_list): New structure.
14486         (first_varpool_node_removal_hook,
14487         first_varpool_variable_insertion_hook): New variables.
14488         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
14489         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
14490         varpool_remove_variable_insertion_hook,
14491         varpool_call_variable_insertion_hooks): New functions.
14492         (varpool_remove_node): Use it.
14494 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
14496         PR c++/54941
14497         * diagnostic.c (diagnostic_build_prefix): When s.file is
14498         "<built-in>" don't output line and column numbers.
14500 2013-09-06  Jan Hubicka  <jh@suse.cz>
14502         * cgraphunit.c (expand_thunk): Get body before touching arguments.
14503         * lto-streamer-out.c: Stream thunks, too.
14504         * lto-streamer-in.c (input_function): Pop cfun here
14505         (lto_read_body): Instead of here.
14507 2013-09-06  Caroline Tice  <cmtice@google.com>
14509         * doc/install.texi: Add documentation for the --enable-vtable-verify
14510         and the --disable-libvtv configure options.
14512 2013-09-06  Jeff Law  <law@redhat.com>
14514         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14515         edge implied equivalences into successor phis.
14517 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
14519         * resource.c (mark_referenced_resources): Handle COND_EXEC.
14521 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
14523         * resource.c (mark_target_live_regs): Compute resources taking
14524         into account if a call is predicated or not.
14526 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
14528         * toplev.c (output_stack_usage): Be prepared for suffixes created by
14529         the compiler in the function names.
14531 2013-09-06  Jan Hubicka  <jh@suse.cz>
14533         PR middle-end/58094
14534         * ipa-inline.c (has_caller_p): New function.
14535         (want_inline_function_to_all_callers_p): Use it.
14536         (sum_callers, inline_to_all_callers): Break out from ...
14537         (ipa_inline): ... here.
14539 2013-09-06  Jan Hubicka  <jh@suse.cz>
14541         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
14542         only when AVX is enabled.
14544 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14546         * config/aarch64/aarch64.md
14547         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
14548         is fpsimd_<load/store>2.
14549         (load_pair<mode>): Likewise.
14550         (store_pair<mode>): Likewise.
14552 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14554         * config/arm/types.md (type): Add "mrs" type.
14555         * config/aarch64/aarch64.md
14556         (aarch64_load_tp_hard): Make type "mrs".
14557         * config/arm/arm.md
14558         (load_tp_hard): Make type "mrs".
14559         * config/arm/cortex-a15.md: Update with new attributes.
14560         * config/arm/cortex-a5.md: Update with new attributes.
14561         * config/arm/cortex-a53.md: Update with new attributes.
14562         * config/arm/cortex-a7.md: Update with new attributes.
14563         * config/arm/cortex-a8.md: Update with new attributes.
14564         * config/arm/cortex-a9.md: Update with new attributes.
14565         * config/arm/cortex-m4.md: Update with new attributes.
14566         * config/arm/cortex-r4.md: Update with new attributes.
14567         * config/arm/fa526.md: Update with new attributes.
14568         * config/arm/fa606te.md: Update with new attributes.
14569         * config/arm/fa626te.md: Update with new attributes.
14570         * config/arm/fa726te.md: Update with new attributes.
14572 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14574         * config/aarch64/aarch64.md
14575         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
14576         (*movtf_aarch64): Likewise.
14577         * config/arm/arm.md
14578         (thumb1_movdi_insn): Use "multiple" for type where more than one
14579         instruction is used for a move.
14580         (*arm32_movhf): Likewise.
14581         (*thumb_movdf_insn): Likewise.
14583 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14585         * config/arm/types.md (type): Rename fcpys to fmov.
14586         * config/arm/vfp.md
14587         (*arm_movsi_vfp): Rename type fcpys as fmov.
14588         (*thumb2_movsi_vfp): Likewise
14589         (*movhf_vfp_neon): Likewise
14590         (*movhf_vfp): Likewise
14591         (*movsf_vfp): Likewise
14592         (*thumb2_movsf_vfp): Likewise
14593         (*movsfcc_vfp): Likewise
14594         (*thumb2_movsfcc_vfp): Likewise
14595         * config/aarch64/aarch64-simd.md
14596         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
14597         * config/aarch64/aarch64.md
14598         (*movsi_aarch64): Replace type mov_reg with fmovs.
14599         (*movdi_aarch64): Likewise
14600         (*movsf_aarch64): Likewise
14601         (*movdf_aarch64): Likewise
14602         * config/arm/arm.c
14603         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
14604         * config/arm/iwmmxt.md
14605         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
14606         * config/arm/arm1020e.md: Update with new attributes.
14607         * config/arm/cortex-a15-neon.md: Update with new attributes.
14608         * config/arm/cortex-a5.md: Update with new attributes.
14609         * config/arm/cortex-a53.md: Update with new attributes.
14610         * config/arm/cortex-a7.md: Update with new attributes.
14611         * config/arm/cortex-a8-neon.md: Update with new attributes.
14612         * config/arm/cortex-a9.md: Update with new attributes.
14613         * config/arm/cortex-m4-fpu.md: Update with new attributes.
14614         * config/arm/cortex-r4f.md: Update with new attributes.
14615         * config/arm/marvell-pj4.md: Update with new attributes.
14616         * config/arm/vfp11.md: Update with new attributes.
14618 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14620         * config/aarch64/aarch64.md
14621         (*madd<mode>): Fix type attribute.
14622         (*maddsi_uxtw): Likewise.
14623         (*msub<mode>): Likewise.
14624         (*msubsi_uxtw): Likewise.
14625         (<su_optab>maddsidi4): Likewise.
14626         (<su_optab>msubsidi4): Likewise.
14628 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14630         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
14631         * config/arm/arm.md (core_cycles): Remove fdiv.
14632         * config/arm/vfp.md:
14633         (*sqrtsf2_vfp): Update for attribute changes.
14634         (*sqrtdf2_vfp): Likewise.
14635         * config/aarch64/aarch64.md:
14636         (sqrt<mode>2): Update for attribute changes.
14637         * config/arm/arm1020e.md: Update with new attributes.
14638         * config/arm/cortex-a15-neon.md: Update with new attributes.
14639         * config/arm/cortex-a5.md: Update with new attributes.
14640         * config/arm/cortex-a53.md: Update with new attributes.
14641         * config/arm/cortex-a7.md: Update with new attributes.
14642         * config/arm/cortex-a8-neon.md: Update with new attributes.
14643         * config/arm/cortex-a9.md: Update with new attributes.
14644         * config/arm/cortex-m4-fpu.md: Update with new attributes.
14645         * config/arm/cortex-r4f.md: Update with new attributes.
14646         * config/arm/marvell-pj4.md: Update with new attributes.
14647         * config/arm/vfp11.md: Update with new attributes.
14649 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14651         * config/arm/types.md
14652         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
14653         * config/aarch64/aarch64.md
14654         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
14655         new attributes.
14656         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
14657         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
14658         (float<GPI:mode><GPF:mode>2): Likewise.
14659         * config/arm/vfp.md
14660         (*truncsisf2_vfp): Update with new attributes.
14661         (*truncsidf2_vfp): Likewise.
14662         (fixuns_truncsfsi2): Likewise.
14663         (fixuns_truncdfsi2): Likewise.
14664         (*floatsisf2_vfp): Likewise.
14665         (*floatsidf2_vfp): Likewise.
14666         (floatunssisf2): Likewise.
14667         (floatunssidf2): Likewise.
14668         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
14669         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
14670         * config/arm/arm1020e.md: Update with new attributes.
14671         * config/arm/cortex-a15-neon.md: Update with new attributes.
14672         * config/arm/cortex-a5.md: Update with new attributes.
14673         * config/arm/cortex-a53.md: Update with new attributes.
14674         * config/arm/cortex-a7.md: Update with new attributes.
14675         * config/arm/cortex-a8-neon.md: Update with new attributes.
14676         * config/arm/cortex-a9.md: Update with new attributes.
14677         * config/arm/cortex-m4-fpu.md: Update with new attributes.
14678         * config/arm/cortex-r4f.md: Update with new attributes.
14679         * config/arm/marvell-pj4.md: Update with new attributes.
14680         * config/arm/vfp11.md: Update with new attributes.
14682 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14684         * config/aarch64/arm_neon.h
14685         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
14686         (vqtbx<1,2,3,4><q>_s8): Likewise.
14688 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14690         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
14691         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
14692         (add<mode>3): Add type attribute.
14693         (add<mode>3): Likewise.
14694         (usadd<mode>3): Likewise.
14695         (ssadd<mode>3): Likewise.
14696         (sub<mode>3): Likewise.
14697         (sub<mode>3): Likewise.
14698         (ussub<mode>3): Likewise.
14699         (sssub<mode>3): Likewise.
14700         (ssmulsa3): Likewise.
14701         (usmulusa3): Likewise.
14702         (arm_usatsihi): Likewise.
14703         * config/arm/vfp.md
14704         (*movdi_vfp): Add types for all instructions.
14705         (*movdi_vfp_cortexa8): Likewise.
14706         (*movhf_vfp_neon): Likewise.
14707         (*movhf_vfp): Likewise.
14708         (*movdf_vfp): Likewise.
14709         (*thumb2_movdf_vfp): Likewise.
14710         (*thumb2_movdfcc_vfp): Likewise.
14711         * config/arm/arm.md: Add type attribute to all insn patterns.
14712         (*thumb1_adddi3): Add type attribute.
14713         (*arm_adddi3): Likewise.
14714         (*adddi_sesidi_di): Likewise.
14715         (*adddi_zesidi_di): Likewise.
14716         (*thumb1_addsi3): Likewise.
14717         (addsi3_compare0): Likewise.
14718         (*addsi3_compare0_scratch): Likewise.
14719         (*compare_negsi_si): Likewise.
14720         (cmpsi2_addneg): Likewise.
14721         (*addsi3_carryin_<optab>): Likewise.
14722         (*addsi3_carryin_alt2_<optab>): Likewise.
14723         (*addsi3_carryin_clobercc_<optab>): Likewise.
14724         (*subsi3_carryin): Likewise.
14725         (*subsi3_carryin_const): Likewise.
14726         (*subsi3_carryin_compare): Likewise.
14727         (*subsi3_carryin_compare_const): Likewise.
14728         (*arm_subdi3): Likewise.
14729         (*thumb_subdi3): Likewise.
14730         (*subdi_di_zesidi): Likewise.
14731         (*subdi_di_sesidi): Likewise.
14732         (*subdi_zesidi_di): Likewise.
14733         (*subdi_sesidi_di): Likewise.
14734         (*subdi_zesidi_ze): Likewise.
14735         (thumb1_subsi3_insn): Likewise.
14736         (*arm_subsi3_insn): Likewise.
14737         (*anddi3_insn): Likewise.
14738         (*anddi_zesidi_di): Likewise.
14739         (*anddi_sesdi_di): Likewise.
14740         (*ne_zeroextracts): Likewise.
14741         (*ne_zeroextracts): Likewise.
14742         (*ite_ne_zeroextr): Likewise.
14743         (*ite_ne_zeroextr): Likewise.
14744         (*anddi_notdi_di): Likewise.
14745         (*anddi_notzesidi): Likewise.
14746         (*anddi_notsesidi): Likewise.
14747         (andsi_notsi_si): Likewise.
14748         (thumb1_bicsi3): Likewise.
14749         (*iordi3_insn): Likewise.
14750         (*iordi_zesidi_di): Likewise.
14751         (*iordi_sesidi_di): Likewise.
14752         (*thumb1_iorsi3_insn): Likewise.
14753         (*xordi3_insn): Likewise.
14754         (*xordi_zesidi_di): Likewise.
14755         (*xordi_sesidi_di): Likewise.
14756         (*arm_xorsi3): Likewise.
14757         (*andsi_iorsi3_no): Likewise.
14758         (*smax_0): Likewise.
14759         (*smax_m1): Likewise.
14760         (*arm_smax_insn): Likewise.
14761         (*smin_0): Likewise.
14762         (*arm_smin_insn): Likewise.
14763         (*arm_umaxsi3): Likewise.
14764         (*arm_uminsi3): Likewise.
14765         (*minmax_arithsi): Likewise.
14766         (*minmax_arithsi_): Likewise.
14767         (*satsi_<SAT:code>): Likewise.
14768         (arm_ashldi3_1bit): Likewise.
14769         (arm_ashrdi3_1bit): Likewise.
14770         (arm_lshrdi3_1bit): Likewise.
14771         (*arm_negdi2): Likewise.
14772         (*thumb1_negdi2): Likewise.
14773         (*arm_negsi2): Likewise.
14774         (*thumb1_negsi2): Likewise.
14775         (*negdi_extendsid): Likewise.
14776         (*negdi_zero_extend): Likewise.
14777         (*arm_abssi2): Likewise.
14778         (*thumb1_abssi2): Likewise.
14779         (*arm_neg_abssi2): Likewise.
14780         (*thumb1_neg_abss): Likewise.
14781         (one_cmpldi2): Likewise.
14782         (extend<mode>di2): Likewise.
14783         (*compareqi_eq0): Likewise.
14784         (*arm_extendhisi2addsi): Likewise.
14785         (*arm_movdi): Likewise.
14786         (*thumb1_movdi_insn): Likewise.
14787         (*arm_movt): Likewise.
14788         (*thumb1_movsi_insn): Likewise.
14789         (pic_add_dot_plus_four): Likewise.
14790         (pic_add_dot_plus_eight): Likewise.
14791         (tls_load_dot_plus_eight): Likewise.
14792         (*thumb1_movhi_insn): Likewise.
14793         (*thumb1_movsf_insn): Likewise.
14794         (*movdf_soft_insn): Likewise.
14795         (*thumb_movdf_insn): Likewise.
14796         (cbranchsi4_insn): Likewise.
14797         (cbranchsi4_scratch): Likewise.
14798         (*negated_cbranchsi4): Likewise.
14799         (*tbit_cbranch): Likewise.
14800         (*tlobits_cbranch): Likewise.
14801         (*tstsi3_cbranch): Likewise.
14802         (*cbranchne_decr1): Likewise.
14803         (*addsi3_cbranch): Likewise.
14804         (*addsi3_cbranch_scratch): Likewise.
14805         (*arm_cmpdi_insn): Likewise.
14806         (*arm_cmpdi_unsig): Likewise.
14807         (*arm_cmpdi_zero): Likewise.
14808         (*thumb_cmpdi_zero): Likewise.
14809         (*deleted_compare): Likewise.
14810         (*mov_scc): Likewise.
14811         (*mov_negscc): Likewise.
14812         (*mov_notscc): Likewise.
14813         (*cstoresi_eq0_thumb1_insn): Likewise.
14814         (cstoresi_nltu_thumb1): Likewise.
14815         (cstoresi_ltu_thu): Likewise.
14816         (thumb1_addsi3_addgeu): Likewise.
14817         (*arm_jump): Likewise.
14818         (*thumb_jump): Likewise.
14819         (*check_arch2): Likewise.
14820         (arm_casesi_internal): Likewise.
14821         (thumb1_casesi_dispatch): Likewise.
14822         (*arm_indirect_jump): Likewise.
14823         (*thumb1_indirect_jump): Likewise.
14824         (nop): Likewise.
14825         (*and_scc): Likewise.
14826         (*ior_scc): Likewise.
14827         (*compare_scc): Likewise.
14828         (*cond_move): Likewise.
14829         (*cond_arith): Likewise.
14830         (*cond_sub): Likewise.
14831         (*cmp_ite0): Likewise.
14832         (*cmp_ite1): Likewise.
14833         (*cmp_and): Likewise.
14834         (*cmp_ior): Likewise.
14835         (*ior_scc_scc): Likewise.
14836         (*ior_scc_scc_cmp): Likewise.
14837         (*and_scc_scc): Likewise.
14838         (*and_scc_scc_cmp): Likewise.
14839         (*and_scc_scc_nod): Likewise.
14840         (*negscc): Likewise.
14841         (movcond_addsi): Likewise.
14842         (movcond): Likewise.
14843         (*ifcompare_plus_move): Likewise.
14844         (*if_plus_move): Likewise.
14845         (*ifcompare_move_plus): Likewise.
14846         (*if_move_plus): Likewise.
14847         (*ifcompare_arith_arith): Likewise.
14848         (*if_arith_arith): Likewise.
14849         (*ifcompare_arith_move): Likewise.
14850         (*if_arith_move): Likewise.
14851         (*ifcompare_move_arith): Likewise.
14852         (*if_move_arith): Likewise.
14853         (*ifcompare_move_not): Likewise.
14854         (*if_move_not): Likewise.
14855         (*ifcompare_not_move): Likewise.
14856         (*if_not_move): Likewise.
14857         (*ifcompare_shift_move): Likewise.
14858         (*if_shift_move): Likewise.
14859         (*ifcompare_move_shift): Likewise.
14860         (*if_move_shift): Likewise.
14861         (*ifcompare_shift_shift): Likewise.
14862         (*ifcompare_not_arith): Likewise.
14863         (*ifcompare_arith_not): Likewise.
14864         (*if_arith_not): Likewise.
14865         (*ifcompare_neg_move): Likewise.
14866         (*if_neg_move): Likewise.
14867         (*ifcompare_move_neg): Likewise.
14868         (*if_move_neg): Likewise.
14869         (prologue_thumb1_interwork): Likewise.
14870         (*cond_move_not): Likewise.
14871         (*sign_extract_onebit): Likewise.
14872         (*not_signextract_onebit): Likewise.
14873         (stack_tie): Likewise.
14874         (align_4): Likewise.
14875         (align_8): Likewise.
14876         (consttable_end): Likewise.
14877         (consttable_1): Likewise.
14878         (consttable_2): Likewise.
14879         (consttable_4): Likewise.
14880         (consttable_8): Likewise.
14881         (consttable_16): Likewise.
14882         (*thumb1_tablejump): Likewise.
14883         (prefetch): Likewise.
14884         (force_register_use): Likewise.
14885         (thumb_eh_return): Likewise.
14886         (load_tp_hard): Likewise.
14887         (load_tp_soft): Likewise.
14888         (tlscall): Likewise.
14889         (*arm_movtas_ze): Likewise.
14890         (*arm_rev): Likewise.
14891         (*arm_revsh): Likewise.
14892         (*arm_rev16): Likewise.
14893         * config/arm/thumb2.md
14894         (*thumb2_smaxsi3): Likewise.
14895         (*thumb2_sminsi3): Likewise.
14896         (*thumb32_umaxsi3): Likewise.
14897         (*thumb2_uminsi3): Likewise.
14898         (*thumb2_negdi2): Likewise.
14899         (*thumb2_abssi2): Likewise.
14900         (*thumb2_neg_abss): Likewise.
14901         (*thumb2_movsi_insn): Likewise.
14902         (tls_load_dot_plus_four): Likewise.
14903         (*thumb2_movhi_insn): Likewise.
14904         (*thumb2_mov_scc): Likewise.
14905         (*thumb2_mov_negs): Likewise.
14906         (*thumb2_mov_negs): Likewise.
14907         (*thumb2_mov_nots): Likewise.
14908         (*thumb2_mov_nots): Likewise.
14909         (*thumb2_movsicc_): Likewise.
14910         (*thumb2_movsfcc_soft_insn): Likewise.
14911         (*thumb2_indirect_jump): Likewise.
14912         (*thumb2_and_scc): Likewise.
14913         (*thumb2_ior_scc): Likewise.
14914         (*thumb2_ior_scc_strict_it): Likewise.
14915         (*thumb2_cond_move): Likewise.
14916         (*thumb2_cond_arith): Likewise.
14917         (*thumb2_cond_ari): Likewise.
14918         (*thumb2_cond_sub): Likewise.
14919         (*thumb2_negscc): Likewise.
14920         (*thumb2_movcond): Likewise.
14921         (thumb2_casesi_internal): Likewise.
14922         (thumb2_casesi_internal_pic): Likewise.
14923         (*thumb2_alusi3_short): Likewise.
14924         (*thumb2_mov<mode>_shortim): Likewise.
14925         (*thumb2_addsi_short): Likewise.
14926         (*thumb2_subsi_short): Likewise.
14927         (thumb2_addsi3_compare0): Likewise.
14928         (*thumb2_cbz): Likewise.
14929         (*thumb2_cbnz): Likewise.
14930         (*thumb2_one_cmplsi2_short): Likewise.
14931         (*thumb2_negsi2_short): Likewise.
14932         (*orsi_notsi_si): Likewise.
14933         * config/arm/arm1020e.md: Update with new attributes.
14934         * config/arm/arm1026ejs.md: Update with new attributes.
14935         * config/arm/arm1136jfs.md: Update with new attributes.
14936         * config/arm/arm926ejs.md: Update with new attributes.
14937         * config/arm/cortex-a15.md: Update with new attributes.
14938         * config/arm/cortex-a5.md: Update with new attributes.
14939         * config/arm/cortex-a53.md: Update with new attributes.
14940         * config/arm/cortex-a7.md: Update with new attributes.
14941         * config/arm/cortex-a8.md: Update with new attributes.
14942         * config/arm/cortex-a9.md: Update with new attributes.
14943         * config/arm/cortex-m4.md: Update with new attributes.
14944         * config/arm/cortex-r4.md: Update with new attributes.
14945         * config/arm/fa526.md: Update with new attributes.
14946         * config/arm/fa606te.md: Update with new attributes.
14947         * config/arm/fa626te.md: Update with new attributes.
14948         * config/arm/fa726te.md: Update with new attributes.
14950 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14952         * config/aarch64/aarch64-simd.md
14953         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
14954         <vwx> iterator to ensure correct register choice.
14955         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
14956         (aarch64_sqdmull_n<mode>): Likewise.
14957         (aarch64_sqdmull2_n<mode>_internal): Likewise.
14958         * config/aarch64/arm_neon.h
14959         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
14960         (vml<as><q>_n_<su>16): Likewise.
14961         (vml<as>l_high_lane<q>_<su>16): Likewise.
14962         (vml<as>l_high_n_<su>16): Likewise.
14963         (vml<as>l_lane<q>_<su>16): Likewise.
14964         (vml<as>l_n_<su>16): Likewise.
14965         (vmul<q>_lane<q>_<su>16): Likewise.
14966         (vmul<q>_n_<su>16): Likewise.
14967         (vmull_lane<q>_<su>16): Likewise.
14968         (vmull_n_<su>16): Likewise.
14969         (vmull_high_lane<q>_<su>16): Likewise.
14970         (vmull_high_n_<su>16): Likewise.
14971         (vqrdmulh<q>_n_s16): Likewise.
14973 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
14975         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
14976         have the correct lane parameter.
14978 2013-09-06  Richard Biener <rguenther@suse.de>
14980         * cfganal.c (control_dependences::~control_dependences):
14981         Properly free all of the vector.
14983 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
14985         PR target/58269
14986         * config/i386/i386.c (ix86_conditional_register_usage):
14987         Proper initialize extended SSE registers.
14989 2013-09-06  Jan Hubicka  <jh@suse.cz>
14991         PR tree-optimization/58311
14992         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
14994 2013-09-06  Jan Hubicka  <jh@suse.cz>
14996         * Makefile.in (tree-sra.o): Update dependencies.
14997         * tree-sra.c: Include ipa-utils.h
14998         (scan_function): Use recursive_call_p.
14999         (has_caller_p): New function.
15000         (cgraph_for_node_and_aliases): Count also callers of aliases.
15002 2013-09-06  Jan Hubicka  <jh@suse.cz>
15004         PR middle-end/58094
15005         * cgraph.h (symtab_semantically_equivalent_p): Declare.
15006         * tree-tailcall.c: Include ipa-utils.h.
15007         (find_tail_calls): Use it.
15008         * ipa-pure-const.c (check_call): Likewise.
15009         * ipa-utils.c (recursive_call_p): New function.
15010         * ipa-utils.h (recursive_call_p): Dclare.
15011         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
15012         (symtab_semantically_equivalent_p): New function.
15013         * Makefile.in (tree-tailcall.o): Update dependencies.
15015 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15017         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
15018         non-inlinable part.
15020 2013-09-06  Richard Biener  <rguenther@suse.de>
15022         * lto-streamer.h (lto_global_var_decls): Remove.
15023         * Makefile.in (OBJS): Remove lto-symtab.o.
15024         (lto-symtab.o): Remove.
15025         (GTFILES): Remove lto-symtab.c
15026         * lto-symtab.c: Move to lto/
15028 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15030         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
15031         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
15032         (UNSPEC_FPINT_RINT): New constant definitions.
15033         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
15034         definition with 2 attributes.
15035         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
15036         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
15037         definitions.
15039 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15041         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
15042         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
15043         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
15044         attribute to "z196_alone".
15045         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
15046         "zEC12_simple".
15048 2013-09-06  Richard Biener  <rguenther@suse.de>
15050         * basic-block.h (class control_dependences): New.
15051         * tree-ssa-dce.c (control_dependence_map): Remove.
15052         (cd): New global.
15053         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
15054         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
15055         find_pdom, find_control_dependence, find_all_control_dependences):
15056         Move to cfganal.c.
15057         (mark_control_dependent_edges_necessary,
15058         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
15059         tree_dce_done, perform_tree_ssa_dce): Adjust.
15060         * cfganal.c (set_control_dependence_map_bit,
15061         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
15062         find_all_control_dependences): Move from tree-ssa-dce.c and
15063         implement as methods of control_dependences class.
15064         (control_dependences::control_dependences): New.
15065         (control_dependences::~control_dependences): Likewise.
15066         (control_dependences::get_edges_dependent_on): Likewise.
15067         (control_dependences::get_edge): Likewise.
15069 2013-09-04  Jan Hubicka  <jh@suse.cz>
15071         * tree.c (types_same_for_odr): Drop overactive check.
15072         * ipa-devirt.c (hash_type_name): Likewise.
15074 2013-09-04  Jan Hubicka  <jh@suse.cz>
15076         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
15077         (analyze_functions): ... here.
15079 2013-09-04  Jan Hubicka  <jh@suse.cz>
15081         PR middle-end/58201
15082         * cgraphunit.c (analyze_functions): Clear AUX fields
15083         after processing; initialize assembler name has.
15085 2013-09-05  Jeff Law  <law@redhat.com>
15087         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
15088         from thread_around_empty_block.  Record threading path into PATH.
15089         Recurse if threading through the initial block is successful.
15090         (thread_across_edge): Corresponding changes to slightly simplify.
15092 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15094         * config/aarch64/aarch64.md
15095         (type): Remove frecpe, frecps, frecpx.
15096         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
15097         fix to be a TARGET_SIMD instruction.
15098         (aarch64_frecps): Remove.
15099         * config/aarch64/aarch64-simd.md
15100         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
15101         (aarch64_frecps<mode>): Handle all float/vector of float modes.
15103 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15104             Sofiane Naci  <sofiane.naci@arm.com>
15106         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
15107         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
15108         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
15109         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
15110         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
15111         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
15112         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
15113         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
15114         into "clz, "rbit".  Rename "shift" to "shift_imm".
15115         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
15116         changes.  Update for attribute changes all occurrences of arlo_* and
15117         shift* types.
15118         * config/arm/arm-fixed.md: Update for attribute changes
15119         all occurrences of arlo_* types.
15120         * config/arm/thumb2.md: Update for attribute changes all occurrences
15121         of arlo_* types.
15122         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
15123         (cortexa7_older_only): Likewise.
15124         (cortexa7_younger):  Likewise.
15125         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
15126         (1020alu_shift_op): Likewise.
15127         (1020alu_shift_reg_op): Likewise.
15128         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
15129         (alu_shift_op): Likewise.
15130         (alu_shift_reg_op): Likewise.
15131         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
15132         (11_alu_shift_op): Likewise.
15133         (11_alu_shift_reg_op): Likewise.
15134         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
15135         (9_alu_shift_reg_op): Likewise.
15136         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
15137         attribute changes.
15138         (cortex_a15_alu_shift): Likewise.
15139         (cortex_a15_alu_shift_reg): Likewise.
15140         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
15141         attribute changes.
15142         (cortex_a5_alu_shift): Likewise.
15143         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
15144         attribute changes.
15145         (cortex_a53_alu_shift): Likewise.
15146         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
15147         attribute changes.
15148         (cortex_a7_alu_reg): Likewise.
15149         (cortex_a7_alu_shift): Likewise.
15150         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
15151         attribute changes.
15152         (cortex_a8_alu_shift): Likewise.
15153         (cortex_a8_alu_shift_reg): Likewise.
15154         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
15155         (cortex_a9_dp_shift): Likewise.
15156         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
15157         attribute changes.
15158         * config/arm/cortex-r4.md
15159         (cortex_r4_alu): Update for attribute changes.
15160         (cortex_r4_mov): Likewise.
15161         (cortex_r4_alu_shift_reg): Likewise.
15162         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
15163         (526_alu_shift_op): Likewise.
15164         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
15165         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
15166         (626te_alu_shift_op): Likewise.
15167         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
15168         (726te_alu_shift_op): Likewise.
15169         (726te_alu_shift_reg_op): Likewise.
15170         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
15171         (mp626_alu_shift_op): Likewise.
15172         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
15173         (pj4_alu_conds): Likewise.
15174         (pj4_shift): Likewise.
15175         (pj4_shift_conds): Likewise.
15176         (pj4_alu_shift): Likewise.
15177         (pj4_alu_shift_conds): Likewise.
15178         * config/aarch64/aarch64.md: Update for attribute change
15179         all occurrences of arlo_* and shift* types.
15181 2013-09-05  Mike Stump  <mikestump@comcast.net>
15183         * tree.h: Move documentation for tree_function_decl to tree-core.h
15184         with the declaration.
15186 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
15188         PR target/58139
15189         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
15190         looking for widest mode.
15192 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
15194         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
15196 2013-09-05  Richard Biener  <rguenther@suse.de>
15198         PR tree-optimization/58137
15199         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
15200         Do not create vectors of pointers.
15201         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
15202         types for the components of the vector initializer.
15203         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
15204         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
15206 2013-09-05  Martin Jambor  <mjambor@suse.cz>
15208         * ipa-prop.c (remove_described_reference): Accept missing references,
15209         return false if that hppens, otherwise return true.
15210         (cgraph_node_for_jfunc): New function.
15211         (try_decrement_rdesc_refcount): Likewise.
15212         (try_make_edge_direct_simple_call): Use them.
15213         (ipa_edge_removal_hook): Remove references from rdescs.
15214         (ipa_edge_duplication_hook): Clone rdescs and their references
15215         when the new edge has the same caller as the old one.
15216         * cgraph.c (cgraph_resolve_speculation): Remove speculative
15217         reference before removing any edges.
15219 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
15221         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
15222         initial store.
15223         * thumb2.md (thumb2_storewb_parisi): New pattern.
15225 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
15227         * config/aarch64/aarch64-option-extensions.def: Add
15228         AARCH64_OPT_EXTENSION of 'crc'.
15229         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
15230         (AARCH64_ISA_CRC): Ditto.
15231         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
15232         description of the CRC extension.
15234 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15236         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
15237         * config/rs6000/linux.h: Ditto.
15238         * alpha/linux.h: Ditto.
15239         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
15240         no_c99_libc_has_function.
15241         * config/c6x/uclinux-elf.h: Ditto.
15242         * config/lm32/uclinux-elf.h: Ditto.
15243         * config/m68k/uclinux.h: Ditto.
15244         * config/moxie/uclinux.h: Ditto.
15245         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
15246         (crisv32-*-linux*, cris-*-linux*): Ditto.
15247         * config/bfin/bfin.c: Include "tm_p.h".
15249 2013-09-05  Richard Biener  <rguenther@suse.de>
15251         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
15252         check for a definition without a basic-block.
15254 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15255             Sofiane Naci <sofiane.naci@arm.com>
15257         * config/aarch64/aarch64.md
15258         (*movti_aarch64): Rename r_2_f and f_2_r.
15259         (*movsf_aarch64): Likewise.
15260         (*movdf_aarch64): Likewise.
15261         (*movtf_aarch64): Likewise.
15262         (aarch64_movdi_<mode>low): Likewise.
15263         (aarch64_movdi_<mode>high): Likewise.
15264         (aarch64_mov<mode>high_di): Likewise.
15265         (aarch64_mov<mode>low_di): Likewise.
15266         (aarch64_movtilow_tilow): Likewise.
15267         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
15268         values to config/arm/types.md
15269         (attribute "conds"): Update for attribute change.
15270         (anddi3_insn): Likewise.
15271         (iordi3_insn): Likewise.
15272         (xordi3_insn): Likewise.
15273         (one_cmpldi2): Likewise.
15274         * config/arm/types.md (type): Add Neon types.
15275         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
15276         use "type" attribute.
15277         (movmisalign<mode>_neon_store): Likewise.
15278         (movmisalign<mode>_neon_load): Likewise.
15279         (vec_set<mode>_internal): Likewise.
15280         (vec_setv2di_internal): Likewise.
15281         (vec_extract<mode>): Likewise.
15282         (vec_extractv2di): Likewise.
15283         (add<mode>3_neon): Likewise.
15284         (adddi3_neon): Likewise.
15285         (sub<mode>3_neon): Likewise.
15286         (subdi3_neon): Likewise.
15287         (mul<mode>3_neon): Likewise.
15288         (mul<mode>3add<mode>_neon): Likewise.
15289         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
15290         (fma<VCVTF:mode>4)): Likewise.
15291         (fma<VCVTF:mode>4_intrinsic): Likewise.
15292         (fmsub<VCVTF:mode>4)): Likewise.
15293         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
15294         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
15295         (ior<mode>3): Likewise.
15296         (and<mode>3): Likewise.
15297         (anddi3_neon): Likewise.
15298         (orn<mode>3_neon): Likewise.
15299         (orndi3_neon): Likewise.
15300         (bic<mode>3_neon): Likewise.
15301         (bicdi3_neon): Likewise.
15302         (xor<mode>3): Likewise.
15303         (one_cmpl<mode>2): Likewise.
15304         (abs<mode>2): Likewise.
15305         (neg<mode>2): Likewise.
15306         (umin<mode>3_neon): Likewise.
15307         (umax<mode>3_neon): Likewise.
15308         (smin<mode>3_neon): Likewise.
15309         (smax<mode>3_neon): Likewise.
15310         (vashl<mode>3): Likewise.
15311         (vashr<mode>3_imm): Likewise.
15312         (vlshr<mode>3_imm): Likewise.
15313         (ashl<mode>3_signed): Likewise.
15314         (ashl<mode>3_unsigned): Likewise.
15315         (neon_load_count): Likewise.
15316         (ashldi3_neon_noclobber): Likewise.
15317         (signed_shift_di3_neon): Likewise.
15318         (unsigned_shift_di3_neon): Likewise.
15319         (ashrdi3_neon_imm_noclobber): Likewise.
15320         (lshrdi3_neon_imm_noclobber): Likewise.
15321         (widen_ssum<mode>3): Likewise.
15322         (widen_usum<mode>3): Likewise.
15323         (quad_halves_<code>v4si): Likewise.
15324         (quad_halves_<code>v4sf): Likewise.
15325         (quad_halves_<code>v8hi): Likewise.
15326         (quad_halves_<code>v16qi): Likewise.
15327         (reduc_splus_v2di): Likewise.
15328         (neon_vpadd_internal<mode>): Likewise.
15329         (neon_vpsmin<mode>): Likewise.
15330         (neon_vpsmax<mode>): Likewise.
15331         (neon_vpumin<mode>): Likewise.
15332         (neon_vpumax<mode>): Likewise.
15333         (ss_add<mode>_neon): Likewise.
15334         (us_add<mode>_neon): Likewise.
15335         (ss_sub<mode>_neon): Likewise.
15336         (us_sub<mode>_neon): Likewise.
15337         (neon_vadd<mode>_unspec): Likewise.
15338         (neon_vaddl<mode>): Likewise.
15339         (neon_vaddw<mode>): Likewise.
15340         (neon_vhadd<mode>): Likewise.
15341         (neon_vqadd<mode>): Likewise.
15342         (neon_vaddhn<mode>): Likewise.
15343         (neon_vmul<mode>): Likewise.
15344         (neon_vmla<mode>): Likewise.
15345         (neon_vmlal<mode>): Likewise.
15346         (neon_vmls<mode>): Likewise.
15347         (neon_vmlsl<mode>): Likewise.
15348         (neon_vqdmulh<mode>): Likewise.
15349         (neon_vqdmlal<mode>): Likewise.
15350         (neon_vqdmlsl<mode>): Likewise.
15351         (neon_vmull<mode>): Likewise.
15352         (neon_vqdmull<mode>): Likewise.
15353         (neon_vsub<mode>_unspec): Likewise.
15354         (neon_vsubl<mode>): Likewise.
15355         (neon_vsubw<mode>): Likewise.
15356         (neon_vqsub<mode>): Likewise.
15357         (neon_vhsub<mode>): Likewise.
15358         (neon_vsubhn<mode>): Likewise.
15359         (neon_vceq<mode>): Likewise.
15360         (neon_vcge<mode>): Likewise.
15361         (neon_vcgeu<mode>): Likewise.
15362         (neon_vcgt<mode>): Likewise.
15363         (neon_vcgtu<mode>): Likewise.
15364         (neon_vcle<mode>): Likewise.
15365         (neon_vclt<mode>): Likewise.
15366         (neon_vcage<mode>): Likewise.
15367         (neon_vcagt<mode>): Likewise.
15368         (neon_vtst<mode>): Likewise.
15369         (neon_vabd<mode>): Likewise.
15370         (neon_vabdl<mode>): Likewise.
15371         (neon_vaba<mode>): Likewise.
15372         (neon_vabal<mode>): Likewise.
15373         (neon_vmax<mode>): Likewise.
15374         (neon_vmin<mode>): Likewise.
15375         (neon_vpaddl<mode>): Likewise.
15376         (neon_vpadal<mode>): Likewise.
15377         (neon_vpmax<mode>): Likewise.
15378         (neon_vpmin<mode>): Likewise.
15379         (neon_vrecps<mode>): Likewise.
15380         (neon_vrsqrts<mode>): Likewise.
15381         (neon_vqabs<mode>): Likewise.
15382         (neon_vqneg<mode>): Likewise.
15383         (neon_vcls<mode>): Likewise.
15384         (clz<mode>2): Likewise.
15385         (popcount<mode>2): Likewise.
15386         (neon_vrecpe): Likewise.
15387         (neon_vrsqrte): Likewise.
15388         (neon_vget_lane<mode>_sext_internal): Likewise.
15389         (neon_vget_lane<mode>_zext_internal): Likewise.
15390         (neon_vdup_n<mode>): Likewise.
15391         (neon_vdup_nv2di): Likewise.
15392         (neon_vdpu_lane<mode>_internal): Likewise.
15393         (neon_vswp<mode>): Likewise.
15394         (float<mode><V_cvtto>2): Likewise.
15395         (floatuns<mode><V_cvtto>2): Likewise.
15396         (fix_trunc<mode><V_cvtto>)2): Likewise
15397         (fixuns_trunc<mode><V_cvtto)2): Likewise.
15398         (neon_vcvt<mode>): Likewise.
15399         (neon_vcvtv4sfv4hf): Likewise.
15400         (neon_vcvtv4hfv4sf): Likewise.
15401         (neon_vcvt_n<mode>): Likewise.
15402         (neon_vmovn<mode>): Likewise.
15403         (neon_vqmovn<mode>): Likewise.
15404         (neon_vqmovun<mode>): Likewise.
15405         (neon_vmovl<mode>): Likewise.
15406         (neon_vmul_lane<mode>): Likewise.
15407         (neon_vmull_lane<mode>): Likewise.
15408         (neon_vqdmull_lane<mode>): Likewise.
15409         (neon_vqdmulh_lane<mode>): Likewise.
15410         (neon_vmla_lane<mode>): Likewise.
15411         (neon_vmlal_lane<mode>): Likewise.
15412         (neon_vqdmlal_lane<mode>): Likewise.
15413         (neon_vmls_lane<mode>): Likewise.
15414         (neon_vmlsl_lane<mode>): Likewise.
15415         (neon_vqdmlsl_lane<mode>): Likewise.
15416         (neon_vext<mode>): Likewise.
15417         (neon_vrev64<mode>): Likewise.
15418         (neon_vrev32<mode>): Likewise.
15419         (neon_vrev16<mode>): Likewise.
15420         (neon_vbsl<mode>_internal): Likewise.
15421         (neon_vshl<mode>): Likewise.
15422         (neon_vqshl<mode>): Likewise.
15423         (neon_vshr_n<mode>): Likewise.
15424         (neon_vshrn_n<mode>): Likewise.
15425         (neon_vqshrn_n<mode>): Likewise.
15426         (neon_vqshrun_n<mode>): Likewise.
15427         (neon_vshl_n<mode>): Likewise.
15428         (neon_vqshl_n<mode>): Likewise.
15429         (neon_vqshlu_n<mode>): Likewise.
15430         (neon_vshll_n<mode>): Likewise.
15431         (neon_vsra_n<mode>): Likewise.
15432         (neon_vsri_n<mode>): Likewise.
15433         (neon_vsli_n<mode>): Likewise.
15434         (neon_vtbl1v8qi): Likewise.
15435         (neon_vtbl2v8qi): Likewise.
15436         (neon_vtbl3v8qi): Likewise.
15437         (neon_vtbl4v8qi): Likewise.
15438         (neon_vtbx1v8qi): Likewise.
15439         (neon_vtbx2v8qi): Likewise.
15440         (neon_vtbx3v8qi): Likewise.
15441         (neon_vtbx4v8qi): Likewise.
15442         (neon_vtrn<mode>_internal): Likewise.
15443         (neon_vzip<mode>_internal): Likewise.
15444         (neon_vuzp<mode>_internal): Likewise.
15445         (neon_vld1<mode>): Likewise.
15446         (neon_vld1_lane<mode>): Likewise.
15447         (neon_vld1_dup<mode>): Likewise.
15448         (neon_vld1_dupv2di): Likewise.
15449         (neon_vst1<mode>): Likewise.
15450         (neon_vst1_lane<mode>): Likewise.
15451         (neon_vld2<mode>): Likewise.
15452         (neon_vld2_lane<mode>): Likewise.
15453         (neon_vld2_dup<mode>): Likewise.
15454         (neon_vst2<mode>): Likewise.
15455         (neon_vst2_lane<mode>): Likewise.
15456         (neon_vld3<mode>): Likewise.
15457         (neon_vld3qa<mode>): Likewise.
15458         (neon_vld3qb<mode>): Likewise.
15459         (neon_vld3_lane<mode>): Likewise.
15460         (neon_vld3_dup<mode>): Likewise.
15461         (neon_vst3<mode>): Likewise.
15462         (neon_vst3qa<mode>): Likewise.
15463         (neon_vst3qb<mode>): Likewise.
15464         (neon_vst3_lane<mode>): Likewise.
15465         (neon_vld4<mode>): Likewise.
15466         (neon_vld4qa<mode>): Likewise.
15467         (neon_vld4qb<mode>): Likewise.
15468         (neon_vld4_lane<mode>): Likewise.
15469         (neon_vld4_dup<mode>): Likewise.
15470         (neon_vst4<mode>): Likewise.
15471         (neon_vst4qa<mode>): Likewise.
15472         (neon_vst4qb<mode>): Likewise.
15473         (neon_vst4_lane<mode>): Likewise.
15474         (neon_vec_unpack<US>_lo_<mode>): Likewise.
15475         (neon_vec_unpack<US>_hi_<mode>): Likewise.
15476         (neon_vec_<US>mult_lo_<mode>): Likewise.
15477         (neon_vec_<US>mult_hi_<mode>): Likewise.
15478         (neon_vec_<US>shiftl_<mode>): Likewise.
15479         (neon_unpack<US>_<mode>): Likewise.
15480         (neon_vec_<US>mult_<mode>): Likewise.
15481         (vec_pack_trunc_<mode>): Likewise.
15482         (neon_vec_pack_trunk_<mode>): Likewise.
15483         (neon_vabd<mode>_2): Likewise.
15484         (neon_vabd<mode>_3): Likewise.
15485         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
15486         (thumb2_movsi_vfp): Likewise.
15487         (movdi_vfp): Likewise.
15488         (movdi_vfp_cortexa8): Likewise.
15489         (movhf_vfp_neon): Likewise.
15490         (movhf_vfp): Likewiwse.
15491         (movsf_vfp): Likewiwse.
15492         (thumb2_movsf_vfp): Likewiwse.
15493         (movdf_vfp): Likewise.
15494         (thumb2_movdf_vfp): Likewise.
15495         (movsfcc_vfp): Likewise.
15496         (thumb2_movsfcc_vfp): Likewise.
15497         (movdfcc_vfp): Likewise.
15498         (thumb2_movdfcc_vfp): Likewise.
15499         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
15500         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
15501         (v10_v2c): Likewise.
15502         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
15503         attribute change.
15504         (cortex_a15_neon_int_2): Likewise.
15505         (cortex_a15_neon_int_3): Likewise.
15506         (cortex_a15_neon_int_4): Likewise.
15507         (cortex_a15_neon_int_5): Likewise.
15508         (cortex_a15_neon_vqneg_vqabs): Likewise.
15509         (cortex_a15_neon_vmov): Likewise.
15510         (cortex_a15_neon_vaba): Likewise.
15511         (cortex_a15_neon_vaba_qqq): Likewise.
15512         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15513         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15514         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
15515         scalar_64_32_long_scalar): Likewise.
15516         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15517         (cortex_a15_neon_mla_qqq_8_16): Likewise.
15518         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15519         lotype_qdd_64_32_long): Likewise.
15520         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15521         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15522         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
15523         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15524         (cortex_a15_neon_shift_1): Likewise.
15525         (cortex_a15_neon_shift_2): Likewise.
15526         (cortex_a15_neon_shift_3): Likewise.
15527         (cortex_a15_neon_vshl_ddd): Likewise.
15528         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15529         (cortex_a15_neon_vsra_vrsra): Likewise.
15530         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
15531         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
15532         (cortex_a15_neon_fp_vmul_ddd): Likewise.
15533         (cortex_a15_neon_fp_vmul_qqd): Likewise.
15534         (cortex_a15_neon_fp_vmla_ddd): Likewise.
15535         (cortex_a15_neon_fp_vmla_qqq): Likewise.
15536         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
15537         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
15538         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15539         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15540         (cortex_a15_neon_bp_simple): Likewise.
15541         (cortex_a15_neon_bp_2cycle): Likewise.
15542         (cortex_a15_neon_bp_3cycle): Likewise.
15543         (cortex_a15_neon_vld1_1_2_regs): Likewise.
15544         (cortex_a15_neon_vld1_3_4_regs): Likewise.
15545         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15546         (cortex_a15_neon_vld2_4_regs): Likewise.
15547         (cortex_a15_neon_vld3_vld4): Likewise.
15548         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15549         (cortex_a15_neon_vst1_3_4_regs): Likewise.
15550         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
15551         (cortex_a15_neon_vst3_vst4): Likewise.
15552         (cortex_a15_neon_vld1_vld2_lane): Likewise.
15553         (cortex_a15_neon_vld3_vld4_lane" 10
15554         (cortex_a15_neon_vst1_vst2_lane): Likewise.
15555         (cortex_a15_neon_vst3_vst4_lane): Likewise.
15556         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
15557         (cortex_a15_neon_ldm_2): Likewise.0
15558         (cortex_a15_neon_stm_2): Likewise.
15559         (cortex_a15_neon_mcr): Likewise.
15560         (cortex_a15_neon_mcr_2_mcrr): Likewise.
15561         (cortex_a15_neon_mrc): Likewise.
15562         (cortex_a15_neon_mrrc): Likewise.
15563         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
15564         change.
15565         (cortex_a15_alu_shift): Likewise.
15566         (cortex_a15_alu_shift_reg): Likewise.
15567         (cortex_a15_mult32): Likewise.
15568         (cortex_a15_mult64): Likewise.
15569         (cortex_a15_block): Likewise.
15570         (cortex_a15_branch): Likewise.
15571         (cortex_a15_load1): Likewise.
15572         (cortex_a15_load3): Likewise.
15573         (cortex_a15_store1): Likewise.
15574         (cortex_a15_store3): Likewise.
15575         (cortex_a15_call): Likewise.
15576         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
15577         (cortex_a5_f2r): Likewise.
15578         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
15579         change.
15580         (cortex_a53_f2r): Likewise.
15581         * config/arm/cortex-a7.md
15582         (cortex_a7_branch): Update for attribute change.
15583         (cortex_a7_call): Likewise.
15584         (cortex_a7_alu_imm): Likewise.
15585         (cortex_a7_alu_reg): Likewise.
15586         (cortex_a7_alu_shift): Likewise.
15587         (cortex_a7_mul): Likewise.
15588         (cortex_a7_load1): Likewise.
15589         (cortex_a7_store1): Likewise.
15590         (cortex_a7_load2): Likewise.
15591         (cortex_a7_store2): Likewise.
15592         (cortex_a7_load3): Likewise.
15593         (cortex_a7_store3): Likewise.
15594         (cortex_a7_load4): Likewise.
15595         (cortex_a7_store4): Likewise.
15596         (cortex_a7_fpalu): Likewise.
15597         (cortex_a7_fconst): Likewise.
15598         (cortex_a7_fpmuls): Likewise.
15599         (cortex_a7_neon_mul): Likewise.
15600         (cortex_a7_fpmacs): Likewise.
15601         (cortex_a7_neon_mla: Likewise.
15602         (cortex_a7_fpmuld: Likewise.
15603         (cortex_a7_fpmacd: Likewise.
15604         (cortex_a7_fpfmad: Likewise.
15605         (cortex_a7_fdivs: Likewise.
15606         (cortex_a7_fdivd: Likewise.
15607         (cortex_a7_r2f: Likewise.
15608         (cortex_a7_f2r: Likewise.
15609         (cortex_a7_f_flags: Likewise.
15610         (cortex_a7_f_loads: Likewise.
15611         (cortex_a7_f_loadd: Likewise.
15612         (cortex_a7_f_stores: Likewise.
15613         (cortex_a7_f_stored: Likewise.
15614         (cortex_a7_neon): Likewise.
15615         * config/arm/cortex-a8-neon.md
15616         (cortex_a8_neon_mrc): Update for attribute change.
15617         (cortex_a8_neon_mrrc): Likewise.
15618         (cortex_a8_neon_int_1): Likewise.
15619         (cortex_a8_neon_int_2): Likewise.
15620         (cortex_a8_neon_int_3): Likewise.
15621         (cortex_a8_neon_int_4): Likewise.
15622         (cortex_a8_neon_int_5): Likewise.
15623         (cortex_a8_neon_vqneg_vqabs): Likewise.
15624         (cortex_a8_neon_vmov): Likewise.
15625         (cortex_a8_neon_vaba): Likewise.
15626         (cortex_a8_neon_vaba_qqq): Likewise.
15627         (cortex_a8_neon_vsma): Likewise.
15628         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15629         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15630         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
15631         long_scalar): Likewise.
15632         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15633         (cortex_a8_neon_mla_qqq_8_16): Likewise.
15634         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15635         long_scalar_qdd_64_32_long): Likewise.
15636         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15637         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15638         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
15639         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15640         (cortex_a8_neon_shift_1): Likewise.
15641         (cortex_a8_neon_shift_2): Likewise.
15642         (cortex_a8_neon_shift_3): Likewise.
15643         (cortex_a8_neon_vshl_ddd): Likewise.
15644         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15645         (cortex_a8_neon_vsra_vrsra): Likewise.
15646         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
15647         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
15648         (cortex_a8_neon_fp_vsum): Likewise.
15649         (cortex_a8_neon_fp_vmul_ddd): Likewise.
15650         (cortex_a8_neon_fp_vmul_qqd): Likewise.
15651         (cortex_a8_neon_fp_vmla_ddd): Likewise.
15652         (cortex_a8_neon_fp_vmla_qqq): Likewise.
15653         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
15654         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
15655         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15656         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15657         (cortex_a8_neon_bp_simple): Likewise.
15658         (cortex_a8_neon_bp_2cycle): Likewise.
15659         (cortex_a8_neon_bp_3cycle): Likewise.
15660         (cortex_a8_neon_ldr): Likewise.
15661         (cortex_a8_neon_str): Likewise.
15662         (cortex_a8_neon_vld1_1_2_regs): Likewise.
15663         (cortex_a8_neon_vld1_3_4_regs): Likewise.
15664         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15665         (cortex_a8_neon_vld2_4_regs): Likewise.
15666         (cortex_a8_neon_vld3_vld4): Likewise.
15667         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15668         (cortex_a8_neon_vst1_3_4_regs): Likewise.
15669         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
15670         (cortex_a8_neon_vst3_vst4): Likewise.
15671         (cortex_a8_neon_vld1_vld2_lane): Likewise.
15672         (cortex_a8_neon_vld3_vld4_lane): Likewise.
15673         (cortex_a8_neon_vst1_vst2_lane): Likewise.
15674         (cortex_a8_neon_vst3_vst4_lane): Likewise.
15675         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
15676         (cortex_a8_neon_mcr): Likewise.
15677         (cortex_a8_neon_mcr_2_mcrr): Likewise.
15678         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
15679         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
15680         change.
15681         (ca9_neon_mrrc): Likewise.
15682         (cortex_a9_neon_int_1): Likewise.
15683         (cortex_a9_neon_int_2): Likewise.
15684         (cortex_a9_neon_int_3): Likewise.
15685         (cortex_a9_neon_int_4): Likewise.
15686         (cortex_a9_neon_int_5): Likewise.
15687         (cortex_a9_neon_vqneg_vqabs): Likewise.
15688         (cortex_a9_neon_vmov): Likewise.
15689         (cortex_a9_neon_vaba): Likewise.
15690         (cortex_a9_neon_vaba_qqq): Likewise.
15691         (cortex_a9_neon_vsma): Likewise.
15692         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15693         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15694         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
15695         long_scalar): Likewise.
15696         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15697         (cortex_a9_neon_mla_qqq_8_16): Likewise.
15698         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15699         long_scalar_qdd_64_32_long): Likewise.
15700         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15701         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15702         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
15703         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15704         (cortex_a9_neon_shift_1): Likewise.
15705         (cortex_a9_neon_shift_2): Likewise.
15706         (cortex_a9_neon_shift_3): Likewise.
15707         (cortex_a9_neon_vshl_ddd): Likewise.
15708         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15709         (cortex_a9_neon_vsra_vrsra): Likewise.
15710         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
15711         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
15712         (cortex_a9_neon_fp_vsum): Likewise.
15713         (cortex_a9_neon_fp_vmul_ddd): Likewise.
15714         (cortex_a9_neon_fp_vmul_qqd): Likewise.
15715         (cortex_a9_neon_fp_vmla_ddd): Likewise.
15716         (cortex_a9_neon_fp_vmla_qqq): Likewise.
15717         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
15718         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
15719         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15720         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15721         (cortex_a9_neon_bp_simple): Likewise.
15722         (cortex_a9_neon_bp_2cycle): Likewise.
15723         (cortex_a9_neon_bp_3cycle): Likewise.
15724         (cortex_a9_neon_ldr): Likewise.
15725         (cortex_a9_neon_str): Likewise.
15726         (cortex_a9_neon_vld1_1_2_regs): Likewise.
15727         (cortex_a9_neon_vld1_3_4_regs): Likewise.
15728         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15729         (cortex_a9_neon_vld2_4_regs): Likewise.
15730         (cortex_a9_neon_vld3_vld4): Likewise.
15731         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15732         (cortex_a9_neon_vst1_3_4_regs): Likewise.
15733         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
15734         (cortex_a9_neon_vst3_vst4): Likewise.
15735         (cortex_a9_neon_vld1_vld2_lane): Likewise.
15736         (cortex_a9_neon_vld3_vld4_lane): Likewise.
15737         (cortex_a9_neon_vst1_vst2_lane): Likewise.
15738         (cortex_a9_neon_vst3_vst4_lane): Likewise.
15739         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
15740         (cortex_a9_neon_mcr): Likewise.
15741         (cortex_a9_neon_mcr_2_mcrr): Likewise.
15742         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
15743         (cortex_a9_fps): Likewise.
15744         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
15745         change.
15746         (cortex_m4_fmuls): Likewise.
15747         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
15748         change.
15749         (cortex_r4_mrc): Likewise.
15750         * config/arm/iterators.md: Update comment referring to neon_type.
15751         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
15752         (iwmmxt_movsi_insn): Likewise.
15753         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
15754         attribute change.
15755         (pj4_core_to_vfp): Likewise.
15756         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
15757         attribute change.
15758         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
15759         (vfp_fstore): Likewise.
15760         * doc/md.texi: Change references to neon_type to refer to type.
15762 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
15764         * tree.h (DECL_BUILT_IN): Fix typo in comment.
15766 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
15768         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
15769         lglobl if not weak.
15771 2013-09-04  Easwaran Raman  <eraman@google.com>
15773         PR middle-end/57370
15774         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
15775         (build_and_add_sum): Use it.
15776         (appears_later_in_bb): Simplify code.
15778 2013-09-04  Teresa Johnson  <tejohnson@google.com>
15780         * dumpfile.c (dump_finish): Don't close stderr/stdout.
15782 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
15784         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
15786 2013-09-04  Jan Hubicka  <jh@suse.cz>
15788         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
15789         * ipa-devirt.c: Include diganostic.h
15790         (odr_type_d): Add types and types_set.
15791         (hash_type_name): Work for types with vtables during LTO.
15792         (odr_hasher::remove): Fix comment; destroy types_set.
15793         (add_type_duplicate): New function,
15794         (get_odr_type): Use it.
15795         (dump_type_inheritance_graph): Dump type duplicates.
15796         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
15797         graph.
15798         * tree.c (types_same_for_odr): Give exact answers on types with
15799         virtual tables.
15801 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
15803         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
15804         explaining their differences.
15806 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
15808         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
15810 2013-09-03  Jeff Law  <law@redhat.com>
15812         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
15813         when not threading through a joiner block.  Pass joiner/no joiner
15814         state to register_jump_thread.
15815         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
15816         state from argument rather than implying on path length.
15817         Dump the entire jump thread path into debugging dump.
15818         * tree-flow.h (register_jump_thread): Update prototype.
15820 2013-08-29  Xinliang David Li  <davidxl@google.com>
15822         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15823         Remove a trivial gcc_assert.
15825 2013-08-29  Xinliang David Li  <davidxl@google.com>
15827         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
15828         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
15829         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15830         Delay base decl alignment adjustment.
15831         * tree-vectorizer.c (vect_destroy_datarefs): New function.
15832         * tree-vectorizer.h: New data structure.
15833         (set_dr_misalignment): New function.
15834         (dr_misalignment): Ditto.
15835         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
15836         (vectorizable_load): Ditto.
15837         (ensure_base_align): New function.
15838         (vectorize_loops): Add dbg_cnt support.
15839         (execute_vect_slp): Ditto.
15840         * dbgcnt.def: New debug counter.
15841         * Makefile: New dependency.
15843 2013-09-03  Meador Inge  <meadori@codesourcery.com>
15845         Revert:
15847         2013-08-30  Meador Inge  <meadori@codesourcery.com>
15849         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15851 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
15853         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
15854         function descriptor.
15856 2013-09-03  Richard Biener  <rguenther@suse.de>
15858         * tree-affine.c (add_elt_to_tree): Fix association issue,
15859         avoid useless converts and make sure to always return a
15860         properly typed result.
15862 2013-09-03  Richard Biener  <rguenther@suse.de>
15864         PR middle-end/57656
15865         * fold-const.c (negate_expr_p): Fix division case.
15866         (negate_expr): Likewise.
15868 2013-09-03  Richard Biener  <rguenther@suse.de>
15870         PR lto/58285
15871         * tree-streamer-out.c: Include tm.h.
15872         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
15874 2013-09-03  Jan Hubicka  <jh@suse.cz>
15876         * tree-profile.c (tree_profiling): Cleanup CFG when done.
15878 2013-09-03  Alan Modra  <amodra@gmail.com>
15880         * config.gcc (powerpc*-*-linux*): Add support for little-endian
15881         multilibs to big-endian target and vice versa.
15882         * config/rs6000/t-linux64: Use := assignment on all vars.
15883         (MULTILIB_EXTRA_OPTS): Remove fPIC.
15884         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
15885         * config/rs6000/t-linux64le: New file.
15886         * config/rs6000/t-linux64bele: New file.
15887         * config/rs6000/t-linux64lebe: New file.
15889 2013-09-02  Jan Hubicka  <jh@suse.cz>
15891         * ipa-inline-transform.c (inline_transform): Do not
15892         optimize_inline_calls when not optimizing.
15894 2013-09-02  Jan Hubicka  <jh@suse.cz>
15896         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
15897         duplicated nodes for assembler names.
15898         * symtab.c (symtab_unregister_node): Do not attempt to unlink
15899         hard registers from assembler name hash.
15901 2013-09-02  Jan Hubicka  <jh@suse.cz>
15903         * ipa-split.c (execute_split_functions): Split externally visible
15904         functions called once.
15906 2013-09-02  Martin Jambor  <mjambor@suse.cz>
15908         PR ipa/58106
15909         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
15910         linked list.  When finding the correct duplicate, also consider also
15911         the caller in additon to its inlined_to node.
15913 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
15915         * config/aarch64/aarch64-simd-builtins.def
15916         (dup_lane_scalar): Remove.
15917         * config/aarch64/aarch64-simd.md
15918         (aarch64_simd_dup): Add 'w->w' alternative.
15919         (aarch64_dup_lane<mode>): Allow for VALL.
15920         (aarch64_dup_lane_scalar<mode>): Remove.
15921         (aarch64_dup_lane_<vswap_width_name><mode>): New.
15922         (aarch64_get_lane_signed<mode>): Add w->w altenative.
15923         (aarch64_get_lane_unsigned<mode>): Likewise.
15924         (aarch64_get_lane<mode>): Likewise.
15925         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
15926         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
15927         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
15928         (VCON): Change container of V2SF.
15929         (vswap_width_name): Likewise.
15930         * config/aarch64/arm_neon.h
15931         (__aarch64_vdup_lane_any): New.
15932         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15933         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
15934         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15936 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
15938         PR middle-end/56382
15939         * expr.c (emit_move_complex): Do not move complex FP values as parts if
15940         the source or the destination is a single hard register.
15942 2013-09-02  Richard Biener  <rguenther@suse.de>
15944         PR middle-end/57511
15945         * tree-scalar-evolution.c (instantiate_scev_name): Allow
15946         non-linear SCEVs.
15948 2013-09-02  Richard Biener  <rguenther@suse.de>
15950         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
15951         arithmetic to sizetype.
15953 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
15955         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
15956         Find auto-increment use both before and after candidate.
15958 2013-09-02  Marek Polacek  <polacek@redhat.com>
15960         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
15962 2013-09-01  Jan Hubicka  <jh@suse.cz>
15964         * Makefile.in: Add ipa-profile.o
15965         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
15966         * cgraph.c (struct cgraph_propagate_frequency_data,
15967         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
15968         ipa-profile.c; replace cgraph_ by ipa_ prefix.
15969         * cgraph.h (cgraph_propagate_frequency): Remove.
15970         * ipa-inline-analysis.c: Include ipa-utils.h;
15971         drop duplicated cfgloop.h.
15972         (inline_update_callee_summaries): Update.
15973         * ipa-profile.c: New file.
15974         * ipa-utils.h (ipa_propagate_frequency): Declare.
15975         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
15976         data-streamer.h, value-prof.h.
15977         (symtab_remove_unreachable_nodes): Update profile.
15978         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
15979         account_time_size, cmp_counts, dump_histogram,
15980         ipa_profile_generate_summary, ipa_profile_write_summary,
15981         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
15982         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
15983         Move to ipa-profile.c.
15985 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
15987         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
15989 2013-09-01  Jan Hubicka  <jh@suse.cz>
15991         * common.opt (fdevirtualize-speculatively): New function.
15992         * invoke.texi (fdevirtualize-speculatively): Document.
15993         * ipa-devirt.c: Include ipa-inline.h
15994         (likely_target_p): New function.
15995         (ipa_devirt): New function.
15996         (gate_ipa_devirt): New function.
15997         (pass_data_ipa_devirt): New static var.
15998         (pass_ipa_devirt): Likewise.
15999         (make_pass_ipa_devirt): New function.
16000         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
16001         (common_handle_option): Disable devirtualization when
16002         value range profiling is available.
16003         * passes.def (pass_ipa_devirt): Add.
16004         * timever.def (TV_IPA_DEVIRT): New timevar.
16005         * tree-pass.h (make_pass_ipa_devirt):
16007 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
16009         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
16010         include sanitize(undefined).
16012 2013-08-31  Diego Novillo  <dnovillo@google.com>
16014         * Makefile.in (TREE_CORE_H): Define.
16015         (TREE_H): Use.
16016         (GTFILES): Add tree-core.h.
16017         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
16018         size the array.
16019         * tree-core.h: New file.
16020         Move all data structures, enum, typedefs, global
16021         declarations and constants from ...
16022         * tree.h: ... here.
16024 2013-08-31  Jan Hubicka  <jh@suse.cz>
16026         * bulitins.c (expand_builtin): Do not early exit for gcov
16027         instrumented functions.
16029 2013-08-31  Marek Polacek  <polacek@redhat.com>
16031         * ubsan.c: Include tm_p.h.
16033 2013-08-31  Jan Hubicka  <jh@suse.cz>
16035         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
16036         warning.
16038         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
16039         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
16040         * tree-cfg.c (verify_gimple_label): ... here.
16041         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
16042         (ipa_merge_profiles): New function.
16043         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
16044         (lto_input_function_body): Likewise.
16045         * ipa-utils.h (ipa_merge_profiles): Declare.
16046         * lto-streamer.h (lto_input_function_body): Update prototype.
16047         (emit_label_in_global_context_p): Remove.
16048         * lto-symtab.c: Include ipa-utils.h
16049         (lto_cgraph_replace_node): Use ipa_merge_profiles.
16051 2013-08-31  Jan Hubicka  <jh@suse.cz>
16053         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
16055 2013-08-31  Jan Hubicka  <jh@suse.cz>
16057         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
16059 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
16061         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
16062         "cmp" RTX before signed_comparison_operator check to account
16063         for "code" changes.
16065 2013-08-30  Jan Hubicka  <jh@suse.cz>
16067         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
16068         (detect_type_change_1): Rename to ...
16069         (detect_type_change): ... this one; early return on non-polymorphic
16070         types.
16071         (detect_type_change_ssa): Add comp_type parameter; update
16072         use of detect_type_change.
16073         (compute_complex_assign_jump_func): Add param_type parameter;
16074         update use of detect_type_change_ssa.
16075         (compute_complex_ancestor_jump_func): Likewise.
16076         (ipa_get_callee_param_type): New function.
16077         (ipa_compute_jump_functions_for_edge): Compute parameter type;
16078         update calls to the jump function computation functions.
16080 2013-08-30  Teresa Johnson  <tejohnson@google.com>
16081             Steven Bosscher  <steven@gcc.gnu.org>
16083         * cfgrtl.c (fixup_new_cold_bb): New routine.
16084         (commit_edge_insertions): Invoke fixup_partitions.
16085         (find_partition_fixes): New routine.
16086         (fixup_partitions): Ditto.
16087         (verify_hot_cold_block_grouping): Update comments.
16088         (rtl_verify_edges): Invoke find_partition_fixes.
16089         (rtl_verify_bb_pointers): Update comments.
16090         (rtl_verify_bb_layout): Ditto.
16091         * basic-block.h (probably_never_executed_edge_p): Declare.
16092         (fixup_partitions): Ditto.
16093         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
16094         * bb-reorder.c (sanitize_hot_paths): New function.
16095         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
16096         sanitize_hot_paths.
16097         * predict.c (probably_never_executed_edge_p): New routine.
16098         * cfg.c (check_bb_profile): Add partition insanity warnings.
16100 2013-08-30  Meador Inge  <meadori@codesourcery.com>
16102         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16104 2013-08-30  Marek Polacek  <polacek@redhat.com>
16106         * Makefile.in (ubsan.o): Add.
16107         (c-family/c-ubsan.o): Add.
16108         (builtins.o): Add ubsan.h dependency.
16109         * ubsan.h: New file.
16110         * ubsan.c: New file.
16111         * common.opt: Add -fsanitize=undefined option.
16112         (flag_sanitize): Add variable.
16113         (fsanitize=): Add option.  Add Driver.
16114         (fsanitize=thread): Remove option.
16115         (fsanitize=address): Likewise.
16116         (static-libubsan): New option.
16117         * doc/invoke.texi: Document the new flag and -static-libubsan.
16118         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
16119         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
16120         * builtin-attrs.def (ATTR_COLD): Define.
16121         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16122         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
16123         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
16124         * flag-types.h (sanitize_code): New enum.
16125         * opts.c (common_handle_option): Parse command line arguments
16126         of -fsanitize=.  Add -fsanitize=unreachable option.
16127         * varasm.c (get_variable_section): Adjust.
16128         (assemble_noswitch_variable): Likewise.
16129         (assemble_variable): Likewise.
16130         (output_constant_def_contents): Likewise.
16131         (categorize_decl_for_section): Likewise.
16132         (place_block_symbol): Likewise.
16133         (output_object_block): Likewise.
16134         * builtins.def: Likewise.
16135         * toplev.c (compile_file): Likewise.
16136         (process_options): Likewise.
16137         * cppbuiltin.c: Likewise.
16138         * tsan.c (tsan_pass): Likewise.
16139         (tsan_gate): Likewise.
16140         (tsan_gate_O0): Likewise.
16141         * cfgexpand.c (partition_stack_vars): Likewise.
16142         (expand_stack_vars): Likewise.
16143         (defer_stack_allocation): Likewise.
16144         (expand_used_vars): Likewise.
16145         * cfgcleanup.c (old_insns_match_p): Likewise.
16146         * asan.c (asan_finish_file): Likewise.
16147         (asan_instrument): Likewise.
16148         (gate_asan): Likewise.
16149         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
16150         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16151         (asan_global_struct): Use pointer_sized_int_node instead
16152         calling build_nonstandard_integer_type.
16153         (initialize_sanitizer_builtins): Likewise.
16154         (asan_finish_file): Likewise.
16155         * gcc.c: Document %{%:function(args):X}.
16156         (static_spec_functions): Add sanitize.
16157         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
16158         store funcval != NULL there.
16159         (do_spec_1): Adjust handle_spec_function caller.
16160         (handle_braces): Allow %:function(args) as condition.
16161         (sanitize_spec_function): New function.
16162         (ADD_STATIC_LIBUBSAN_LIBS): Define.
16163         (LIBUBSAN_SPEC): Likewise.
16164         (LIBUBSAN_EARLY_SPEC): Likewise.
16165         (SANITIZER_SPEC): Handle libubsan.
16166         (SANITIZER_EARLY_SPEC): Likewise.
16167         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
16168         instead of fsanitize=address.
16169         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
16170         instead of fsanitize=address*.
16171         * builtins.c: Include ubsan.h.
16172         (fold_builtin_0): Instrument __builtin_unreachable.
16173         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
16174         instead of flag_asan.
16175         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
16176         (pointer_sized_int_node): Define.
16177         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
16179 2013-08-30  Mike Stump  <mikestump@comcast.net>
16181         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
16182         with RE patterns.
16184 2013-08-29  Jan Hubicka  <jh@suse.cz>
16186         * cgraph.c (cgraph_function_body_availability): Handle weakref
16187         correctly.
16188         * passes.def: Remove pass_fixup_cfg.
16189         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
16190         track when we need to remove functions.
16191         (gate_ipa_inline): Execute inlining always; add comment why.
16192         (pass_data_ipa_inline): Remove TODO_remove_functions.
16193         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
16194         do not produce summaries.
16195         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
16196         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
16197         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
16198         constant pool and vtable.
16200 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
16202         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
16203         New arm_neon.h's internal macros to specify 64-bit constants.
16204         Avoid using stdint.h's macros.
16206 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
16208         * recog.c (verify_changes): Verify that changes[i].old is non-zero
16209         before applying REG_P.
16211 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
16213         PR tree-optimization/58277
16214         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
16215         after seeing too many stmts with vdef in between dombb and current
16216         bb, invalidate everything.
16218 2013-08-30  Richard Biener  <rguenther@suse.de>
16220         * fold-const.c (fold_single_bit_test): Fix overflow test.
16222 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
16224         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
16225         and which can live in a register, always retrieve the value on entry.
16226         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
16227         passed by invisible reference specially.
16228         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
16229         (vt_add_function_parameter): Correctly deal with a parameter passed by
16230         invisible reference.
16232 2013-08-30  Jan Hubicka  <jh@suse.cz>
16234         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
16236 2013-08-30  Richard Biener  <rguenther@suse.de>
16238         PR tree-optimization/58228
16239         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
16240         allow invariant loads in nested loop vectorization.
16242 2013-08-30  Richard Biener  <rguenther@suse.de>
16244         PR tree-optimization/58223
16245         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
16246         (has_anti_or_output_dependence): ... this and adjust to also
16247         look for output dependences.
16248         (mark_nodes_having_upstream_mem_writes): Adjust.
16249         (rdg_flag_uses): Likewise.
16251 2013-08-30  Richard Biener  <rguenther@suse.de>
16253         PR tree-optimization/58010
16254         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16255         assert that we have a loop-closed PHI.
16257 2013-08-29  Jan Hubicka  <jh@suse.cz>
16259         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
16260         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
16261         * lto-section-in.c (lto_free_function_in_decl_state): New function.
16262         (lto_free_function_in_decl_state_for_node): New function.
16264 2013-08-29  Xinliang David Li  <davidxl@google.com>
16266         * loop-unroll.c (report_unroll_peel): Minor message change.
16267         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
16268         Emit alignment peeling message with default -fopt-info.
16269         (vect_loop_versioning): Emit loop version info message.
16270         * tree-vectorizer.c (vectorize_loops): Minor message change.
16271         (execute_vect_slp): Ditto.
16273 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
16275         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
16276         of the clone from the DECL_NAME of the original function.
16278 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
16280         * passes.c (register_pass): Add overload.
16281         * tree-pass.h (register_pass): Forward declare it.  Add comment.
16283 2013-08-29  Jan Hubicka  <jh@suse.cz>
16285         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
16286         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
16287         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
16288         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16289         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
16290         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
16291         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16292         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
16294 2013-08-29  Teresa Johnson  <tejohnson@google.com>
16296         * dumpfile.c (dump_loc): Output column number.
16297         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
16298         * doc/invoke.texi: Document optall -fopt-info flag.
16299         * profile.c (read_profile_edge_counts): Use new dump framework.
16300         (compute_branch_probabilities): Ditto.
16301         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
16302         when pass not in any opt group.
16303         * pass_manager.h (pass_manager::get_pass_profile): New method.
16304         * value-prof.c (check_counter): Use new dump framework.
16305         (check_ic_target): Ditto.
16306         * coverage.c (get_coverage_counts): Ditto.
16307         (coverage_init): Setup new dump framework.
16309 2013-08-29  Richard Biener  <rguenther@suse.de>
16311         PR tree-optimization/58246
16312         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
16313         handle the dominance check inside a basic-block.
16315 2013-08-29  Richard Biener  <rguenther@suse.de>
16317         PR middle-end/57287
16318         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
16319         of default defs that appear in abnormal PHI nodes.
16321 2013-08-29  Richard Biener  <rguenther@suse.de>
16323         PR tree-optimization/57685
16324         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
16325         single-use operands to avoid exponential complexity.
16327 2013-08-28  Dehao Chen  <dehao@google.com>
16329         * ipa-inline.c (edge_badness): Fix integer underflow.
16331 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
16333         * gtm-builtins.def (_ITM_free): Declare leaf.
16335 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
16337         PR target/58067
16338         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
16339         (*tls_local_dynamic_base_64_largepic): Likewise.
16340         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
16341         Remove predicate from call operand.
16342         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
16343         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
16345 2013-08-28  Jeff Law  <law@redhat.com>
16347         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
16348         checks for the number of predecessors and successors allowed.
16349         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
16350         which require copying a joiner block if there is a request which
16351         is a subpath that requires no joiner block copying.
16353 2013-08-28  Jan Hubicka  <jh@suse.cz>
16355         * lto-streamer-out.c (DFS_write_tree_body): Drop
16356         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
16357         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
16358         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
16359         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
16360         Do not read DECL_ERROR_ISSUED.
16361         (unpack_ts_decl_with_vis_value_fields): Do not read
16362         DECL_DEFER_OUTPUT.
16363         (lto_input_ts_binfo_tree_pointers): Do not read
16364         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
16365         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
16366         write DECL_ERROR_ISSUED..
16367         (pack_ts_decl_with_vis_value_fields): Do not write
16368         DECL_DEFER_OUTPUT.
16369         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
16370         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
16371         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
16372         * tree.h (tree_decl_common): Update comment.
16373         (DECL_ERROR_ISSUED): Remove.
16375 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
16377         PR middle-end/58257
16378         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
16380 2013-08-28  Jan Hubicka  <jh@suse.cz>
16382         * builtins.def (free): Declare leaf.
16384 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
16386         * gdbhooks.py: New.
16387         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
16388         * configure: Regenerate.
16390 2013-08-27  Martin Jambor  <mjambor@suse.cz>
16392         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
16393         (ipa_ancestor_jf_data): Likewise.
16394         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
16395         (ipa_get_jf_pass_through_type_preserved): New function.
16396         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
16397         (ipa_get_jf_ancestor_type_preserved): New function.
16398         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
16399         (ipa_get_jf_ancestor_result): Likewise.
16400         (propagate_vals_accross_pass_through): Use
16401         ipa_get_jf_pass_through_result to do all the value mappings.
16402         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
16403         type_preserved flag.
16404         (ipa_set_jf_cst_copy): New function.
16405         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
16406         (ipa_set_jf_arith_pass_through): Likewise.
16407         (ipa_set_ancestor_jf): Likewise.
16408         (compute_complex_assign_jump_func): Set type_preserved instead of
16409         punting.
16410         (ipa_compute_jump_functions_for_edge): Likewise.
16411         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
16412         (update_jump_functions_after_inlining): Update type_preserved.
16413         Explicitely create jump functions when combining one with pass_through.
16414         (ipa_write_jump_function): Stream the type_preserved flags.
16415         (ipa_read_jump_function): Likewise.
16417 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
16418             Aldy Hernandez  <aldyh@redhat.com>
16420         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
16421         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
16422         * function.h (struct function): Add has_force_vect_loops and
16423         has_simduid_loops.
16424         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
16425         * gimple.c (gimple_build_omp_critical): Add KIND argument and
16426         handle it.
16427         * gimple.def: Update CLAUSES comments.
16428         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
16429         (gimple_build_omp_for): Add argument to prototype.
16430         (gimple_omp_for_kind): New.
16431         (gimple_omp_for_set_kind): New.
16432         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
16433         GOVD_DATA_SHARE_CLASS.
16434         (enum omp_region_type): Add ORT_SIMD.
16435         (gimple_add_tmp_var): Handle ORT_SIMD.
16436         (gimplify_var_or_parm_decl): Same.
16437         (is_gimple_stmt): Same.
16438         (omp_firstprivatize_variable): Same.
16439         (omp_add_variable): Only use splay_tree_insert if lookup failed.
16440         (omp_notice_variable): Handle ORT_SIMD.
16441         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
16442         (omp_check_private): Handle ORT_SIMD.
16443         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16444         OMP_CLAUSE_SAFELEN.
16445         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
16446         Handle OMP_CLAUSE_LASTPRIVATE.
16447         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16448         OMP_CLAUSE_SAFELEN.
16449         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
16450         (gimplify_expr): Handle OMP_SIMD.
16451         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
16452         (expand_GOMP_SIMD_VF): New.
16453         (expand_GOMP_SIMD_LAST_LANE): New.
16454         * internal-fn.def (GOMP_SIMD_LANE): New.
16455         (GOMP_SIMD_VF): New.
16456         (GOMP_SIMD_LAST_LANE): New.
16457         * omp-low.c: Include target.h.
16458         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
16459         OMP_CLAUSE_SAFELEN.
16460         (check_omp_nesting_restrictions): Same.
16461         (omp_max_vf): New.
16462         (lower_rec_simd_input_clauses): New.
16463         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
16464         OMP_CLAUSE_LINEAR.
16465         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
16466         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
16467         (expand_omp_build_assign): New.
16468         (expand_omp_for_init_counts): New.
16469         (expand_omp_for_init_vars): New.
16470         (extract_omp_for_update_vars): New.
16471         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
16472         and rewrite accordingly.
16473         (expand_omp_simd): New.
16474         (expand_omp_for): Use expand_omp_simd.
16475         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
16476         (lower_omp_for): Do not lower the body.
16477         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
16478         in their own loops.
16479         * tree-flow.h (find_omp_clause): Remove prototype.
16480         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
16481         forcing vectorization of the loop, or if flag_tree_vectorize.
16482         (gate_tree_if_conversion): Similarly.
16483         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
16484         gimple_build_omp_for.
16485         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
16486         * tree-parloops (create_parallel_loop): Pass kind argument to
16487         gimple_build_omp_for.
16488         * tree-pretty-print.c (dump_omp_clause): Add cases for
16489         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
16490         OMP_CLAUSE__SIMDUID_.
16491         (dump_generic_node): Handle OMP_SIMD.
16492         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
16493         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
16494         unroll OMP_SIMD loops here.
16495         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
16496         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
16497         loop->safelen.
16498         (vect_analyze_data_refs): Handle simd loops.
16499         * tree-vect-loop.c (vectorizable_live_operation): Handle
16500         IFN_GOMP_SIMD*.
16501         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
16502         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
16503         (vectorizable_load): Same.
16504         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
16505         (struct simduid_to_vf): New.
16506         (simduid_to_vf::hash): New.
16507         (simduid_to-vf::equal): New.
16508         (struct simd_array_to_simduid): New.
16509         (simd_array_to_simduid::hash): New.
16510         (simd_array_to_simduid::equal): New.
16511         (adjust_simduid_builtins): New.
16512         (struct note_simd_array_uses_struct): New.
16513         (note_simd_array_uses_cb): New.
16514         (note_simd_array_uses): New.
16515         (vectorize_loops): Handle simd hints and adjust simd builtins
16516         accordingly.
16517         * tree-vectorizer.h (struct _stmt_vec_info): Add
16518         simd_lane_access_p field.
16519         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
16520         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
16521         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
16522         (omp_clause_code_name): Same.
16523         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
16524         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
16525         * tree.def (OMP_SIMD): New entry.
16526         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
16527         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
16528         (OMP_CLAUSE_DECL): Adjust range for new clauses.
16529         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
16530         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
16531         (OMP_CLAUSE_LINEAR_STEP): New.
16532         (OMP_CLAUSE_SAFELEN_EXPR): New.
16533         (OMP_CLAUSE__SIMDUID__DECL): New.
16534         (find_omp_clause): New prototype.
16536 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16538         * config/i386/driver-i386.c (host_detect_local_cpu): Update
16539         Haswell processor detection.
16541 2013-08-27  Christian Widmer  <shadow@umbrox.de>
16543         PR target/57927
16544         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
16545         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
16546         AVX2 capable processors.
16548 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
16550         * config/aarch64/arm_neon.h: Replace all inline asm implementations
16551         of vget_low_* with implementations in terms of other intrinsics.
16553 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
16555         PR middle-end/57219
16556         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
16557         values to -1, 0 and 1.
16559 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
16561         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
16562         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
16563         (<optab><mode>3_insn): Remove.
16564         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
16565         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
16566         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16567         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
16568         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
16569         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
16570         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
16571         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
16572         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
16573         (ror<mode>3_insn): Likewise.
16574         * config/aarch64/predicates.md (aarch64_simd_register): New.
16576 2013-08-27  Richard Biener  <rguenther@suse.de>
16578         PR tree-optimization/57521
16579         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
16580         one edge is non-critical.
16581         (find_phi_replacement_condition): Make sure to use a non-critical
16582         edge.  Cleanup and remove old bug workarounds.
16583         (bb_postdominates_preds): Remove.
16584         (if_convertible_loop_p_1): Do not compute post-dominators.
16585         (combine_blocks): Do not free post-dominators.
16586         (main_tree_if_conversion): Likewise.
16587         (pass_data_if_conversion): Add TODO_verify_ssa.
16589 2013-08-27  DJ Delorie  <dj@redhat.com>
16591         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
16593 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
16595         * function.c (assign_parm_find_data_types): Set passed_mode and
16596         nominal_mode to the TYPE_MODE of nominal_type for the built
16597         pointer type in case of the struct-pass-by-reference.
16599 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
16601         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
16602         (UINT16_TYPE): Change default to "unsigned int".
16604         * config/avr/avr.opt (mfract-convert-truncate): New option.
16605         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
16606         is set, round negative fractional integers according to n1169
16607         when converting to integer types.
16609 2013-08-26  Jan Hubicka  <jh@suse.cz>
16611         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
16612         methods can not be called indirectly when their address is not taken.
16614 2013-08-26  Jan Hubicka  <jh@suse.cz>
16616         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
16617         ctor_for_folding.
16619 2013-08-26  Jan Hubicka  <jh@suse.cz>
16621         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
16622         can be unshared.
16624 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
16626         * reload.c (find_valid_class): Allow classes that do not include
16627         FIRST_PSEUDO_REGISTER - 1.
16629 2013-08-26  Jan Hubicka  <jh@suse.cz>
16631         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
16632         fix edge count/frequency when speculation failed; fix type check
16633         for the direct call.
16635 2013-08-26  Jan Hubicka  <jh@suse.cz>
16637         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
16639 2013-08-26  Jan Hubicka  <jh@suse.cz>
16641         * ipa-inline-transform.c (inline_transform): Be ready for basic block
16642         to be changed by edge redirection.
16644 2013-08-26  Jan Hubicka  <jh@suse.cz>
16646         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
16647         formating; add sanity check.
16648         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
16649         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
16650         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
16651         (resolve_noninline_speculation): Update callee keys, too.
16653 2013-08-26  Jan Hubicka  <jh@suse.cz>
16655         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
16656         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
16658 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
16660         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
16661         into proper place.
16663 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
16665         * config/i386/i386.c (ix86_debug_options): Remove prototype.
16666         (x86_64_elf_select_section): Ditto.
16667         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
16668         arguments.
16669         (ix86_pass_by_reference): Ditto.
16670         (output_set_got): Ditto.
16671         (ix86_unary_operator_ok): Ditto.
16672         (ix86_expand_builtin): Ditto.
16674 2013-08-23  Jan Hubicka  <jh@suse.cz>
16676         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
16678 2013-08-23  Jan Hubicka  <jh@suse.cz>
16680         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
16681         (tree_decl_with_vis): Add FINAL field.
16683 2013-08-23  Jeff Law  <law@redhat.com>
16685         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
16686         the debugging dump when the expression is fully redundant.
16688 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16690         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
16691         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
16692         * pretty-print.c (pp_formatted_text_data): Likewise.
16693         (pp_write_text_to_stream): Likewise.
16694         (pp_write_text_as_dot_label_to_stream): Likewise.
16695         (pp_append_r): Likewise.
16696         (pp_format): Likewise.
16697         (pp_flush): Likewise.
16698         (pp_clear_output_area): Likewise.
16699         (pp_append_text): Likewise.
16700         (pp_formatted_text): Likewise.
16701         (pp_remaining_character_count_for_line): Likewise.
16702         (pp_newline): Likewise.
16703         (pp_character): Likewise.
16704         (output_buffer::~output_buffer): Define.
16705         (pretty_printer::~pretty_printer): Destruct output buffer.
16706         * pretty-print.h (output_buffer::~output_buffer): Declare.
16707         (pretty_printer::~pretty_printer): Declare virtual.
16709 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
16711         PR other/57324
16712         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
16713         HOST_WIDE_INT_M1U): New macros.
16714         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
16715         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
16716         unsigned -1 for lshift.
16717         * cse.c (cse_insn): Likewise.
16718         * double-int.c (rshift_double, lshift_double): Likewise.
16719         * builtins.c (fold_builtin_bitop): Likewise.
16720         * combine.c (force_to_mode): Likewise.
16721         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
16722         * simplify-rtx.c (simplify_const_unary_operation,
16723         simplify_const_binary_operation): Likewise.
16724         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
16725         check_va_list_escapes): Likewise.
16726         * rtlanal.c (nonzero_bits1): Likewise.
16727         * expmed.c (expand_smod_pow2): Likewise.
16728         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
16730 2013-08-23  Jan Hubicka  <jh@suse.cz>
16732         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
16733         as having address taken.
16735 2013-08-23  Jan Hubicka  <jh@suse.cz>
16737         * ipa-utils.h (method_class_type): Declare.
16738         * ipa-devirt.c (method_class_type): Export.
16740         * cgraphunit.c (analyze_functions): Do basic devirtualization;
16741         do not walk base classes of anonymous types.
16743 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
16745         PR rtl-optimization/58220
16746         PR regression/58221
16747         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
16748         handle SEQUENCE insns properly.
16750 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16752         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
16753         definition.
16754         (pp_newline_and_indent): Likewise.
16755         (pp_separate_with): Likewise.
16756         * pretty-print.c (pp_newline_and_flush): Define.
16757         (pp_newline_and_indent): Likewise.
16758         (pp_separate_with): Likewise.
16760 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
16762         PR target/58218
16763         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
16764         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
16766 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
16768         * config/i386/predicates.md (ext_sse_reg_operand): New.
16769         * config/i386/i386.md (*movti_internal): Use
16770         predicate to determine if EVEX is needed.
16771         (*movsi_internal): Ditto.
16772         (*movdf_internal): Ditto.
16773         (*movsf_internal): Ditto.
16774         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
16776 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
16778         PR tree-optimization/58209
16779         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
16780         (find_tail_calls): Give up for pointer result types if m is non-NULL.
16781         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
16782         emit POINTER_PLUS_EXPR.
16783         (create_tailcall_accumulator): For pointer result type accumulate in
16784         sizetype type.
16786 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
16788         * configure.ac: Add backslashes missing from the last change.
16789         * configure: Regenerate.
16791 2013-08-22  Jan Hubicka  <jh@susue.cz>
16793         * ipa.c (function_and_variable_visibility): First remember function
16794         was global and then make it local.
16796 2013-08-22  Julian Brown  <julian@codesourcery.com>
16798         * configure.ac: Add aarch64 to list of arches which use "nop" in
16799         debug_line test.
16800         * configure: Regenerate.
16802 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16804         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
16805         gnu_libc_has_function.
16806         * config/s390/tpf.h: Likewise.
16808 2013-08-22  Jan Hubicka  <jh@susue.cz>
16810         * timevar.c (validate_phases): Add cast.
16812 2013-08-22  Jan Hubicka  <jh@susue.cz>
16814         * timevar.c (validate_phases): Use size_t for memory.
16815         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
16817 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16819         * pretty-print.h (output_buffer::output_buffer): Declare.
16820         (pretty_printer::pretty_printer): Likewise.
16821         (pp_construct): Remove.
16822         * pretty-print.c (output_buffer::output_buffer): Define.
16823         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
16824         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
16825         (print_gimple_expr): Likewise.
16826         (print_gimple_seq): Likewise.
16827         (gimple_dump_bb): Likewise.
16828         * sched-vis.c (dump_value_slim): Likewise.
16829         (dump_insn_slim): Likewise.
16830         (dump_rtl_slim): Likewise.
16831         (str_pattern_slim): Likewise.
16832         * tree-mudflap.c (mf_varname_tree): Likewise.
16833         * graph.c (print_graph_cfg): Likewise.
16834         (start_graph_dump): Likewise.
16835         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
16836         placement-new.
16837         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
16838         pretty printer initialization.
16839         * coretypes.h (diagnostic_context): Remove superflous type alias
16840         declaration.
16841         (pretty_printer): Likewise.  Declare directly as a class.
16842         (pretty_print_info): Remove declaration as class.
16843         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
16844         and pp_clear_output_area.
16845         (asan_add_global): Likewise.
16847 2013-08-22  Jan Hubicka  <jh@suse.cz>
16849         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
16850         * ipa-utils.h (update_type_inheritance_graph): Declare.
16851         (possible_polymorphic_call_target_p): Declare.
16852         (possible_polymorphic_call_target_p): New.
16853         * ipa-devirt.c: Update toplevel comments.
16854         (cached_polymorphic_call_targets): Move up.
16855         (odr_type_d): Move ID down.
16856         (polymorphic_type_binfo_p): Update comment.
16857         (odr_hasher::remove): Likewise;
16858         (get_odr_type): Set anonymous_namespace.
16859         (dump_odr_type): Dump it.
16860         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
16861         (maybe_record_node): Record node in cached_polymorphic_call_targets.
16862         (record_binfo): Add comment.
16863         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
16864         built.
16865         (devirt_node_removal_hook): Do not iCE when cache is freed.
16866         (possible_polymorphic_call_target_p): New predicate.
16867         (update_type_inheritance_graph): New function.
16869 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16870             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16871             Sergey Lega  <sergey.s.lega@intel.com>
16872             Anna Tikhonova  <anna.tikhonova@intel.com>
16873             Ilya Tocar  <ilya.tocar@intel.com>
16874             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16875             Ilya Verbin  <ilya.verbin@intel.com>
16876             Kirill Yukhin  <kirill.yukhin@intel.com>
16877             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16879         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
16880         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
16881         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
16882         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
16883         (OPTION_MASK_ISA_AVX2_UNSET): Update.
16884         (OPTION_MASK_ISA_AVX512F_UNSET): New.
16885         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
16886         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
16887         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
16888         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
16889         OPT_mavx512pf, OPT_mavx512er cases.
16890         * config/i386/constraints.md (v): New constraint.
16891         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
16892         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
16893         (bit_AVX512CD): New.
16894         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16895         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
16896         * config/i386/i386-c.c (ix86_target_macros_internal):
16897         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
16898         __AVX512PF__.
16899         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
16900         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
16901         * config/i386/i386.c (regclass_map, dbx_register_map)
16902         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
16903         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
16904         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
16905         -mavx512pf options.
16906         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
16907         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
16908         -mavx512pf options.  Fix formatting.
16909         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
16910         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
16911         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
16912         -mavx512cd, -mavx512pf options.
16913         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
16914         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
16915         (ix86_preferred_output_reload_class): Replace SSE_REGS with
16916         ALL_SSE_REGS.
16917         (ix86_hard_regno_mode_ok): Support 512-bit registers.
16918         (ix86_set_reg_reg_cost): Ditto.
16919         (x86_order_regs_for_local_alloc): Ditto.
16920         (MAX_VECT_LEN): Extend to 64-byte.
16921         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
16922         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
16923         (TARGET_AVX512ER, TARGET_AVX512CD): New.
16924         (BIGGEST_ALIGNMENT): Extend to 512-bits.
16925         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
16926         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
16927         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
16928         (SSE_REG_MODE_P): Support new modes.
16929         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
16930         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
16931         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
16932         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
16933         (REG_CLASS_CONTENTS): Add new registers.
16934         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
16935         (EXT_REX_SSE_REGNO_P): New.
16936         (HI_REGISTER_NAMES): Add new registers.
16937         * config/i386/i386.md: Define constants for new registers.
16938         (mode): Add new 512-bit modes.
16939         (prefix): Support evex prefix.
16940         (isa): Support avx512f, noavx512f, fma_avx512f.
16941         (ssemodesuffix): Add new 512-bit modes.
16942         (movxi): New.
16943         (*movxi_internal_avx512f): Ditto.
16944         (*movdi_internal): Replace constraint "x" with the new constraint "v".
16945         Support MODE_XI.
16946         (*movsi_internal): Likewise.
16947         (*movdf_internal): Likewise.
16948         (*movsf_internal): Likewise.
16949         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
16950         (<code><mode>3): Likewise.
16951         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
16952         New.
16953         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
16954         with the new constraint "v".
16955         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
16956         modes.
16957         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
16958         with the new constraint "v".
16959         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
16960         (<sse2>_storedqu<avxsizesuffix>): Likewise.
16961         (*<plusminus_insn><mode>3): Likewise.
16962         (<sse>_vm<plusminus_insn><mode>3): Likewise.
16963         (*mul<mode>3): Likewise.
16964         (<sse>_vmmul<mode>3): Likewise.
16965         (<sse>_div<mode>3): Likewise.
16966         (<sse>_vmdiv<mode>3): Likewise.
16967         (<sse>_sqrt<mode>2): Likewise.
16968         (<sse>_vmsqrt<mode>2): Likewise.
16969         (*<code><mode>3_finite): Likewise.
16970         (*<code><mode>3) <smaxmin>: Likewise.
16971         (<sse>_vm<code><mode>3): Likewise.
16972         (*<code><mode>3) <any_logic>: Likewise.
16973         (*fma_fmadd_<mode>): Likewise.
16974         (*fma_fmsub_<mode>): Likewise.
16975         (*fma_fnmadd_<mode>): Likewise.
16976         (*fma_fnmsub_<mode>): Likewise.
16977         (*fma_fmaddsub_<mode>): Likewise.
16978         (*fma_fmsubadd_<mode>): Likewise.
16979         (*fmai_fmadd_<mode>): Likewise.
16980         (*fmai_fmsub_<mode>): Likewise.
16981         (*fmai_fnmadd_<mode>): Likewise.
16982         (*fmai_fnmsub_<mode>): Likewise.
16983         (sse_cvtsi2ss): Likewise.
16984         (sse_cvtsi2ssq): Likewise.
16985         (sse_cvtss2si): Likewise.
16986         (sse_cvtss2si_2): Likewise.
16987         (sse_cvtss2siq): Likewise.
16988         (sse_cvtss2siq_2): Likewise.
16989         (sse_cvttss2si): Likewise.
16990         (sse_cvtss2siq_2): Likewise.
16991         (float<sseintvecmodelower><mode>2): Likewise.
16992         (sse2_cvtsd2si_2): Likewise.
16993         (sse2_cvtsd2siq_2): Likewise.
16994         (*<plusminus_insn><mode>3): Likewise.
16995         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
16996         (*<sse4_1_avx2>_mul<mode>3): Likewise.
16997         (ashr<mode>3): Likewise.
16998         (<shift_insn><mode>3): Likewise.
16999         (avx2_<code><mode>3): Likewise.
17000         (*avx2_<code><mode>3): Likewise.
17001         (*andnot<mode>3): Likewise.
17002         (*<code><mode>3) <any_logic>: Likewise.
17003         (abs<mode>2): Likewise.
17004         (avx2_permvar<mode>): Likewise.
17005         (avx2_perm<mode>_1): Likewise.
17006         (*avx_vpermilp<mode>): Likewise.
17007         (avx_vpermilvar<mode>3): Likewise.
17008         (avx2_ashrv<mode>): Likewise.
17009         (avx2_<shift_insn>v<mode>): Likewise.
17010         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
17011         -mavx512cd.
17012         * doc/rtl.texi: Document XImode.
17014 2013-08-21  Jeff Law  <law@redhat.com>
17016         * tree-flow.h (register_jump_thread): Pass vector of edges
17017         instead of each important edge.
17018         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
17019         thread path into a vector and pass that to register_jump_thread.
17020         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
17021         passed in edge vector to the current 3-edge form.
17023         Revert:
17024         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
17026         * dce.c (fini_dce): Call df_analyze again just in case
17027         delete_unmarked_insns removed anything.
17029 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
17031         * reload.h (struct reg_equivs): Rename to ..
17032         (struct reg_equivs_s): .. this.
17034 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
17036         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
17038 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17040         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
17042 2013-08-21  Jeff Law  <law@redhat.com>
17044         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
17045         simplify assignments too.  If the RHS collapses to a singleton
17046         range, then return the value for the range.
17048 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
17050         * config/i386/sse.md (V16): Rename to...
17051         (VMOVE): this.
17052         (mov<mode>): Update iterator name.
17053         (*mov<mode>_internal): Ditto.
17054         (push<mode>1): Ditto.
17055         (movmisalign<mode>): Ditto.
17057 2013-08-20  Jan Hubicka  <jh@suse.cz>
17059         PR bootstrap/58186
17060         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
17061         entry for direct edges.
17062         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
17064 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17066         Revert my last two changes, r201865 and r201864:
17068         Revert r201865:
17069         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17071         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17072         instances can own GC refs.
17074         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17075         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17076         (gcc::context::gt_pch_nx): Likewise.
17077         (gcc::context::gt_pch_nx):  Likewise.
17078         * ggc.h (gt_ggc_mx <T>): New.
17079         (gt_pch_nx_with_op <T>): New.
17080         (gt_pch_nx <T>): New.
17081         * passes.c (opt_pass::gt_ggc_mx): New.
17082         (opt_pass::gt_pch_nx): New.
17083         (opt_pass::gt_pch_nx_with_op): New.
17084         (pass_manager::gt_ggc_mx): New.
17085         (pass_manager::gt_pch_nx): New.
17086         (pass_manager::gt_pch_nx_with_op): New.
17087         (pass_manager::operator new): Use
17088         ggc_internal_cleared_alloc_stat rather than xcalloc.
17089         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17090         (pass_manager::gt_ggc_mx): New.
17091         (pass_manager::gt_pch_nx): New.
17092         (pass_manager::gt_pch_nx_with_op): New.
17093         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17094         (opt_pass::operator new): New.
17095         (opt_pass::gt_ggc_mx): New.
17096         (opt_pass::gt_pch_nx): New.
17097         (opt_pass::gt_pch_nx_with_op): New.
17099         Revert r201864:
17100         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17102         * Makefile.in (GTFILES): Add context.h.
17103         * context.c (gcc::context::operator new): New.
17104         (gcc::context::gt_ggc_mx): New.
17105         (gcc::context::gt_pch_nx): New.
17106         (gcc::context::gt_pch_nx): New.
17107         * context.h (gcc::context): Add GTY((user)) marking.
17108         (gcc::context::operator new): New.
17109         (gcc::context::gt_ggc_mx): New.
17110         (gcc::context::gt_pch_nx): New.
17111         (gcc::context::gt_pch_nx): New.
17112         (g): Add GTY marking.
17113         (gt_ggc_mx (gcc::context *)): New.
17114         (gt_pch_nx (gcc::context *)): New.
17115         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17116         void *cookie)): New.
17117         * gengtype.c (open_base_files) <ifiles>: Add context.h.
17119 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
17121         * dce.c (fini_dce): Call df_analyze again just in case
17122         delete_unmarked_insns removed anything.
17124 2013-08-20  Teresa Johnson  <tejohnson@google.com>
17126         PR rtl-optimizations/57451
17127         * final.c (reemit_insn_block_notes): Prevent lexical blocks
17128         from crossing split section boundaries.
17130 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
17132         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
17133         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
17134         with MULTLIB_DEFAULTS.
17136 2013-08-20  Nick Clifton  <nickc@redhat.com>
17138         * target.def (narrow_volatile_bitfield): Note that the default
17139         value is false, not !TARGET_STRICT_ALIGN.
17140         * doc/tm.texi: Regenerate.
17142 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
17144         Fix LIB_SPEC for systems without libpthread.
17146         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
17147         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
17148         for Android.
17149         * config/i386/linux-common.h: Likewise.
17150         * config/mips/linux-common.h: Likewise.
17152 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
17154         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
17155         checks.
17157 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17159         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17160         instances can own GC refs.
17162         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17163         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17164         (gcc::context::gt_pch_nx): Likewise.
17165         (gcc::context::gt_pch_nx):  Likewise.
17166         * ggc.h (gt_ggc_mx <T>): New.
17167         (gt_pch_nx_with_op <T>): New.
17168         (gt_pch_nx <T>): New.
17169         * passes.c (opt_pass::gt_ggc_mx): New.
17170         (opt_pass::gt_pch_nx): New.
17171         (opt_pass::gt_pch_nx_with_op): New.
17172         (pass_manager::gt_ggc_mx): New.
17173         (pass_manager::gt_pch_nx): New.
17174         (pass_manager::gt_pch_nx_with_op): New.
17175         (pass_manager::operator new): Use
17176         ggc_internal_cleared_alloc_stat rather than xcalloc.
17177         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17178         (pass_manager::gt_ggc_mx): New.
17179         (pass_manager::gt_pch_nx): New.
17180         (pass_manager::gt_pch_nx_with_op): New.
17181         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17182         (opt_pass::operator new): New.
17183         (opt_pass::gt_ggc_mx): New.
17184         (opt_pass::gt_pch_nx): New.
17185         (opt_pass::gt_pch_nx_with_op): New.
17187 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17189         * Makefile.in (GTFILES): Add context.h.
17190         * context.c (gcc::context::operator new): New.
17191         (gcc::context::gt_ggc_mx): New.
17192         (gcc::context::gt_pch_nx): New.
17193         (gcc::context::gt_pch_nx): New.
17194         * context.h (gcc::context): Add GTY((user)) marking.
17195         (gcc::context::operator new): New.
17196         (gcc::context::gt_ggc_mx): New.
17197         (gcc::context::gt_pch_nx): New.
17198         (gcc::context::gt_pch_nx): New.
17199         (g): Add GTY marking.
17200         (gt_ggc_mx (gcc::context *)): New.
17201         (gt_pch_nx (gcc::context *)): New.
17202         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17203         void *cookie)): New.
17204         * gengtype.c (open_base_files) <ifiles>: Add context.h.
17206 2013-08-20  Alan Modra  <amodra@gmail.com>
17208         PR target/57865
17209         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
17210         (rs6000_emit_epilogue): Likewise.
17212 2013-08-19  Dehao Chen  <dehao@google.com>
17214         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
17216 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
17217             Jakub Jelinek  <jakub@redhat.com>
17219         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
17220         (BUILT_IN_FABSD64): Likewise.
17221         (BUILT_IN_FABSD128): Likewise.
17222         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
17223         (fold_builtin_1): Likewise.
17224         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
17225         destination and source operands.
17226         (*abstd2_fpr): Likewise.
17227         (*nabstd2_fpr): Likewise.
17229 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
17231         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
17232         JUMP_P and INSN_P.
17234 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
17236         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
17237         incomplete.
17239 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17241         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
17242         * builtins.c (default_libc_has_function): New.
17243         (gnu_libc_has_function): Ditto.
17244         (no_c99_libc_has_function): Ditto.
17245         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
17246         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
17247         (fold_builtin_sincos): Likewise.
17248         (fold_builtin_cexp): Likewise.
17249         * builtins.def (DEF_C94_BUILTIN): Likewise.
17250         (DEF_C99_BUILTIN): Likewise.
17251         (DEF_C99_C90RES_BUILTIN): Likewise.
17252         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
17253         definitions to using this define.
17254         * config/darwin-protos.h (darwin_libc_has_function): New.
17255         * config/darwin.c (darwin_libc_has_function): Ditto.
17256         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
17257         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
17258         * config/darwin.h: Ditto.
17259         * config/elfos.h: Ditto.
17260         * config/freebsd.h: Ditto.
17261         * config/i386/cygming.h: Ditto.
17262         * config/i386/djgpp.h: Ditto.
17263         * config/i386/i386-interix.h: Ditto.
17264         * config/microblaze/microblaze.h: Ditto.
17265         * config/mmix/mmix.h: Ditto.
17266         * config/gnu-user.h: Ditto.
17267         * config/ia64/hpux.h: Ditto.
17268         * config/pa/pa-hpux.h: Ditto.
17269         * config/pdp11/pdp11.h: Ditto.
17270         * config/picochip/picochip.h: Ditto.
17271         * config/linux.h: Ditto.
17272         * config/netbsd.h: Ditto.
17273         * config/openbsd.h: Ditto.
17274         * config/rs6000/aix43.h: Ditto.
17275         * config/rs6000/aix51.h: Ditto.
17276         * config/rs6000/aix52.h: Ditto.
17277         * config/rs6000/aix53.h: Ditto.
17278         * config/rs6000/aix61.h: Ditto.
17279         * config/rs6000/darwin.h: Ditto.
17280         * config/rs6000/linux.h: Ditto.
17281         * config/rs6000/linux64.h: Ditto.
17282         * config/s390/tpf.h: Ditto.
17283         * config/sol2-10.h: Ditto.
17284         * config/sol2.h: Ditto.
17285         * config/vms/vms.h: Ditto.
17286         * config/vxworks.h: Ditto.
17287         * config/linux-android.c (linux_android_libc_has_function):
17288         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
17289         * config/linux-protos.h (linux_android_libc_has_function):
17290         New declaration.
17291         * config/i386/i386.c (ix86_libc_has_function): New.
17292         * config/i386/i386-protos.h
17293         (ix86_libc_has_function): New declaration.
17294         * config/i386/i386.md
17295         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
17296         ("isinf<mode>2): Likewise.
17297         * convert.c (convert_to_integer): Using new target hook
17298         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
17299         TARGET_C99_FUNCTIONS.
17300         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
17301         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
17302         * coretypes.h (function_class): New enum for different
17303         classes of functions.
17304         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
17305         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
17306         (TARGET_HAS_SINCOS): Likewise.
17307         (TARGET_LIBC_HAS_FUNCTION): New.
17308         * doc/tm.texi: Regenerated.
17309         * targhooks.h (default_libc_has_function): New declaration.
17310         (no_c99_libc_has_function): Ditto.
17311         (gnu_libc_has_function): Ditto.
17312         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
17313         and TARGET_HAS_SINCOS.
17315 2013-08-18  Jan Hubicka  <jh@suse.cz>
17317         * Makeifle-in (ipa-devirt.o): New.
17318         (GTFILES): Add ipa-utils.h and ipa-devirt.c
17319         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
17320         (analyze_functions): Look into possible targets of polymorphic call.
17321         * dumpfile.c (dump_files): Add type-inheritance dump.
17322         * dumpfile.h (TDI_inheritance): New.
17323         * ipa-devirt.c: New file.
17324         * ipa-utils.h (odr_type_d): Forward declare.
17325         (odr_type): New type.
17326         (build_type_inheritance_graph): Declare.
17327         (possible_polymorphic_call_targets): Declare and introduce inline
17328         variant when only edge is pased.
17329         (dump_possible_polymorphic_call_targets): Likewise.
17330         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
17331         * tree.c (type_in_anonymous_namespace_p): Break out from ...
17332         (types_same_for_odr): ... here.
17333         * tree.h (type_in_anonymous_namespace_p): Declare.
17335 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
17337         PR tree-optimization/58006
17338         * tree-parloops.c (take_address_of): Don't ICE if get_name
17339         returns NULL.
17340         (eliminate_local_variables_stmt): Remove clobber stmts.
17342 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
17344         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
17345         error message is issued for an alias to undefined symbol.
17347 2013-08-18  Jan Hubicka  <jh@suse.cz>
17349         * cgraph.c (cgraph_create_indirect_edge): Discover
17350         polymorphic calls and record basic info into indirect_info.
17351         * gimple-fold.c (gimple_fold_call): When doing BINFO based
17352         devirtualization, ignore objc function calls.
17353         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
17354         call with no parm index info.
17355         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
17356         * tree.c (virtual_method_call_p): New function.
17357         * tree.h (virtual_method_call_p): Declare.
17359 2013-08-16  Jan Hubicka  <jh@suse.cz>
17361         PR middle-end/58179
17362         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
17364 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
17366         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
17367         attribute.
17369 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
17371         * gengtype.c (type_for_name): Add special-case support for
17372         locating types within the "gcc::" namespace.
17373         (open_base_files): Emit a "using namespace gcc" directive.
17375 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
17377         PR target/58160
17378         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
17379         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
17381         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
17382         array instead of each individual operand as a separate argument.
17383         (emit_fusion_gpr_load): Likewise.
17384         (expand_fusion_gpr_load): Add new function declaration.
17386         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
17387         signature to have the operands passed as an array, instead of as
17388         separate arguments.  Allow ZERO_EXTEND to be in the memory
17389         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
17390         depend on the register live/dead flags when peepholes are run.
17391         (expand_fusion_gpr_load): New function to be called from the
17392         peephole2 pass, to change the register that addis sets to be the
17393         target register.
17394         (emit_fusion_gpr_load): Change the calling signature to have the
17395         operands passed as an array, instead of as separate arguments.
17396         Allow ZERO_EXTEND to be in the memory address, and also
17397         SIGN_EXTEND if -mpower8-fusion-sign.
17399         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
17400         unspec enumeration.
17401         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
17402         adjust the register addis loads up in the peephole2 pass.  Do not
17403         depend on the register live/dead state when the peephole pass is done.
17405 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
17407         * gengtype.c (create_user_defined_type): Ensure that the kind
17408         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
17409         declaration is seen before the GTY((user)) marking.
17411 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17413         PR target/58105
17414         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
17416 2013-08-16  Jan Hubicka  <jh@suse.cz>
17418         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
17419         arugment expected_type.
17420         (gimple_fold_call): Use it.
17421         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
17422         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
17423         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
17424         (try_make_edge_direct_virtual_call): Likewise.
17425         * tree.c (obj_type_ref_class): New.
17426         * tree.h (obj_type_ref_class): Use it.
17428 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17430         * sched-vis.c (rtl_slim_pp_initialized): Remove.
17431         (rtl_slim_pp): Likewise.
17432         (init_rtl_slim_pretty_print): Likewise.
17433         (dump_value_slim):  Don't call it.  Use local pretty printer.
17434         (dump_insn_slim): Likewise.
17435         (dump_rtl_slim): Likewise.
17436         (str_pattern_slim): Likewise.
17437         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
17438         Simplify.
17440 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
17442         PR tree-optimization/58164
17443         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
17444         walk gimple_goto_dest of GIMPLE_GOTO.
17446         PR tree-optimization/58165
17447         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
17448         bi_call must be the last stmt in a bb, don't split_block, instead
17449         use fallthru edge from it and give up if there is none.
17450         Release conds vector when returning early.
17452 2013-08-14  Xinliang David Li  <davidxl@google.com>
17454         * config/i386/i386.c (ix86_option_override_internal):
17455         Remove unused variable and field.
17457 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17459         PR target/57949
17460         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
17461         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
17462         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
17463         and Linux, correct BLKmode alignment when 128-bit alignment is
17464         required and compatibility flag is not set.
17465         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
17466         for zero-size arguments when compatibility flag is not set.
17468 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
17470         PR tree-optimization/58145
17471         * tree-sra.c (build_ref_for_offset): If prev_base has
17472         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
17474 2013-08-14  Xinliang David Li  <davidxl@google.com>
17476         * config/i386/i386.c (ix86_option_override_internal):
17477         Fix uninitialized variable error.
17479 2013-08-14  Xinliang David Li  <davidxl@google.com>
17481         * config/i386/i386.opt: Define two new options.
17482         * config/i386/x86-tune.def: Add arch selector field in macros.
17483         * config/i386/i386.h: Adjust macro definition.
17484         * config/i386/i386.c (ix86_option_override_internal):
17485         Refactor the code.
17486         (parse_mtune_ctrl_str): New function.
17487         (set_ix86_tune_features): New function.
17488         (ix86_function_specific_restore): Call the new helper function.
17490 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
17492         PR rtl-optimization/57662
17493         * sel-sched.c (code_motion_process_successors): When the current insn
17494         is removed after the recursive traversal, break from the loop.
17495         Add comments and debug printouts.
17497 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
17498             Alexandre Oliva  <aoliva@redhat.com>
17500         PR target/58067
17501         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
17502         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
17503         there also UNSPEC_PLTOFF.
17505 2013-08-14  Marek Polacek  <polacek@redhat.com>
17507         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
17508         NUM_CONDITIONS bit positions.
17510 2013-08-13  Cary Coutant  <ccoutant@google.com>
17512         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
17513         (attr_checksum): Hash vector contents instead of pointer.
17514         (attr_checksum_ordered): Likewise.
17516 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
17518         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
17519         when Pmode != word_mode.  Add length_address attribute.
17520         (sse3_monitor_<mode>): Merge from sse3_monitor and
17521         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
17522         Pmode != word_mode.  Update insn length attribute.
17523         * config/i386/i386.c (ix86_option_override_internal): Update
17524         ix86_gen_monitor selection for merged sse3_monitor insn.
17526 2013-08-13  Julian Brown  <julian@codesourcery.com>
17528         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17529         perform invalid legitimization on greater-than-word-size modes for
17530         TARGET_E500_DOUBLE.
17532 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
17534         * ira.c (setup_class_translate_array): Use aclass instead of cl
17535         for classes not fully covered by allocno classes.
17537 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
17539         PR tree-optimization/57661
17540         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
17541         * tree-inline.c (tree_function_versioning): Initialize it.
17542         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
17543         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
17544         that is not being copied.
17546         PR sanitizer/56417
17547         * asan.c (instrument_strlen_call): Fix typo in comment.
17548         Use char * type even for the lhs of POINTER_PLUS_EXPR.
17550 2013-08-13  Steve Ellcey  <sellcey@mips.com>
17552         * config/mips/mips.md (prefetch): Use lw instead of ld on
17553         loongson in 32bit mode.
17555 2013-08-13  Nick Clifton  <nickc@redhat.com>
17557         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
17559 2013-08-13  Jan Hubicka  <jh@suse.cz>
17561         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
17562         introduced edge; fix typo in sanity check.
17563         (cgraph_resolve_speculation): Export; improve diagnostic.
17564         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
17565         speculation at type mismatch.
17566         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
17567         (cgraph_resolve_speculation): Declare.
17568         (symtab_can_be_discarded): New function.
17569         * value-prof.c (gimple_ic_transform): Remove actual transform code.
17570         * ipa-inline-transform.c (speculation_removed): New global var.
17571         (clone_inlined_nodes): See if speculation can be removed.
17572         (inline_call): If speculations was removed, we growths may not match.
17573         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
17574         (speculation_useful_p): New function.
17575         (resolve_noninline_speculation): New function.
17576         (inline_small_functions): Resolve useless speculations.
17577         * ipa-inline.h (speculation_useful_p): Declare
17578         * ipa.c (can_replace_by_local_alias): Simplify.
17579         (ipa_profile): Produce speculative calls in non-lto, too;
17580         add simple cost model; produce local aliases.
17582 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
17584         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
17585         PASS_MANAGER_H.
17587 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
17589         * config/i386/i386.c (ix86_function_versions): Use error + inform.
17591 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
17593         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
17594         iterator instead of X87MODEF.
17596 2013-08-12  Perez Read  <netfirewall@gmail.com>
17598         PR target/58132
17599         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
17600         operand 0 for intel asm alternative.
17601         (*movabs<mode>_2): Ditto for operand 1.
17603 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
17605         * config/aarch64/arm_none.h
17606         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
17608 2013-08-12  Nick Clifton  <nickc@redhat.com>
17610         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
17612 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
17614         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
17615         expand for QI/HImode operand to produce more effictive code for
17616         unsigned char(short) --> float(double) conversion.
17618 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
17620         * doc/invoke.texi: Mention that -ftls-model does not force the final
17621         model.
17623 2013-08-12  Marek Polacek  <polacek@redhat.com>
17624             Marc Glisse  <marc.glisse@inria.fr>
17626         PR tree-optimization/57980
17627         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
17628         when creating -1 constant.
17630 2013-08-10  Jan Hubicka  <jh@suse.cz>
17632         Workaround binutils PR14342.
17633         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
17634         (gimple_init_edge_profiler): Likewise.
17635         (gimple_gen_ic_func_profiler): Likewise.
17637 2013-08-09  Jan Hubicka  <jh@suse.cz>
17639         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
17641 2013-08-09  Xinliang David Li  <davidxl@google.com>
17643         * config/i386/stringop.def: New file.
17644         * config/i386/stringop.opt: New file.
17645         * config/i386/i386-opts.h: Include stringopt.def.
17646         * config/i386/i386.opt: Include stringopt.opt.
17647         * config/i386/i386.c (ix86_option_override_internal):
17648         Override default size based stringop inline strategies with options.
17649         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
17650         New function.
17652 2013-08-09  Jan Hubicka  <jh@suse.cz>
17654         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
17656 2013-08-09  Jan Hubicka  <jh@suse.cz>
17658         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
17659         CGRAPH_FREQ_MAX.
17660         (dump_cgraph_node): Dump profile-id.
17661         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
17662         and common_target_probability.
17663         * lto-cgraph.c (lto_output_edge): Stream common targets.
17664         (lto_output_node): Stream profile ids.
17665         (input_node): Stream profile ids.
17666         (input_edge): Stream common targets.
17667         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
17668         * ipa.c: Include value-prof.h
17669         (ipa_profile_generate_summary): Turn indirect call statement histograms
17670         into common targets.
17671         (ipa_profile): Turn common targets into speculative edges.
17673 2013-08-09  Jan Hubicka  <jh@suse.cz>
17675         * cgraph.h (cgraph_node): Add profile_id.
17676         * value-prof.c (cgraph_node_map): Turn into pointer_map.
17677         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
17678         (del_node_map): Update.
17679         (find_func_by_funcdef_no): Replace by ...
17680         (find_func_by_profile_id): ... this one.
17681         (gimple_ic_transform): Do not remove useful histograms when
17682         speculation is not done; dump info when indirect call removal
17683         can happen at LTO.
17684         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
17685         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
17686         (__gcov_indirect_call_profiler_v2): .. this one.
17687         * profile.h (init_node_map): Update.
17688         * coverage.c (coverage_compute_profile_id): New function.
17689         * coverage.h (coverage_compute_profile_id): Declare.
17690         * tree-profile.c (init_ic_make_global_vars): Make
17691         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
17692         (gimple_init_edge_profiler): Update prototype of
17693         __gcov_indirect_call_profiler.
17694         (gimple_gen_ic_func_profiler): Simplify.
17695         (tree_profiling): Use init_node_map
17697 2013-08-09  Jan Hubicka  <jh@suse.cz>
17699         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
17700         non-speculative refs.
17701         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
17702         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
17703         (cgraph_set_call_stmt): Likewise.
17704         (cgraph_create_edge_1): Fix release checking compilatoin;
17705         clear lto_stmt_uid.
17706         (cgraph_free_edge): Free indirect info.
17707         (cgraph_turn_edge_to_speculative): New function.
17708         (cgraph_speculative_call_info): New function.
17709         (cgraph_make_edge_direct): Return direct edge; handle speculation.
17710         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
17711         (dump_cgraph_node): Dump speculation.
17712         (verify_edge_count_and_frequency): Accept speculative edges.
17713         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
17714         (verify_cgraph_node): Handle speculation.
17715         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
17716         (cgraph_set_call_stmt): Update prototype.
17717         (cgraph_make_edge_direct): Update prototype.
17718         (cgraph_speculative_call_info): Declare.
17719         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
17720         to change; update call of ipa_find_references.
17721         * ipa-ref.c (ipa_record_reference): Fix return value; clear
17722         lto_stmt_uid and speculative flags.
17723         (ipa_dump_references): Dump speculation.
17724         (ipa_clone_references): Clone speculative flag.
17725         (ipa_clone_referring): Likewise.
17726         (ipa_clone_ref): New function.
17727         (ipa_find_reference): Look into lto_stmt_uids
17728         (ipa_clear_stmts_in_references): Do not clear speculative calls.
17729         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
17730         (ipa_find_reference): Update declaration.
17731         (ipa_clone_ref): Declare.
17732         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
17733         stream speculative flag.
17734         (lto_output_ref): Stream statements uids and speculation.
17735         (input_ref): Likewise.
17736         (input_edge): Stream speuclation.
17737         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
17738         (cgraph_set_call_stmt_including_clones): Handle speculation.
17739         * ipa-inline.c (heap_edge_removal_hook): New function.
17740         (inline_small_functions): Register it.
17741         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
17742         also initialize refs.
17743         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
17744         edge to change.
17745         (try_make_edge_direct_simple_call): Likewise.
17746         (try_make_edge_direct_simple_call): Likewise.
17747         (update_indirect_edges_after_inlining): Likewise.
17748         (remove_described_reference): Look proper lto_stmt_uid.
17749         (propagate_controlled_uses): Likewise.
17750         (propagate_controlled_uses): Liekwise.
17751         * tree-inline.c (copy_bb): Copy speculative edges.
17752         (redirect_all_calls): New function.
17753         (copy_cfg_body): Do redirection after loop info is updated.
17754         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
17756 2013-08-09  Jan Hubicka  <jh@suse.cz>
17758         * lto-streamer-out.c (output_function): Renumber PHIs.
17759         * lto-streamer-in.c (input_function): Likewise.
17761 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
17763         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
17764         (get_lane_unsigned): Likewise.
17765         (dup_lane_scalar): Likewise.
17766         (get_lane): enable for VALL.
17767         * config/aarch64/aarch64-simd.md
17768         (aarch64_dup_lane_scalar<mode>): Remove.
17769         (aarch64_get_lane_signed<mode>): Likewise.
17770         (aarch64_get_lane_unsigned<mode>): Likewise.
17771         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
17772         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
17773         (aarch64_get_lane<mode>): Enable for all vector modes.
17774         (aarch64_get_lanedi): Remove misleading constraints.
17775         * config/aarch64/arm_neon.h
17776         (__aarch64_vget_lane_any): Define.
17777         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
17778         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
17779         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
17780         * config/aarch64/iterators.md (VDQQH): New.
17781         (VDQQHS): Likewise.
17782         (vwcore): Likewise.
17784 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
17786         * configure.ac: Add GAS check for LEON instructions on SPARC.
17787         * configure: Regenerate.
17788         * config.in: Likewise.
17789         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
17790         sparc*-*-* block.
17791         * config/sparc/sparc.opt (LEON, LEON3): New masks.
17792         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
17793         for LEON or LEON3.
17794         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
17795         (AS_LEON_FLAG): New macro.
17796         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
17797         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
17798         Deal with LEON and LEON3 for the memory model.
17799         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
17800         (atomic_compare_and_swap<mode>_1): Likewise.
17801         (*atomic_compare_and_swap<mode>_1): Likewise.
17803 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17805         * config/arm/neon.md (vcond): Fix floating-point vector
17806         comparisons against 0.
17808 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
17810         * lra-constraints.c (emit_spill_move): Remove assert.
17811         (process_alt_operands): Add more debugging
17812         output.  Increase reject for spilling into memory.  Decrease
17813         reject for reloading scratch.
17814         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
17816 2013-08-08  Steve Ellcey  <sellcey@mips.com>
17818         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
17819         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
17820         micromips incompatible.  Add nan2008.
17821         (MULTILIB_DIRNAMES): Add nan2008.
17822         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17823         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
17824         and micromips incompatible.  Add nan2008.
17825         (MULTILIB_DIRNAMES): Add nan2008.
17826         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17828 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
17830         PR rtl-optimization/58079
17831         * combine.c (combine_simplify_rtx): Avoid using SUBST if
17832         simplify_comparison has widened a comparison with an integer.
17834 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17836         * config/arm/neon.md (movmisalign<mode>): Disable when we
17837         don't allow unaligned accesses.
17838         (*movmisalign<mode>_neon_store): Likewise.
17839         (*movmisalign<mode>_neon_load): Likewise.
17840         (*movmisalign<mode>_neon_store): Likewise.
17841         (*movmisalign<mode>_neon_load): Likewise.
17843 2013-08-08  Jan Hubicka  <jh@suse.cz>
17845         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
17846         (make_pass_rebuild_cgraph_edges): Also clear references.
17847         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
17848         * ipa-inline-transform.c (inline_transform): Remove all references
17849         after inlining.
17850         * cgraphunit.c (expand_function): Remove all references after
17851         expansion.
17852         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
17853         (ipa_find_reference): Rewrite to iterator.
17854         (remove_stmt_references): Likewise.
17855         (ipa_clear_stmts_in_references): New function.
17856         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
17857         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
17858         clear references.
17859         * ipa-split.c (split_function): Remove references in split function.
17861 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
17863         PR target/57431
17864         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
17865         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
17867 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
17869         PR target/56979
17870         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
17871         suggested mode for the assignment isn't compatible with the
17872         registers required.
17874 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17876         PR target/58065
17877         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
17879 2013-08-07  Xinliang David Li  <davidxl@google.com>
17881         * config/i386/i386.opt: New option -mtune-ctrl=.
17882         * config/i386/x86-tune.def: New file.
17883         * config/i386/i386.h: include x86-tune.def.
17884         * config/i386/i386.c (ix86_option_override_internal):
17885         Parsing -mtune-ctrl= option and set tune features.
17887 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
17889         PR other/12081
17890         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
17891         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
17892         to gen_2arg_fn_t.
17894 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
17896         * rtl.h (update_alignments): Declare.
17897         * final.c (grow_label_align): New function extracted from...
17898         (shorten_branches): ...here.  Call it.
17899         (update_alignments): New function.
17900         * reorg.c (sibling_labels): New variable.
17901         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
17902         the new label along with it onto the sibling_labels vector.
17903         (fill_simple_delay_slots): Adjust call to get_label_before.
17904         (fill_slots_from_thread): Likewise.
17905         (relax_delay_slots): Likewise.
17906         (make_return_insns): Likewise.
17907         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
17909 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
17911         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
17912         document its semantics.
17913         (diagnostic_report_diagnostic): Adjust accordingly.
17915 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17917         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
17918         (sparc_option_override): ...and port to new C++ pass API.
17919         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
17921 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
17923         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
17925 2013-08-06  Caroline Tice  <cmtice@google.com>
17927         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
17928         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
17929         * tree-pass.h: Add pass_vtable_verify.
17930         * varasm.c (assemble_variable): Add code to properly set the comdat
17931         section and name for the .vtable_map_vars section.
17932         (assemble_vtyv_preinit_initializer): New function.
17933         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
17934         LINK_ONCE flag.
17935         * output.h: Add function decl for assemble_vtv_preinit_initializer.
17936         * vtable-verify.c: New file.
17937         * vtable-verify.h: New file.
17938         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
17939         initialiation levels.
17940         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
17941         * passes.def: Insert pass_vtable_verify.
17942         * aclocal.m4: Reorder includes.
17943         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
17944         -fvtv-counts options.
17945         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
17946         as appropriate, if -fvtable-verify=... is used.
17947         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
17948         -fvtable-verify=... is used.
17949         * Makefile.in (OBJS):  Add vtable-verify.o to list.
17950         (vtable-verify.o): Add new build rule.
17951         (GTFILES): Add vtable-verify.c to list.
17952         * common.opt (fvtable-verify=): New flag.
17953         (vtv_priority): Values for fvtable-verify= flag.
17954         (fvtv-counts): New flag.
17955         (fvtv-debug): New flag.
17956         * tree.h (save_vtable_map_decl): New extern function decl.
17958 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17960         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
17961         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
17962         (pass_data_rl78_devirt): ...new pass_data instance and...
17963         (make_pass_rl78_devirt): ...new function.
17964         (rl78_asm_file_start): Port pass registration to new C++ API.
17966 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17968         * coretypes.h (rtl_opt_pass): Add.
17969         (gcc::context): Add.
17970         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
17971         (epiphany_init): Port to new C++ pass API.
17972         (epiphany_optimize_mode_switching): Likewise.
17973         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
17974         (pass_manager::get_pass_mode_switching): New.
17975         (pass_manager::get_pass_peephole2): New.
17976         * mode-switching.c (pass_mode_switching): Add clone method.
17977         * recog.c (pass_peephole2): Add clone method.
17978         (pass_split_all_insns): Add clone method.
17980 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
17982         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
17983         (mips_option_override): ...here, porting to new C++ API for passes.
17985 2013-08-06  Jan Hubicka  <jh@suse.cz>
17987         * cgraph.c (cgraph_get_body): New function based on lto.c
17988         implementation.
17989         * cgraph.h (cgraph_get_body): Declare.
17990         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
17991         LTO paths.
17992         * cgraphunit.c (expand_function): Get body prior expanding.
17993         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
17994         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
17995         really need.
17996         * passes.c (do_per_function_toporder): Get body.
17997         * tree-inline.c (expand_call_inline): Get body prior inlining it.
17998         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
18000 2013-08-06  Martin Jambor  <mjambor@suse.cz>
18002         PR fortran/57987
18003         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
18004         is not re-finalized.  Rename second parameter to no_collect.
18006 2013-08-06  Martin Jambor  <mjambor@suse.cz>
18008         PR middle-end/58041
18009         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
18010         MEM_REF has proper alignment information.
18012 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
18014         PR other/12081
18015         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
18016         class insn_gen_fn.
18017         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
18018         rtx (*) (rtx, ...) with insn_gen_fn.
18019         * genoutput.c (output_insn_data): Cast gen_? function pointers to
18020         insn_gen_fn::stored_funcptr.  Add initializer braces.
18022 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18024         Rewrite how instances of passes are cloned to remove assumptions
18025         about their sizes (thus allowing pass subclasses to have
18026         additional data fields, albeit non-GC-managed ones at this point).
18028         * passes.c (make_pass_instance): Now that passes have clone
18029         methods, rewrite this function to eliminate XNEW and memcpy
18030         calls that used hardcoded sizes.  Since this function no longer
18031         creates pass instances, rename it to...
18032         (add_pass_instance): ...this.  Document the old way that passes were
18033         numbered and flagged, and rework this function to continue using it.
18034         (next_pass_1): Add an initial_pass argument for use by
18035         add_pass_instance.
18036         (position_pass): When adding multiple instances of a pass, use
18037         the pass's clone method, rather than relying on the XNEW/memcpy
18038         within the former make_pass_instance (now add_pass_instance).
18039         (pass_manager::pass_manager): When invoking next_pass_1, also supply
18040         the initial instance of the current pass within the pass manager.
18042 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18044         This is the automated part of the conversion of passes from C
18045         structs to C++ classes.
18047         Patch autogenerated by refactor_passes.py from
18048         https://github.com/davidmalcolm/gcc-refactoring-scripts
18049         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
18051         * asan.c (pass_asan): Convert from a global struct to a subclass of
18052         gimple_opt_pass along with...
18053         (pass_data_asan): ...new pass_data instance and...
18054         (make_pass_asan): ...new function.
18055         (pass_asan_O0): Convert from a global struct to a subclass of
18056         gimple_opt_pass along with...
18057         (pass_data_asan_O0): ...new pass_data instance and...
18058         (make_pass_asan_O0): ...new function.
18059         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
18060         subclass of rtl_opt_pass along with...
18061         (pass_data_inc_dec): ...new pass_data instance and...
18062         (make_pass_inc_dec): ...new function.
18063         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
18064         a subclass of rtl_opt_pass along with...
18065         (pass_data_reorder_blocks): ...new pass_data instance and...
18066         (make_pass_reorder_blocks): ...new function.
18067         (pass_duplicate_computed_gotos): Convert from a global struct to a
18068         subclass of rtl_opt_pass along with...
18069         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
18070         (make_pass_duplicate_computed_gotos): ...new function.
18071         (pass_partition_blocks): Convert from a global struct to a subclass of
18072         rtl_opt_pass along with...
18073         (pass_data_partition_blocks): ...new pass_data instance and...
18074         (make_pass_partition_blocks): ...new function.
18075         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
18076         struct to a subclass of rtl_opt_pass along with...
18077         (pass_data_branch_target_load_optimize1): ...new pass_data instance
18078         and...
18079         (make_pass_branch_target_load_optimize1): ...new function.
18080         (pass_branch_target_load_optimize2): Convert from a global struct to a
18081         subclass of rtl_opt_pass along with...
18082         (pass_data_branch_target_load_optimize2): ...new pass_data instance
18083         and...
18084         (make_pass_branch_target_load_optimize2): ...new function.
18085         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
18086         of rtl_opt_pass along with...
18087         (pass_data_jump): ...new pass_data instance and...
18088         (make_pass_jump): ...new function.
18089         (pass_jump2): Convert from a global struct to a subclass of
18090         rtl_opt_pass along with...
18091         (pass_data_jump2): ...new pass_data instance and...
18092         (make_pass_jump2): ...new function.
18093         * cfgexpand.c (pass_expand): Convert from a global struct to a
18094         subclass of rtl_opt_pass along with...
18095         (pass_data_expand): ...new pass_data instance and...
18096         (make_pass_expand): ...new function.
18097         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
18098         of rtl_opt_pass along with...
18099         (pass_data_free_cfg): ...new pass_data instance and...
18100         (make_pass_free_cfg): ...new function.
18101         (pass_into_cfg_layout_mode): Convert from a global struct to a
18102         subclass of rtl_opt_pass along with...
18103         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
18104         (make_pass_into_cfg_layout_mode): ...new function.
18105         (pass_outof_cfg_layout_mode): Convert from a global struct to a
18106         subclass of rtl_opt_pass along with...
18107         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
18108         (make_pass_outof_cfg_layout_mode): ...new function.
18109         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
18110         struct to a subclass of gimple_opt_pass along with...
18111         (pass_data_build_cgraph_edges): ...new pass_data instance and...
18112         (make_pass_build_cgraph_edges): ...new function.
18113         (pass_rebuild_cgraph_edges): Convert from a global struct to a
18114         subclass of gimple_opt_pass along with...
18115         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
18116         (make_pass_rebuild_cgraph_edges): ...new function.
18117         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
18118         subclass of gimple_opt_pass along with...
18119         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
18120         and...
18121         (make_pass_remove_cgraph_callee_edges): ...new function.
18122         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
18123         struct to a subclass of rtl_opt_pass along with...
18124         (pass_data_stack_adjustments): ...new pass_data instance and...
18125         (make_pass_stack_adjustments): ...new function.
18126         * combine.c (pass_combine): Convert from a global struct to a subclass
18127         of rtl_opt_pass along with...
18128         (pass_data_combine): ...new pass_data instance and...
18129         (make_pass_combine): ...new function.
18130         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
18131         global struct to a subclass of rtl_opt_pass along with...
18132         (pass_data_compare_elim_after_reload): ...new pass_data instance
18133         and...
18134         (make_pass_compare_elim_after_reload): ...new function.
18135         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
18136         of rtl_opt_pass along with...
18137         (pass_data_rtl_cprop): ...new pass_data instance and...
18138         (make_pass_rtl_cprop): ...new function.
18139         * cse.c (pass_cse): Convert from a global struct to a subclass of
18140         rtl_opt_pass along with...
18141         (pass_data_cse): ...new pass_data instance and...
18142         (make_pass_cse): ...new function.
18143         (pass_cse2): Convert from a global struct to a subclass of
18144         rtl_opt_pass along with...
18145         (pass_data_cse2): ...new pass_data instance and...
18146         (make_pass_cse2): ...new function.
18147         (pass_cse_after_global_opts): Convert from a global struct to a
18148         subclass of rtl_opt_pass along with...
18149         (pass_data_cse_after_global_opts): ...new pass_data instance and...
18150         (make_pass_cse_after_global_opts): ...new function.
18151         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
18152         of rtl_opt_pass along with...
18153         (pass_data_ud_rtl_dce): ...new pass_data instance and...
18154         (make_pass_ud_rtl_dce): ...new function.
18155         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
18156         rtl_opt_pass along with...
18157         (pass_data_fast_rtl_dce): ...new pass_data instance and...
18158         (make_pass_fast_rtl_dce): ...new function.
18159         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
18160         a subclass of rtl_opt_pass along with...
18161         (pass_data_df_initialize_opt): ...new pass_data instance and...
18162         (make_pass_df_initialize_opt): ...new function.
18163         (pass_df_initialize_no_opt): Convert from a global struct to a
18164         subclass of rtl_opt_pass along with...
18165         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
18166         (make_pass_df_initialize_no_opt): ...new function.
18167         (pass_df_finish): Convert from a global struct to a subclass of
18168         rtl_opt_pass along with...
18169         (pass_data_df_finish): ...new pass_data instance and...
18170         (make_pass_df_finish): ...new function.
18171         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
18172         rtl_opt_pass along with...
18173         (pass_data_rtl_dse1): ...new pass_data instance and...
18174         (make_pass_rtl_dse1): ...new function.
18175         (pass_rtl_dse2): Convert from a global struct to a subclass of
18176         rtl_opt_pass along with...
18177         (pass_data_rtl_dse2): ...new pass_data instance and...
18178         (make_pass_rtl_dse2): ...new function.
18179         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
18180         subclass of rtl_opt_pass along with...
18181         (pass_data_dwarf2_frame): ...new pass_data instance and...
18182         (make_pass_dwarf2_frame): ...new function.
18183         * except.c (pass_set_nothrow_function_flags): Convert from a global
18184         struct to a subclass of rtl_opt_pass along with...
18185         (pass_data_set_nothrow_function_flags): ...new pass_data instance
18186         and...
18187         (make_pass_set_nothrow_function_flags): ...new function.
18188         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
18189         subclass of rtl_opt_pass along with...
18190         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
18191         and...
18192         (make_pass_convert_to_eh_region_ranges): ...new function.
18193         * final.c (pass_compute_alignments): Convert from a global struct to a
18194         subclass of rtl_opt_pass along with...
18195         (pass_data_compute_alignments): ...new pass_data instance and...
18196         (make_pass_compute_alignments): ...new function.
18197         (pass_final): Convert from a global struct to a subclass of
18198         rtl_opt_pass along with...
18199         (pass_data_final): ...new pass_data instance and...
18200         (make_pass_final): ...new function.
18201         (pass_shorten_branches): Convert from a global struct to a subclass of
18202         rtl_opt_pass along with...
18203         (pass_data_shorten_branches): ...new pass_data instance and...
18204         (make_pass_shorten_branches): ...new function.
18205         (pass_clean_state): Convert from a global struct to a subclass of
18206         rtl_opt_pass along with...
18207         (pass_data_clean_state): ...new pass_data instance and...
18208         (make_pass_clean_state): ...new function.
18209         * function.c (pass_instantiate_virtual_regs): Convert from a global
18210         struct to a subclass of rtl_opt_pass along with...
18211         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
18212         (make_pass_instantiate_virtual_regs): ...new function.
18213         (pass_leaf_regs): Convert from a global struct to a subclass of
18214         rtl_opt_pass along with...
18215         (pass_data_leaf_regs): ...new pass_data instance and...
18216         (make_pass_leaf_regs): ...new function.
18217         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
18218         subclass of rtl_opt_pass along with...
18219         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
18220         and...
18221         (make_pass_thread_prologue_and_epilogue): ...new function.
18222         (pass_match_asm_constraints): Convert from a global struct to a
18223         subclass of rtl_opt_pass along with...
18224         (pass_data_match_asm_constraints): ...new pass_data instance and...
18225         (make_pass_match_asm_constraints): ...new function.
18226         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
18227         subclass of rtl_opt_pass along with...
18228         (pass_data_rtl_fwprop): ...new pass_data instance and...
18229         (make_pass_rtl_fwprop): ...new function.
18230         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
18231         rtl_opt_pass along with...
18232         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
18233         (make_pass_rtl_fwprop_addr): ...new function.
18234         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
18235         rtl_opt_pass along with...
18236         (pass_data_rtl_pre): ...new pass_data instance and...
18237         (make_pass_rtl_pre): ...new function.
18238         (pass_rtl_hoist): Convert from a global struct to a subclass of
18239         rtl_opt_pass along with...
18240         (pass_data_rtl_hoist): ...new pass_data instance and...
18241         (make_pass_rtl_hoist): ...new function.
18242         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
18243         subclass of gimple_opt_pass along with...
18244         (pass_data_lower_cf): ...new pass_data instance and...
18245         (make_pass_lower_cf): ...new function.
18246         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
18247         from a global struct to a subclass of gimple_opt_pass along with...
18248         (pass_data_strength_reduction): ...new pass_data instance and...
18249         (make_pass_strength_reduction): ...new function.
18250         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
18251         of rtl_opt_pass along with...
18252         (pass_data_rtl_ifcvt): ...new pass_data instance and...
18253         (make_pass_rtl_ifcvt): ...new function.
18254         (pass_if_after_combine): Convert from a global struct to a subclass of
18255         rtl_opt_pass along with...
18256         (pass_data_if_after_combine): ...new pass_data instance and...
18257         (make_pass_if_after_combine): ...new function.
18258         (pass_if_after_reload): Convert from a global struct to a subclass of
18259         rtl_opt_pass along with...
18260         (pass_data_if_after_reload): ...new pass_data instance and...
18261         (make_pass_if_after_reload): ...new function.
18262         * init-regs.c (pass_initialize_regs): Convert from a global struct to
18263         a subclass of rtl_opt_pass along with...
18264         (pass_data_initialize_regs): ...new pass_data instance and...
18265         (make_pass_initialize_regs): ...new function.
18266         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
18267         of ipa_opt_pass_d along with...
18268         (pass_data_ipa_cp): ...new pass_data instance and...
18269         (make_pass_ipa_cp): ...new function.
18270         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
18271         global struct to a subclass of gimple_opt_pass along with...
18272         (pass_data_inline_parameters): ...new pass_data instance and...
18273         (make_pass_inline_parameters): ...new function.
18274         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
18275         subclass of gimple_opt_pass along with...
18276         (pass_data_early_inline): ...new pass_data instance and...
18277         (make_pass_early_inline): ...new function.
18278         (pass_ipa_inline): Convert from a global struct to a subclass of
18279         ipa_opt_pass_d along with...
18280         (pass_data_ipa_inline): ...new pass_data instance and...
18281         (make_pass_ipa_inline): ...new function.
18282         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
18283         struct to a subclass of gimple_opt_pass along with...
18284         (pass_data_local_pure_const): ...new pass_data instance and...
18285         (make_pass_local_pure_const): ...new function.
18286         (pass_ipa_pure_const): Convert from a global struct to a subclass of
18287         ipa_opt_pass_d along with...
18288         (pass_data_ipa_pure_const): ...new pass_data instance and...
18289         (make_pass_ipa_pure_const): ...new function.
18290         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
18291         to a subclass of ipa_opt_pass_d along with...
18292         (pass_data_ipa_reference): ...new pass_data instance and...
18293         (make_pass_ipa_reference): ...new function.
18294         * ipa-split.c (pass_split_functions): Convert from a global struct to
18295         a subclass of gimple_opt_pass along with...
18296         (pass_data_split_functions): ...new pass_data instance and...
18297         (make_pass_split_functions): ...new function.
18298         (pass_feedback_split_functions): Convert from a global struct to a
18299         subclass of gimple_opt_pass along with...
18300         (pass_data_feedback_split_functions): ...new pass_data instance and...
18301         (make_pass_feedback_split_functions): ...new function.
18302         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
18303         global struct to a subclass of simple_ipa_opt_pass along with...
18304         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
18305         instance and...
18306         (make_pass_ipa_function_and_variable_visibility): ...new function.
18307         (pass_ipa_free_inline_summary): Convert from a global struct to a
18308         subclass of simple_ipa_opt_pass along with...
18309         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
18310         (make_pass_ipa_free_inline_summary): ...new function.
18311         (pass_ipa_whole_program_visibility): Convert from a global struct to a
18312         subclass of ipa_opt_pass_d along with...
18313         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
18314         and...
18315         (make_pass_ipa_whole_program_visibility): ...new function.
18316         (pass_ipa_profile): Convert from a global struct to a subclass of
18317         ipa_opt_pass_d along with...
18318         (pass_data_ipa_profile): ...new pass_data instance and...
18319         (make_pass_ipa_profile): ...new function.
18320         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
18321         ipa_opt_pass_d along with...
18322         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
18323         (make_pass_ipa_cdtor_merge): ...new function.
18324         * ira.c (pass_ira): Convert from a global struct to a subclass of
18325         rtl_opt_pass along with...
18326         (pass_data_ira): ...new pass_data instance and...
18327         (make_pass_ira): ...new function.
18328         (pass_reload): Convert from a global struct to a subclass of
18329         rtl_opt_pass along with...
18330         (pass_data_reload): ...new pass_data instance and...
18331         (make_pass_reload): ...new function.
18332         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
18333         subclass of rtl_opt_pass along with...
18334         (pass_data_cleanup_barriers): ...new pass_data instance and...
18335         (make_pass_cleanup_barriers): ...new function.
18336         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
18337         of rtl_opt_pass along with...
18338         (pass_data_loop2): ...new pass_data instance and...
18339         (make_pass_loop2): ...new function.
18340         (pass_rtl_loop_init): Convert from a global struct to a subclass of
18341         rtl_opt_pass along with...
18342         (pass_data_rtl_loop_init): ...new pass_data instance and...
18343         (make_pass_rtl_loop_init): ...new function.
18344         (pass_rtl_loop_done): Convert from a global struct to a subclass of
18345         rtl_opt_pass along with...
18346         (pass_data_rtl_loop_done): ...new pass_data instance and...
18347         (make_pass_rtl_loop_done): ...new function.
18348         (pass_rtl_move_loop_invariants): Convert from a global struct to a
18349         subclass of rtl_opt_pass along with...
18350         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
18351         (make_pass_rtl_move_loop_invariants): ...new function.
18352         (pass_rtl_unswitch): Convert from a global struct to a subclass of
18353         rtl_opt_pass along with...
18354         (pass_data_rtl_unswitch): ...new pass_data instance and...
18355         (make_pass_rtl_unswitch): ...new function.
18356         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
18357         subclass of rtl_opt_pass along with...
18358         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
18359         and...
18360         (make_pass_rtl_unroll_and_peel_loops): ...new function.
18361         (pass_rtl_doloop): Convert from a global struct to a subclass of
18362         rtl_opt_pass along with...
18363         (pass_data_rtl_doloop): ...new pass_data instance and...
18364         (make_pass_rtl_doloop): ...new function.
18365         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
18366         a subclass of rtl_opt_pass along with...
18367         (pass_data_lower_subreg): ...new pass_data instance and...
18368         (make_pass_lower_subreg): ...new function.
18369         (pass_lower_subreg2): Convert from a global struct to a subclass of
18370         rtl_opt_pass along with...
18371         (pass_data_lower_subreg2): ...new pass_data instance and...
18372         (make_pass_lower_subreg2): ...new function.
18373         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
18374         struct to a subclass of ipa_opt_pass_d along with...
18375         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
18376         (make_pass_ipa_lto_gimple_out): ...new function.
18377         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
18378         of ipa_opt_pass_d along with...
18379         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
18380         (make_pass_ipa_lto_finish_out): ...new function.
18381         * mode-switching.c (pass_mode_switching): Convert from a global struct
18382         to a subclass of rtl_opt_pass along with...
18383         (pass_data_mode_switching): ...new pass_data instance and...
18384         (make_pass_mode_switching): ...new function.
18385         * modulo-sched.c (pass_sms): Convert from a global struct to a
18386         subclass of rtl_opt_pass along with...
18387         (pass_data_sms): ...new pass_data instance and...
18388         (make_pass_sms): ...new function.
18389         * omp-low.c (pass_expand_omp): Convert from a global struct to a
18390         subclass of gimple_opt_pass along with...
18391         (pass_data_expand_omp): ...new pass_data instance and...
18392         (make_pass_expand_omp): ...new function.
18393         (pass_lower_omp): Convert from a global struct to a subclass of
18394         gimple_opt_pass along with...
18395         (pass_data_lower_omp): ...new pass_data instance and...
18396         (make_pass_lower_omp): ...new function.
18397         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
18398         of gimple_opt_pass along with...
18399         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
18400         (make_pass_diagnose_omp_blocks): ...new function.
18401         * passes.c (pass_early_local_passes): Convert from a global struct to
18402         a subclass of simple_ipa_opt_pass along with...
18403         (pass_data_early_local_passes): ...new pass_data instance and...
18404         (make_pass_early_local_passes): ...new function.
18405         (pass_all_early_optimizations): Convert from a global struct to a
18406         subclass of gimple_opt_pass along with...
18407         (pass_data_all_early_optimizations): ...new pass_data instance and...
18408         (make_pass_all_early_optimizations): ...new function.
18409         (pass_all_optimizations): Convert from a global struct to a subclass
18410         of gimple_opt_pass along with...
18411         (pass_data_all_optimizations): ...new pass_data instance and...
18412         (make_pass_all_optimizations): ...new function.
18413         (pass_all_optimizations_g): Convert from a global struct to a subclass
18414         of gimple_opt_pass along with...
18415         (pass_data_all_optimizations_g): ...new pass_data instance and...
18416         (make_pass_all_optimizations_g): ...new function.
18417         (pass_rest_of_compilation): Convert from a global struct to a subclass
18418         of rtl_opt_pass along with...
18419         (pass_data_rest_of_compilation): ...new pass_data instance and...
18420         (make_pass_rest_of_compilation): ...new function.
18421         (pass_postreload): Convert from a global struct to a subclass of
18422         rtl_opt_pass along with...
18423         (pass_data_postreload): ...new pass_data instance and...
18424         (make_pass_postreload): ...new function.
18425         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
18426         subclass of rtl_opt_pass along with...
18427         (pass_data_gcse2): ...new pass_data instance and...
18428         (make_pass_gcse2): ...new function.
18429         * postreload.c (pass_postreload_cse): Convert from a global struct to
18430         a subclass of rtl_opt_pass along with...
18431         (pass_data_postreload_cse): ...new pass_data instance and...
18432         (make_pass_postreload_cse): ...new function.
18433         * predict.c (pass_profile): Convert from a global struct to a subclass
18434         of gimple_opt_pass along with...
18435         (pass_data_profile): ...new pass_data instance and...
18436         (make_pass_profile): ...new function.
18437         (pass_strip_predict_hints): Convert from a global struct to a subclass
18438         of gimple_opt_pass along with...
18439         (pass_data_strip_predict_hints): ...new pass_data instance and...
18440         (make_pass_strip_predict_hints): ...new function.
18441         * recog.c (pass_peephole2): Convert from a global struct to a subclass
18442         of rtl_opt_pass along with...
18443         (pass_data_peephole2): ...new pass_data instance and...
18444         (make_pass_peephole2): ...new function.
18445         (pass_split_all_insns): Convert from a global struct to a subclass of
18446         rtl_opt_pass along with...
18447         (pass_data_split_all_insns): ...new pass_data instance and...
18448         (make_pass_split_all_insns): ...new function.
18449         (pass_split_after_reload): Convert from a global struct to a subclass
18450         of rtl_opt_pass along with...
18451         (pass_data_split_after_reload): ...new pass_data instance and...
18452         (make_pass_split_after_reload): ...new function.
18453         (pass_split_before_regstack): Convert from a global struct to a
18454         subclass of rtl_opt_pass along with...
18455         (pass_data_split_before_regstack): ...new pass_data instance and...
18456         (make_pass_split_before_regstack): ...new function.
18457         (pass_split_before_sched2): Convert from a global struct to a subclass
18458         of rtl_opt_pass along with...
18459         (pass_data_split_before_sched2): ...new pass_data instance and...
18460         (make_pass_split_before_sched2): ...new function.
18461         (pass_split_for_shorten_branches): Convert from a global struct to a
18462         subclass of rtl_opt_pass along with...
18463         (pass_data_split_for_shorten_branches): ...new pass_data instance
18464         and...
18465         (make_pass_split_for_shorten_branches): ...new function.
18466         * ree.c (pass_ree): Convert from a global struct to a subclass of
18467         rtl_opt_pass along with...
18468         (pass_data_ree): ...new pass_data instance and...
18469         (make_pass_ree): ...new function.
18470         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
18471         subclass of rtl_opt_pass along with...
18472         (pass_data_stack_regs): ...new pass_data instance and...
18473         (make_pass_stack_regs): ...new function.
18474         (pass_stack_regs_run): Convert from a global struct to a subclass of
18475         rtl_opt_pass along with...
18476         (pass_data_stack_regs_run): ...new pass_data instance and...
18477         (make_pass_stack_regs_run): ...new function.
18478         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
18479         subclass of rtl_opt_pass along with...
18480         (pass_data_cprop_hardreg): ...new pass_data instance and...
18481         (make_pass_cprop_hardreg): ...new function.
18482         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
18483         subclass of rtl_opt_pass along with...
18484         (pass_data_reginfo_init): ...new pass_data instance and...
18485         (make_pass_reginfo_init): ...new function.
18486         * regmove.c (pass_regmove): Convert from a global struct to a subclass
18487         of rtl_opt_pass along with...
18488         (pass_data_regmove): ...new pass_data instance and...
18489         (make_pass_regmove): ...new function.
18490         * regrename.c (pass_regrename): Convert from a global struct to a
18491         subclass of rtl_opt_pass along with...
18492         (pass_data_regrename): ...new pass_data instance and...
18493         (make_pass_regrename): ...new function.
18494         * reorg.c (pass_delay_slots): Convert from a global struct to a
18495         subclass of rtl_opt_pass along with...
18496         (pass_data_delay_slots): ...new pass_data instance and...
18497         (make_pass_delay_slots): ...new function.
18498         (pass_machine_reorg): Convert from a global struct to a subclass of
18499         rtl_opt_pass along with...
18500         (pass_data_machine_reorg): ...new pass_data instance and...
18501         (make_pass_machine_reorg): ...new function.
18502         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
18503         of rtl_opt_pass along with...
18504         (pass_data_sched): ...new pass_data instance and...
18505         (make_pass_sched): ...new function.
18506         (pass_sched2): Convert from a global struct to a subclass of
18507         rtl_opt_pass along with...
18508         (pass_data_sched2): ...new pass_data instance and...
18509         (make_pass_sched2): ...new function.
18510         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
18511         to a subclass of rtl_opt_pass along with...
18512         (pass_data_stack_ptr_mod): ...new pass_data instance and...
18513         (make_pass_stack_ptr_mod): ...new function.
18514         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
18515         to a subclass of rtl_opt_pass along with...
18516         (pass_data_rtl_store_motion): ...new pass_data instance and...
18517         (make_pass_rtl_store_motion): ...new function.
18518         * tracer.c (pass_tracer): Convert from a global struct to a subclass
18519         of gimple_opt_pass along with...
18520         (pass_data_tracer): ...new pass_data instance and...
18521         (make_pass_tracer): ...new function.
18522         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
18523         to a subclass of gimple_opt_pass along with...
18524         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
18525         (make_pass_diagnose_tm_blocks): ...new function.
18526         (pass_lower_tm): Convert from a global struct to a subclass of
18527         gimple_opt_pass along with...
18528         (pass_data_lower_tm): ...new pass_data instance and...
18529         (make_pass_lower_tm): ...new function.
18530         (pass_tm_init): Convert from a global struct to a subclass of
18531         gimple_opt_pass along with...
18532         (pass_data_tm_init): ...new pass_data instance and...
18533         (make_pass_tm_init): ...new function.
18534         (pass_tm_mark): Convert from a global struct to a subclass of
18535         gimple_opt_pass along with...
18536         (pass_data_tm_mark): ...new pass_data instance and...
18537         (make_pass_tm_mark): ...new function.
18538         (pass_tm_edges): Convert from a global struct to a subclass of
18539         gimple_opt_pass along with...
18540         (pass_data_tm_edges): ...new pass_data instance and...
18541         (make_pass_tm_edges): ...new function.
18542         (pass_tm_memopt): Convert from a global struct to a subclass of
18543         gimple_opt_pass along with...
18544         (pass_data_tm_memopt): ...new pass_data instance and...
18545         (make_pass_tm_memopt): ...new function.
18546         (pass_ipa_tm): Convert from a global struct to a subclass of
18547         simple_ipa_opt_pass along with...
18548         (pass_data_ipa_tm): ...new pass_data instance and...
18549         (make_pass_ipa_tm): ...new function.
18550         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
18551         subclass of gimple_opt_pass along with...
18552         (pass_data_call_cdce): ...new pass_data instance and...
18553         (make_pass_call_cdce): ...new function.
18554         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
18555         subclass of gimple_opt_pass along with...
18556         (pass_data_build_cfg): ...new pass_data instance and...
18557         (make_pass_build_cfg): ...new function.
18558         (pass_split_crit_edges): Convert from a global struct to a subclass of
18559         gimple_opt_pass along with...
18560         (pass_data_split_crit_edges): ...new pass_data instance and...
18561         (make_pass_split_crit_edges): ...new function.
18562         (pass_warn_function_return): Convert from a global struct to a
18563         subclass of gimple_opt_pass along with...
18564         (pass_data_warn_function_return): ...new pass_data instance and...
18565         (make_pass_warn_function_return): ...new function.
18566         (pass_warn_function_noreturn): Convert from a global struct to a
18567         subclass of gimple_opt_pass along with...
18568         (pass_data_warn_function_noreturn): ...new pass_data instance and...
18569         (make_pass_warn_function_noreturn): ...new function.
18570         (pass_warn_unused_result): Convert from a global struct to a subclass
18571         of gimple_opt_pass along with...
18572         (pass_data_warn_unused_result): ...new pass_data instance and...
18573         (make_pass_warn_unused_result): ...new function.
18574         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
18575         a subclass of gimple_opt_pass along with...
18576         (pass_data_merge_phi): ...new pass_data instance and...
18577         (make_pass_merge_phi): ...new function.
18578         * tree-complex.c (pass_lower_complex): Convert from a global struct to
18579         a subclass of gimple_opt_pass along with...
18580         (pass_data_lower_complex): ...new pass_data instance and...
18581         (make_pass_lower_complex): ...new function.
18582         (pass_lower_complex_O0): Convert from a global struct to a subclass of
18583         gimple_opt_pass along with...
18584         (pass_data_lower_complex_O0): ...new pass_data instance and...
18585         (make_pass_lower_complex_O0): ...new function.
18586         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
18587         subclass of gimple_opt_pass along with...
18588         (pass_data_lower_eh): ...new pass_data instance and...
18589         (make_pass_lower_eh): ...new function.
18590         (pass_refactor_eh): Convert from a global struct to a subclass of
18591         gimple_opt_pass along with...
18592         (pass_data_refactor_eh): ...new pass_data instance and...
18593         (make_pass_refactor_eh): ...new function.
18594         (pass_lower_resx): Convert from a global struct to a subclass of
18595         gimple_opt_pass along with...
18596         (pass_data_lower_resx): ...new pass_data instance and...
18597         (make_pass_lower_resx): ...new function.
18598         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
18599         of gimple_opt_pass along with...
18600         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
18601         (make_pass_lower_eh_dispatch): ...new function.
18602         (pass_cleanup_eh): Convert from a global struct to a subclass of
18603         gimple_opt_pass along with...
18604         (pass_data_cleanup_eh): ...new pass_data instance and...
18605         (make_pass_cleanup_eh): ...new function.
18606         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
18607         to a subclass of simple_ipa_opt_pass along with...
18608         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
18609         (make_pass_ipa_lower_emutls): ...new function.
18610         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
18611         a subclass of gimple_opt_pass along with...
18612         (pass_data_if_conversion): ...new pass_data instance and...
18613         (make_pass_if_conversion): ...new function.
18614         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
18615         subclass of gimple_opt_pass along with...
18616         (pass_data_build_ssa): ...new pass_data instance and...
18617         (make_pass_build_ssa): ...new function.
18618         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
18619         global struct to a subclass of gimple_opt_pass along with...
18620         (pass_data_loop_distribution): ...new pass_data instance and...
18621         (make_pass_loop_distribution): ...new function.
18622         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
18623         subclass of gimple_opt_pass along with...
18624         (pass_data_mudflap_1): ...new pass_data instance and...
18625         (make_pass_mudflap_1): ...new function.
18626         (pass_mudflap_2): Convert from a global struct to a subclass of
18627         gimple_opt_pass along with...
18628         (pass_data_mudflap_2): ...new pass_data instance and...
18629         (make_pass_mudflap_2): ...new function.
18630         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
18631         subclass of gimple_opt_pass along with...
18632         (pass_data_mudflap_1): ...new pass_data instance and...
18633         (make_pass_mudflap_1): ...new function.
18634         (pass_mudflap_2): Convert from a global struct to a subclass of
18635         gimple_opt_pass along with...
18636         (pass_data_mudflap_2): ...new pass_data instance and...
18637         (make_pass_mudflap_2): ...new function.
18638         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
18639         gimple_opt_pass along with...
18640         (pass_data_nrv): ...new pass_data instance and...
18641         (make_pass_nrv): ...new function.
18642         (pass_return_slot): Convert from a global struct to a subclass of
18643         gimple_opt_pass along with...
18644         (pass_data_return_slot): ...new pass_data instance and...
18645         (make_pass_return_slot): ...new function.
18646         * tree-object-size.c (pass_object_sizes): Convert from a global struct
18647         to a subclass of gimple_opt_pass along with...
18648         (pass_data_object_sizes): ...new pass_data instance and...
18649         (make_pass_object_sizes): ...new function.
18650         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
18651         global struct to a subclass of gimple_opt_pass along with...
18652         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
18653         and...
18654         (make_pass_cleanup_cfg_post_optimizing): ...new function.
18655         (pass_fixup_cfg): Convert from a global struct to a subclass of
18656         gimple_opt_pass along with...
18657         (pass_data_fixup_cfg): ...new pass_data instance and...
18658         (make_pass_fixup_cfg): ...new function.
18659         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
18660         (make_pass_mudflap_1): ...new function.
18661         (pass_mudflap_2): Replace declaration with that of...
18662         (make_pass_mudflap_2): ...new function.
18663         (pass_asan): Replace declaration with that of...
18664         (make_pass_asan): ...new function.
18665         (pass_asan_O0): Replace declaration with that of...
18666         (make_pass_asan_O0): ...new function.
18667         (pass_tsan): Replace declaration with that of...
18668         (make_pass_tsan): ...new function.
18669         (pass_tsan_O0): Replace declaration with that of...
18670         (make_pass_tsan_O0): ...new function.
18671         (pass_lower_cf): Replace declaration with that of...
18672         (make_pass_lower_cf): ...new function.
18673         (pass_refactor_eh): Replace declaration with that of...
18674         (make_pass_refactor_eh): ...new function.
18675         (pass_lower_eh): Replace declaration with that of...
18676         (make_pass_lower_eh): ...new function.
18677         (pass_lower_eh_dispatch): Replace declaration with that of...
18678         (make_pass_lower_eh_dispatch): ...new function.
18679         (pass_lower_resx): Replace declaration with that of...
18680         (make_pass_lower_resx): ...new function.
18681         (pass_build_cfg): Replace declaration with that of...
18682         (make_pass_build_cfg): ...new function.
18683         (pass_early_tree_profile): Replace declaration with that of...
18684         (make_pass_early_tree_profile): ...new function.
18685         (pass_cleanup_eh): Replace declaration with that of...
18686         (make_pass_cleanup_eh): ...new function.
18687         (pass_sra): Replace declaration with that of...
18688         (make_pass_sra): ...new function.
18689         (pass_sra_early): Replace declaration with that of...
18690         (make_pass_sra_early): ...new function.
18691         (pass_early_ipa_sra): Replace declaration with that of...
18692         (make_pass_early_ipa_sra): ...new function.
18693         (pass_tail_recursion): Replace declaration with that of...
18694         (make_pass_tail_recursion): ...new function.
18695         (pass_tail_calls): Replace declaration with that of...
18696         (make_pass_tail_calls): ...new function.
18697         (pass_tree_loop): Replace declaration with that of...
18698         (make_pass_tree_loop): ...new function.
18699         (pass_tree_loop_init): Replace declaration with that of...
18700         (make_pass_tree_loop_init): ...new function.
18701         (pass_lim): Replace declaration with that of...
18702         (make_pass_lim): ...new function.
18703         (pass_tree_unswitch): Replace declaration with that of...
18704         (make_pass_tree_unswitch): ...new function.
18705         (pass_predcom): Replace declaration with that of...
18706         (make_pass_predcom): ...new function.
18707         (pass_iv_canon): Replace declaration with that of...
18708         (make_pass_iv_canon): ...new function.
18709         (pass_scev_cprop): Replace declaration with that of...
18710         (make_pass_scev_cprop): ...new function.
18711         (pass_empty_loop): Replace declaration with that of...
18712         (make_pass_empty_loop): ...new function.
18713         (pass_record_bounds): Replace declaration with that of...
18714         (make_pass_record_bounds): ...new function.
18715         (pass_graphite): Replace declaration with that of...
18716         (make_pass_graphite): ...new function.
18717         (pass_graphite_transforms): Replace declaration with that of...
18718         (make_pass_graphite_transforms): ...new function.
18719         (pass_if_conversion): Replace declaration with that of...
18720         (make_pass_if_conversion): ...new function.
18721         (pass_loop_distribution): Replace declaration with that of...
18722         (make_pass_loop_distribution): ...new function.
18723         (pass_vectorize): Replace declaration with that of...
18724         (make_pass_vectorize): ...new function.
18725         (pass_slp_vectorize): Replace declaration with that of...
18726         (make_pass_slp_vectorize): ...new function.
18727         (pass_complete_unroll): Replace declaration with that of...
18728         (make_pass_complete_unroll): ...new function.
18729         (pass_complete_unrolli): Replace declaration with that of...
18730         (make_pass_complete_unrolli): ...new function.
18731         (pass_parallelize_loops): Replace declaration with that of...
18732         (make_pass_parallelize_loops): ...new function.
18733         (pass_loop_prefetch): Replace declaration with that of...
18734         (make_pass_loop_prefetch): ...new function.
18735         (pass_iv_optimize): Replace declaration with that of...
18736         (make_pass_iv_optimize): ...new function.
18737         (pass_tree_loop_done): Replace declaration with that of...
18738         (make_pass_tree_loop_done): ...new function.
18739         (pass_ch): Replace declaration with that of...
18740         (make_pass_ch): ...new function.
18741         (pass_ccp): Replace declaration with that of...
18742         (make_pass_ccp): ...new function.
18743         (pass_phi_only_cprop): Replace declaration with that of...
18744         (make_pass_phi_only_cprop): ...new function.
18745         (pass_build_ssa): Replace declaration with that of...
18746         (make_pass_build_ssa): ...new function.
18747         (pass_build_alias): Replace declaration with that of...
18748         (make_pass_build_alias): ...new function.
18749         (pass_build_ealias): Replace declaration with that of...
18750         (make_pass_build_ealias): ...new function.
18751         (pass_dominator): Replace declaration with that of...
18752         (make_pass_dominator): ...new function.
18753         (pass_dce): Replace declaration with that of...
18754         (make_pass_dce): ...new function.
18755         (pass_dce_loop): Replace declaration with that of...
18756         (make_pass_dce_loop): ...new function.
18757         (pass_cd_dce): Replace declaration with that of...
18758         (make_pass_cd_dce): ...new function.
18759         (pass_call_cdce): Replace declaration with that of...
18760         (make_pass_call_cdce): ...new function.
18761         (pass_merge_phi): Replace declaration with that of...
18762         (make_pass_merge_phi): ...new function.
18763         (pass_split_crit_edges): Replace declaration with that of...
18764         (make_pass_split_crit_edges): ...new function.
18765         (pass_pre): Replace declaration with that of...
18766         (make_pass_pre): ...new function.
18767         (pass_profile): Replace declaration with that of...
18768         (make_pass_profile): ...new function.
18769         (pass_strip_predict_hints): Replace declaration with that of...
18770         (make_pass_strip_predict_hints): ...new function.
18771         (pass_lower_complex_O0): Replace declaration with that of...
18772         (make_pass_lower_complex_O0): ...new function.
18773         (pass_lower_complex): Replace declaration with that of...
18774         (make_pass_lower_complex): ...new function.
18775         (pass_lower_vector): Replace declaration with that of...
18776         (make_pass_lower_vector): ...new function.
18777         (pass_lower_vector_ssa): Replace declaration with that of...
18778         (make_pass_lower_vector_ssa): ...new function.
18779         (pass_lower_omp): Replace declaration with that of...
18780         (make_pass_lower_omp): ...new function.
18781         (pass_diagnose_omp_blocks): Replace declaration with that of...
18782         (make_pass_diagnose_omp_blocks): ...new function.
18783         (pass_expand_omp): Replace declaration with that of...
18784         (make_pass_expand_omp): ...new function.
18785         (pass_expand_omp_ssa): Replace declaration with that of...
18786         (make_pass_expand_omp_ssa): ...new function.
18787         (pass_object_sizes): Replace declaration with that of...
18788         (make_pass_object_sizes): ...new function.
18789         (pass_strlen): Replace declaration with that of...
18790         (make_pass_strlen): ...new function.
18791         (pass_fold_builtins): Replace declaration with that of...
18792         (make_pass_fold_builtins): ...new function.
18793         (pass_stdarg): Replace declaration with that of...
18794         (make_pass_stdarg): ...new function.
18795         (pass_early_warn_uninitialized): Replace declaration with that of...
18796         (make_pass_early_warn_uninitialized): ...new function.
18797         (pass_late_warn_uninitialized): Replace declaration with that of...
18798         (make_pass_late_warn_uninitialized): ...new function.
18799         (pass_cse_reciprocals): Replace declaration with that of...
18800         (make_pass_cse_reciprocals): ...new function.
18801         (pass_cse_sincos): Replace declaration with that of...
18802         (make_pass_cse_sincos): ...new function.
18803         (pass_optimize_bswap): Replace declaration with that of...
18804         (make_pass_optimize_bswap): ...new function.
18805         (pass_optimize_widening_mul): Replace declaration with that of...
18806         (make_pass_optimize_widening_mul): ...new function.
18807         (pass_warn_function_return): Replace declaration with that of...
18808         (make_pass_warn_function_return): ...new function.
18809         (pass_warn_function_noreturn): Replace declaration with that of...
18810         (make_pass_warn_function_noreturn): ...new function.
18811         (pass_cselim): Replace declaration with that of...
18812         (make_pass_cselim): ...new function.
18813         (pass_phiopt): Replace declaration with that of...
18814         (make_pass_phiopt): ...new function.
18815         (pass_forwprop): Replace declaration with that of...
18816         (make_pass_forwprop): ...new function.
18817         (pass_phiprop): Replace declaration with that of...
18818         (make_pass_phiprop): ...new function.
18819         (pass_tree_ifcombine): Replace declaration with that of...
18820         (make_pass_tree_ifcombine): ...new function.
18821         (pass_dse): Replace declaration with that of...
18822         (make_pass_dse): ...new function.
18823         (pass_nrv): Replace declaration with that of...
18824         (make_pass_nrv): ...new function.
18825         (pass_rename_ssa_copies): Replace declaration with that of...
18826         (make_pass_rename_ssa_copies): ...new function.
18827         (pass_sink_code): Replace declaration with that of...
18828         (make_pass_sink_code): ...new function.
18829         (pass_fre): Replace declaration with that of...
18830         (make_pass_fre): ...new function.
18831         (pass_check_data_deps): Replace declaration with that of...
18832         (make_pass_check_data_deps): ...new function.
18833         (pass_copy_prop): Replace declaration with that of...
18834         (make_pass_copy_prop): ...new function.
18835         (pass_vrp): Replace declaration with that of...
18836         (make_pass_vrp): ...new function.
18837         (pass_uncprop): Replace declaration with that of...
18838         (make_pass_uncprop): ...new function.
18839         (pass_return_slot): Replace declaration with that of...
18840         (make_pass_return_slot): ...new function.
18841         (pass_reassoc): Replace declaration with that of...
18842         (make_pass_reassoc): ...new function.
18843         (pass_rebuild_cgraph_edges): Replace declaration with that of...
18844         (make_pass_rebuild_cgraph_edges): ...new function.
18845         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
18846         (make_pass_remove_cgraph_callee_edges): ...new function.
18847         (pass_build_cgraph_edges): Replace declaration with that of...
18848         (make_pass_build_cgraph_edges): ...new function.
18849         (pass_local_pure_const): Replace declaration with that of...
18850         (make_pass_local_pure_const): ...new function.
18851         (pass_tracer): Replace declaration with that of...
18852         (make_pass_tracer): ...new function.
18853         (pass_warn_unused_result): Replace declaration with that of...
18854         (make_pass_warn_unused_result): ...new function.
18855         (pass_diagnose_tm_blocks): Replace declaration with that of...
18856         (make_pass_diagnose_tm_blocks): ...new function.
18857         (pass_lower_tm): Replace declaration with that of...
18858         (make_pass_lower_tm): ...new function.
18859         (pass_tm_init): Replace declaration with that of...
18860         (make_pass_tm_init): ...new function.
18861         (pass_tm_mark): Replace declaration with that of...
18862         (make_pass_tm_mark): ...new function.
18863         (pass_tm_memopt): Replace declaration with that of...
18864         (make_pass_tm_memopt): ...new function.
18865         (pass_tm_edges): Replace declaration with that of...
18866         (make_pass_tm_edges): ...new function.
18867         (pass_split_functions): Replace declaration with that of...
18868         (make_pass_split_functions): ...new function.
18869         (pass_feedback_split_functions): Replace declaration with that of...
18870         (make_pass_feedback_split_functions): ...new function.
18871         (pass_strength_reduction): Replace declaration with that of...
18872         (make_pass_strength_reduction): ...new function.
18873         (pass_ipa_lower_emutls): Replace declaration with that of...
18874         (make_pass_ipa_lower_emutls): ...new function.
18875         (pass_ipa_function_and_variable_visibility): Replace declaration with
18876         that of...
18877         (make_pass_ipa_function_and_variable_visibility): ...new function.
18878         (pass_ipa_tree_profile): Replace declaration with that of...
18879         (make_pass_ipa_tree_profile): ...new function.
18880         (pass_early_local_passes): Replace declaration with that of...
18881         (make_pass_early_local_passes): ...new function.
18882         (pass_ipa_whole_program_visibility): Replace declaration with that
18883         of...
18884         (make_pass_ipa_whole_program_visibility): ...new function.
18885         (pass_ipa_lto_gimple_out): Replace declaration with that of...
18886         (make_pass_ipa_lto_gimple_out): ...new function.
18887         (pass_ipa_increase_alignment): Replace declaration with that of...
18888         (make_pass_ipa_increase_alignment): ...new function.
18889         (pass_ipa_inline): Replace declaration with that of...
18890         (make_pass_ipa_inline): ...new function.
18891         (pass_ipa_free_lang_data): Replace declaration with that of...
18892         (make_pass_ipa_free_lang_data): ...new function.
18893         (pass_ipa_free_inline_summary): Replace declaration with that of...
18894         (make_pass_ipa_free_inline_summary): ...new function.
18895         (pass_ipa_cp): Replace declaration with that of...
18896         (make_pass_ipa_cp): ...new function.
18897         (pass_ipa_reference): Replace declaration with that of...
18898         (make_pass_ipa_reference): ...new function.
18899         (pass_ipa_pure_const): Replace declaration with that of...
18900         (make_pass_ipa_pure_const): ...new function.
18901         (pass_ipa_pta): Replace declaration with that of...
18902         (make_pass_ipa_pta): ...new function.
18903         (pass_ipa_lto_finish_out): Replace declaration with that of...
18904         (make_pass_ipa_lto_finish_out): ...new function.
18905         (pass_ipa_tm): Replace declaration with that of...
18906         (make_pass_ipa_tm): ...new function.
18907         (pass_ipa_profile): Replace declaration with that of...
18908         (make_pass_ipa_profile): ...new function.
18909         (pass_ipa_cdtor_merge): Replace declaration with that of...
18910         (make_pass_ipa_cdtor_merge): ...new function.
18911         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
18912         of...
18913         (make_pass_cleanup_cfg_post_optimizing): ...new function.
18914         (pass_init_datastructures): Replace declaration with that of...
18915         (make_pass_init_datastructures): ...new function.
18916         (pass_fixup_cfg): Replace declaration with that of...
18917         (make_pass_fixup_cfg): ...new function.
18918         (pass_expand): Replace declaration with that of...
18919         (make_pass_expand): ...new function.
18920         (pass_instantiate_virtual_regs): Replace declaration with that of...
18921         (make_pass_instantiate_virtual_regs): ...new function.
18922         (pass_rtl_fwprop): Replace declaration with that of...
18923         (make_pass_rtl_fwprop): ...new function.
18924         (pass_rtl_fwprop_addr): Replace declaration with that of...
18925         (make_pass_rtl_fwprop_addr): ...new function.
18926         (pass_jump): Replace declaration with that of...
18927         (make_pass_jump): ...new function.
18928         (pass_jump2): Replace declaration with that of...
18929         (make_pass_jump2): ...new function.
18930         (pass_lower_subreg): Replace declaration with that of...
18931         (make_pass_lower_subreg): ...new function.
18932         (pass_cse): Replace declaration with that of...
18933         (make_pass_cse): ...new function.
18934         (pass_fast_rtl_dce): Replace declaration with that of...
18935         (make_pass_fast_rtl_dce): ...new function.
18936         (pass_ud_rtl_dce): Replace declaration with that of...
18937         (make_pass_ud_rtl_dce): ...new function.
18938         (pass_rtl_dce): Replace declaration with that of...
18939         (make_pass_rtl_dce): ...new function.
18940         (pass_rtl_dse1): Replace declaration with that of...
18941         (make_pass_rtl_dse1): ...new function.
18942         (pass_rtl_dse2): Replace declaration with that of...
18943         (make_pass_rtl_dse2): ...new function.
18944         (pass_rtl_dse3): Replace declaration with that of...
18945         (make_pass_rtl_dse3): ...new function.
18946         (pass_rtl_cprop): Replace declaration with that of...
18947         (make_pass_rtl_cprop): ...new function.
18948         (pass_rtl_pre): Replace declaration with that of...
18949         (make_pass_rtl_pre): ...new function.
18950         (pass_rtl_hoist): Replace declaration with that of...
18951         (make_pass_rtl_hoist): ...new function.
18952         (pass_rtl_store_motion): Replace declaration with that of...
18953         (make_pass_rtl_store_motion): ...new function.
18954         (pass_cse_after_global_opts): Replace declaration with that of...
18955         (make_pass_cse_after_global_opts): ...new function.
18956         (pass_rtl_ifcvt): Replace declaration with that of...
18957         (make_pass_rtl_ifcvt): ...new function.
18958         (pass_into_cfg_layout_mode): Replace declaration with that of...
18959         (make_pass_into_cfg_layout_mode): ...new function.
18960         (pass_outof_cfg_layout_mode): Replace declaration with that of...
18961         (make_pass_outof_cfg_layout_mode): ...new function.
18962         (pass_loop2): Replace declaration with that of...
18963         (make_pass_loop2): ...new function.
18964         (pass_rtl_loop_init): Replace declaration with that of...
18965         (make_pass_rtl_loop_init): ...new function.
18966         (pass_rtl_move_loop_invariants): Replace declaration with that of...
18967         (make_pass_rtl_move_loop_invariants): ...new function.
18968         (pass_rtl_unswitch): Replace declaration with that of...
18969         (make_pass_rtl_unswitch): ...new function.
18970         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
18971         (make_pass_rtl_unroll_and_peel_loops): ...new function.
18972         (pass_rtl_doloop): Replace declaration with that of...
18973         (make_pass_rtl_doloop): ...new function.
18974         (pass_rtl_loop_done): Replace declaration with that of...
18975         (make_pass_rtl_loop_done): ...new function.
18976         (pass_web): Replace declaration with that of...
18977         (make_pass_web): ...new function.
18978         (pass_cse2): Replace declaration with that of...
18979         (make_pass_cse2): ...new function.
18980         (pass_df_initialize_opt): Replace declaration with that of...
18981         (make_pass_df_initialize_opt): ...new function.
18982         (pass_df_initialize_no_opt): Replace declaration with that of...
18983         (make_pass_df_initialize_no_opt): ...new function.
18984         (pass_reginfo_init): Replace declaration with that of...
18985         (make_pass_reginfo_init): ...new function.
18986         (pass_inc_dec): Replace declaration with that of...
18987         (make_pass_inc_dec): ...new function.
18988         (pass_stack_ptr_mod): Replace declaration with that of...
18989         (make_pass_stack_ptr_mod): ...new function.
18990         (pass_initialize_regs): Replace declaration with that of...
18991         (make_pass_initialize_regs): ...new function.
18992         (pass_combine): Replace declaration with that of...
18993         (make_pass_combine): ...new function.
18994         (pass_if_after_combine): Replace declaration with that of...
18995         (make_pass_if_after_combine): ...new function.
18996         (pass_ree): Replace declaration with that of...
18997         (make_pass_ree): ...new function.
18998         (pass_partition_blocks): Replace declaration with that of...
18999         (make_pass_partition_blocks): ...new function.
19000         (pass_match_asm_constraints): Replace declaration with that of...
19001         (make_pass_match_asm_constraints): ...new function.
19002         (pass_regmove): Replace declaration with that of...
19003         (make_pass_regmove): ...new function.
19004         (pass_split_all_insns): Replace declaration with that of...
19005         (make_pass_split_all_insns): ...new function.
19006         (pass_fast_rtl_byte_dce): Replace declaration with that of...
19007         (make_pass_fast_rtl_byte_dce): ...new function.
19008         (pass_lower_subreg2): Replace declaration with that of...
19009         (make_pass_lower_subreg2): ...new function.
19010         (pass_mode_switching): Replace declaration with that of...
19011         (make_pass_mode_switching): ...new function.
19012         (pass_sms): Replace declaration with that of...
19013         (make_pass_sms): ...new function.
19014         (pass_sched): Replace declaration with that of...
19015         (make_pass_sched): ...new function.
19016         (pass_ira): Replace declaration with that of...
19017         (make_pass_ira): ...new function.
19018         (pass_reload): Replace declaration with that of...
19019         (make_pass_reload): ...new function.
19020         (pass_clean_state): Replace declaration with that of...
19021         (make_pass_clean_state): ...new function.
19022         (pass_branch_prob): Replace declaration with that of...
19023         (make_pass_branch_prob): ...new function.
19024         (pass_value_profile_transformations): Replace declaration with that
19025         of...
19026         (make_pass_value_profile_transformations): ...new function.
19027         (pass_postreload_cse): Replace declaration with that of...
19028         (make_pass_postreload_cse): ...new function.
19029         (pass_gcse2): Replace declaration with that of...
19030         (make_pass_gcse2): ...new function.
19031         (pass_split_after_reload): Replace declaration with that of...
19032         (make_pass_split_after_reload): ...new function.
19033         (pass_branch_target_load_optimize1): Replace declaration with that
19034         of...
19035         (make_pass_branch_target_load_optimize1): ...new function.
19036         (pass_thread_prologue_and_epilogue): Replace declaration with that
19037         of...
19038         (make_pass_thread_prologue_and_epilogue): ...new function.
19039         (pass_stack_adjustments): Replace declaration with that of...
19040         (make_pass_stack_adjustments): ...new function.
19041         (pass_peephole2): Replace declaration with that of...
19042         (make_pass_peephole2): ...new function.
19043         (pass_if_after_reload): Replace declaration with that of...
19044         (make_pass_if_after_reload): ...new function.
19045         (pass_regrename): Replace declaration with that of...
19046         (make_pass_regrename): ...new function.
19047         (pass_cprop_hardreg): Replace declaration with that of...
19048         (make_pass_cprop_hardreg): ...new function.
19049         (pass_reorder_blocks): Replace declaration with that of...
19050         (make_pass_reorder_blocks): ...new function.
19051         (pass_branch_target_load_optimize2): Replace declaration with that
19052         of...
19053         (make_pass_branch_target_load_optimize2): ...new function.
19054         (pass_leaf_regs): Replace declaration with that of...
19055         (make_pass_leaf_regs): ...new function.
19056         (pass_split_before_sched2): Replace declaration with that of...
19057         (make_pass_split_before_sched2): ...new function.
19058         (pass_compare_elim_after_reload): Replace declaration with that of...
19059         (make_pass_compare_elim_after_reload): ...new function.
19060         (pass_sched2): Replace declaration with that of...
19061         (make_pass_sched2): ...new function.
19062         (pass_stack_regs): Replace declaration with that of...
19063         (make_pass_stack_regs): ...new function.
19064         (pass_stack_regs_run): Replace declaration with that of...
19065         (make_pass_stack_regs_run): ...new function.
19066         (pass_df_finish): Replace declaration with that of...
19067         (make_pass_df_finish): ...new function.
19068         (pass_compute_alignments): Replace declaration with that of...
19069         (make_pass_compute_alignments): ...new function.
19070         (pass_duplicate_computed_gotos): Replace declaration with that of...
19071         (make_pass_duplicate_computed_gotos): ...new function.
19072         (pass_variable_tracking): Replace declaration with that of...
19073         (make_pass_variable_tracking): ...new function.
19074         (pass_free_cfg): Replace declaration with that of...
19075         (make_pass_free_cfg): ...new function.
19076         (pass_machine_reorg): Replace declaration with that of...
19077         (make_pass_machine_reorg): ...new function.
19078         (pass_cleanup_barriers): Replace declaration with that of...
19079         (make_pass_cleanup_barriers): ...new function.
19080         (pass_delay_slots): Replace declaration with that of...
19081         (make_pass_delay_slots): ...new function.
19082         (pass_split_for_shorten_branches): Replace declaration with that of...
19083         (make_pass_split_for_shorten_branches): ...new function.
19084         (pass_split_before_regstack): Replace declaration with that of...
19085         (make_pass_split_before_regstack): ...new function.
19086         (pass_convert_to_eh_region_ranges): Replace declaration with that
19087         of...
19088         (make_pass_convert_to_eh_region_ranges): ...new function.
19089         (pass_shorten_branches): Replace declaration with that of...
19090         (make_pass_shorten_branches): ...new function.
19091         (pass_set_nothrow_function_flags): Replace declaration with that of...
19092         (make_pass_set_nothrow_function_flags): ...new function.
19093         (pass_dwarf2_frame): Replace declaration with that of...
19094         (make_pass_dwarf2_frame): ...new function.
19095         (pass_final): Replace declaration with that of...
19096         (make_pass_final): ...new function.
19097         (pass_rtl_seqabstr): Replace declaration with that of...
19098         (make_pass_rtl_seqabstr): ...new function.
19099         (pass_release_ssa_names): Replace declaration with that of...
19100         (make_pass_release_ssa_names): ...new function.
19101         (pass_early_inline): Replace declaration with that of...
19102         (make_pass_early_inline): ...new function.
19103         (pass_inline_parameters): Replace declaration with that of...
19104         (make_pass_inline_parameters): ...new function.
19105         (pass_update_address_taken): Replace declaration with that of...
19106         (make_pass_update_address_taken): ...new function.
19107         (pass_convert_switch): Replace declaration with that of...
19108         (make_pass_convert_switch): ...new function.
19109         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
19110         to a subclass of simple_ipa_opt_pass along with...
19111         (pass_data_ipa_tree_profile): ...new pass_data instance and...
19112         (make_pass_ipa_tree_profile): ...new function.
19113         * tree-sra.c (pass_sra_early): Convert from a global struct to a
19114         subclass of gimple_opt_pass along with...
19115         (pass_data_sra_early): ...new pass_data instance and...
19116         (make_pass_sra_early): ...new function.
19117         (pass_sra): Convert from a global struct to a subclass of
19118         gimple_opt_pass along with...
19119         (pass_data_sra): ...new pass_data instance and...
19120         (make_pass_sra): ...new function.
19121         (pass_early_ipa_sra): Convert from a global struct to a subclass of
19122         gimple_opt_pass along with...
19123         (pass_data_early_ipa_sra): ...new pass_data instance and...
19124         (make_pass_early_ipa_sra): ...new function.
19125         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
19126         subclass of gimple_opt_pass along with...
19127         (pass_data_ccp): ...new pass_data instance and...
19128         (make_pass_ccp): ...new function.
19129         (pass_fold_builtins): Convert from a global struct to a subclass of
19130         gimple_opt_pass along with...
19131         (pass_data_fold_builtins): ...new pass_data instance and...
19132         (make_pass_fold_builtins): ...new function.
19133         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
19134         subclass of gimple_opt_pass along with...
19135         (pass_data_copy_prop): ...new pass_data instance and...
19136         (make_pass_copy_prop): ...new function.
19137         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
19138         global struct to a subclass of gimple_opt_pass along with...
19139         (pass_data_rename_ssa_copies): ...new pass_data instance and...
19140         (make_pass_rename_ssa_copies): ...new function.
19141         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
19142         subclass of gimple_opt_pass along with...
19143         (pass_data_dce): ...new pass_data instance and...
19144         (make_pass_dce): ...new function.
19145         (pass_dce_loop): Convert from a global struct to a subclass of
19146         gimple_opt_pass along with...
19147         (pass_data_dce_loop): ...new pass_data instance and...
19148         (make_pass_dce_loop): ...new function.
19149         (pass_cd_dce): Convert from a global struct to a subclass of
19150         gimple_opt_pass along with...
19151         (pass_data_cd_dce): ...new pass_data instance and...
19152         (make_pass_cd_dce): ...new function.
19153         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
19154         subclass of gimple_opt_pass along with...
19155         (pass_data_dominator): ...new pass_data instance and...
19156         (make_pass_dominator): ...new function.
19157         (pass_phi_only_cprop): Convert from a global struct to a subclass of
19158         gimple_opt_pass along with...
19159         (pass_data_phi_only_cprop): ...new pass_data instance and...
19160         (make_pass_phi_only_cprop): ...new function.
19161         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
19162         subclass of gimple_opt_pass along with...
19163         (pass_data_dse): ...new pass_data instance and...
19164         (make_pass_dse): ...new function.
19165         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
19166         a subclass of gimple_opt_pass along with...
19167         (pass_data_forwprop): ...new pass_data instance and...
19168         (make_pass_forwprop): ...new function.
19169         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
19170         struct to a subclass of gimple_opt_pass along with...
19171         (pass_data_tree_ifcombine): ...new pass_data instance and...
19172         (make_pass_tree_ifcombine): ...new function.
19173         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
19174         subclass of gimple_opt_pass along with...
19175         (pass_data_ch): ...new pass_data instance and...
19176         (make_pass_ch): ...new function.
19177         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
19178         subclass of gimple_opt_pass along with...
19179         (pass_data_tree_loop): ...new pass_data instance and...
19180         (make_pass_tree_loop): ...new function.
19181         (pass_tree_loop_init): Convert from a global struct to a subclass of
19182         gimple_opt_pass along with...
19183         (pass_data_tree_loop_init): ...new pass_data instance and...
19184         (make_pass_tree_loop_init): ...new function.
19185         (pass_lim): Convert from a global struct to a subclass of
19186         gimple_opt_pass along with...
19187         (pass_data_lim): ...new pass_data instance and...
19188         (make_pass_lim): ...new function.
19189         (pass_tree_unswitch): Convert from a global struct to a subclass of
19190         gimple_opt_pass along with...
19191         (pass_data_tree_unswitch): ...new pass_data instance and...
19192         (make_pass_tree_unswitch): ...new function.
19193         (pass_predcom): Convert from a global struct to a subclass of
19194         gimple_opt_pass along with...
19195         (pass_data_predcom): ...new pass_data instance and...
19196         (make_pass_predcom): ...new function.
19197         (pass_vectorize): Convert from a global struct to a subclass of
19198         gimple_opt_pass along with...
19199         (pass_data_vectorize): ...new pass_data instance and...
19200         (make_pass_vectorize): ...new function.
19201         (pass_graphite): Convert from a global struct to a subclass of
19202         gimple_opt_pass along with...
19203         (pass_data_graphite): ...new pass_data instance and...
19204         (make_pass_graphite): ...new function.
19205         (pass_graphite_transforms): Convert from a global struct to a subclass
19206         of gimple_opt_pass along with...
19207         (pass_data_graphite_transforms): ...new pass_data instance and...
19208         (make_pass_graphite_transforms): ...new function.
19209         (pass_check_data_deps): Convert from a global struct to a subclass of
19210         gimple_opt_pass along with...
19211         (pass_data_check_data_deps): ...new pass_data instance and...
19212         (make_pass_check_data_deps): ...new function.
19213         (pass_iv_canon): Convert from a global struct to a subclass of
19214         gimple_opt_pass along with...
19215         (pass_data_iv_canon): ...new pass_data instance and...
19216         (make_pass_iv_canon): ...new function.
19217         (pass_scev_cprop): Convert from a global struct to a subclass of
19218         gimple_opt_pass along with...
19219         (pass_data_scev_cprop): ...new pass_data instance and...
19220         (make_pass_scev_cprop): ...new function.
19221         (pass_record_bounds): Convert from a global struct to a subclass of
19222         gimple_opt_pass along with...
19223         (pass_data_record_bounds): ...new pass_data instance and...
19224         (make_pass_record_bounds): ...new function.
19225         (pass_complete_unroll): Convert from a global struct to a subclass of
19226         gimple_opt_pass along with...
19227         (pass_data_complete_unroll): ...new pass_data instance and...
19228         (make_pass_complete_unroll): ...new function.
19229         (pass_complete_unrolli): Convert from a global struct to a subclass of
19230         gimple_opt_pass along with...
19231         (pass_data_complete_unrolli): ...new pass_data instance and...
19232         (make_pass_complete_unrolli): ...new function.
19233         (pass_parallelize_loops): Convert from a global struct to a subclass
19234         of gimple_opt_pass along with...
19235         (pass_data_parallelize_loops): ...new pass_data instance and...
19236         (make_pass_parallelize_loops): ...new function.
19237         (pass_loop_prefetch): Convert from a global struct to a subclass of
19238         gimple_opt_pass along with...
19239         (pass_data_loop_prefetch): ...new pass_data instance and...
19240         (make_pass_loop_prefetch): ...new function.
19241         (pass_iv_optimize): Convert from a global struct to a subclass of
19242         gimple_opt_pass along with...
19243         (pass_data_iv_optimize): ...new pass_data instance and...
19244         (make_pass_iv_optimize): ...new function.
19245         (pass_tree_loop_done): Convert from a global struct to a subclass of
19246         gimple_opt_pass along with...
19247         (pass_data_tree_loop_done): ...new pass_data instance and...
19248         (make_pass_tree_loop_done): ...new function.
19249         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
19250         struct to a subclass of gimple_opt_pass along with...
19251         (pass_data_cse_reciprocals): ...new pass_data instance and...
19252         (make_pass_cse_reciprocals): ...new function.
19253         (pass_cse_sincos): Convert from a global struct to a subclass of
19254         gimple_opt_pass along with...
19255         (pass_data_cse_sincos): ...new pass_data instance and...
19256         (make_pass_cse_sincos): ...new function.
19257         (pass_optimize_bswap): Convert from a global struct to a subclass of
19258         gimple_opt_pass along with...
19259         (pass_data_optimize_bswap): ...new pass_data instance and...
19260         (make_pass_optimize_bswap): ...new function.
19261         (pass_optimize_widening_mul): Convert from a global struct to a
19262         subclass of gimple_opt_pass along with...
19263         (pass_data_optimize_widening_mul): ...new pass_data instance and...
19264         (make_pass_optimize_widening_mul): ...new function.
19265         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
19266         subclass of gimple_opt_pass along with...
19267         (pass_data_phiopt): ...new pass_data instance and...
19268         (make_pass_phiopt): ...new function.
19269         (pass_cselim): Convert from a global struct to a subclass of
19270         gimple_opt_pass along with...
19271         (pass_data_cselim): ...new pass_data instance and...
19272         (make_pass_cselim): ...new function.
19273         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
19274         subclass of gimple_opt_pass along with...
19275         (pass_data_phiprop): ...new pass_data instance and...
19276         (make_pass_phiprop): ...new function.
19277         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
19278         subclass of gimple_opt_pass along with...
19279         (pass_data_pre): ...new pass_data instance and...
19280         (make_pass_pre): ...new function.
19281         (pass_fre): Convert from a global struct to a subclass of
19282         gimple_opt_pass along with...
19283         (pass_data_fre): ...new pass_data instance and...
19284         (make_pass_fre): ...new function.
19285         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
19286         subclass of gimple_opt_pass along with...
19287         (pass_data_reassoc): ...new pass_data instance and...
19288         (make_pass_reassoc): ...new function.
19289         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
19290         subclass of gimple_opt_pass along with...
19291         (pass_data_sink_code): ...new pass_data instance and...
19292         (make_pass_sink_code): ...new function.
19293         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
19294         subclass of gimple_opt_pass along with...
19295         (pass_data_strlen): ...new pass_data instance and...
19296         (make_pass_strlen): ...new function.
19297         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
19298         struct to a subclass of gimple_opt_pass along with...
19299         (pass_data_build_alias): ...new pass_data instance and...
19300         (make_pass_build_alias): ...new function.
19301         (pass_build_ealias): Convert from a global struct to a subclass of
19302         gimple_opt_pass along with...
19303         (pass_data_build_ealias): ...new pass_data instance and...
19304         (make_pass_build_ealias): ...new function.
19305         (pass_ipa_pta): Convert from a global struct to a subclass of
19306         simple_ipa_opt_pass along with...
19307         (pass_data_ipa_pta): ...new pass_data instance and...
19308         (make_pass_ipa_pta): ...new function.
19309         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
19310         subclass of gimple_opt_pass along with...
19311         (pass_data_uncprop): ...new pass_data instance and...
19312         (make_pass_uncprop): ...new function.
19313         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
19314         global struct to a subclass of gimple_opt_pass along with...
19315         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
19316         (make_pass_late_warn_uninitialized): ...new function.
19317         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
19318         to a subclass of gimple_opt_pass along with...
19319         (pass_data_init_datastructures): ...new pass_data instance and...
19320         (make_pass_init_datastructures): ...new function.
19321         (pass_early_warn_uninitialized): Convert from a global struct to a
19322         subclass of gimple_opt_pass along with...
19323         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
19324         (make_pass_early_warn_uninitialized): ...new function.
19325         (pass_update_address_taken): Convert from a global struct to a
19326         subclass of gimple_opt_pass along with...
19327         (pass_data_update_address_taken): ...new pass_data instance and...
19328         (make_pass_update_address_taken): ...new function.
19329         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
19330         struct to a subclass of gimple_opt_pass along with...
19331         (pass_data_release_ssa_names): ...new pass_data instance and...
19332         (make_pass_release_ssa_names): ...new function.
19333         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
19334         subclass of gimple_opt_pass along with...
19335         (pass_data_stdarg): ...new pass_data instance and...
19336         (make_pass_stdarg): ...new function.
19337         * tree-switch-conversion.c (pass_convert_switch): Convert from a
19338         global struct to a subclass of gimple_opt_pass along with...
19339         (pass_data_convert_switch): ...new pass_data instance and...
19340         (make_pass_convert_switch): ...new function.
19341         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
19342         to a subclass of gimple_opt_pass along with...
19343         (pass_data_tail_recursion): ...new pass_data instance and...
19344         (make_pass_tail_recursion): ...new function.
19345         (pass_tail_calls): Convert from a global struct to a subclass of
19346         gimple_opt_pass along with...
19347         (pass_data_tail_calls): ...new pass_data instance and...
19348         (make_pass_tail_calls): ...new function.
19349         * tree-vect-generic.c (pass_lower_vector): Convert from a global
19350         struct to a subclass of gimple_opt_pass along with...
19351         (pass_data_lower_vector): ...new pass_data instance and...
19352         (make_pass_lower_vector): ...new function.
19353         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
19354         gimple_opt_pass along with...
19355         (pass_data_lower_vector_ssa): ...new pass_data instance and...
19356         (make_pass_lower_vector_ssa): ...new function.
19357         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
19358         to a subclass of gimple_opt_pass along with...
19359         (pass_data_slp_vectorize): ...new pass_data instance and...
19360         (make_pass_slp_vectorize): ...new function.
19361         (pass_ipa_increase_alignment): Convert from a global struct to a
19362         subclass of simple_ipa_opt_pass along with...
19363         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
19364         (make_pass_ipa_increase_alignment): ...new function.
19365         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
19366         gimple_opt_pass along with...
19367         (pass_data_vrp): ...new pass_data instance and...
19368         (make_pass_vrp): ...new function.
19369         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
19370         subclass of simple_ipa_opt_pass along with...
19371         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
19372         (make_pass_ipa_free_lang_data): ...new function.
19373         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
19374         gimple_opt_pass along with...
19375         (pass_data_tsan): ...new pass_data instance and...
19376         (make_pass_tsan): ...new function.
19377         (pass_tsan_O0): Convert from a global struct to a subclass of
19378         gimple_opt_pass along with...
19379         (pass_data_tsan_O0): ...new pass_data instance and...
19380         (make_pass_tsan_O0): ...new function.
19381         * var-tracking.c (pass_variable_tracking): Convert from a global
19382         struct to a subclass of rtl_opt_pass along with...
19383         (pass_data_variable_tracking): ...new pass_data instance and...
19384         (make_pass_variable_tracking): ...new function.
19385         * web.c (pass_web): Convert from a global struct to a subclass of
19386         rtl_opt_pass along with...
19387         (pass_data_web): ...new pass_data instance and...
19388         (make_pass_web): ...new function.
19389         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
19390         declaration with that of...
19391         (make_pass_mode_switch_use): ...new function.
19392         (pass_resolve_sw_modes): Replace declaration with that of...
19393         (make_pass_resolve_sw_modes): ...new function.
19394         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
19395         from a global struct to a subclass of rtl_opt_pass along with...
19396         (pass_data_mode_switch_use): ...new pass_data instance and...
19397         (make_pass_mode_switch_use): ...new function.
19398         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
19399         from a global struct to a subclass of rtl_opt_pass along with...
19400         (pass_data_resolve_sw_modes): ...new pass_data instance and...
19401         (make_pass_resolve_sw_modes): ...new function.
19402         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
19403         struct to a subclass of rtl_opt_pass along with...
19404         (pass_data_insert_vzeroupper): ...new pass_data instance and...
19405         (make_pass_insert_vzeroupper): ...new function.
19406         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
19407         global struct to a subclass of rtl_opt_pass along with...
19408         (pass_data_work_around_errata): ...new pass_data instance and...
19409         (make_pass_work_around_errata): ...new function.
19410         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
19411         struct to a subclass of rtl_opt_pass along with...
19412         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
19413         (make_pass_mips_machine_reorg2): ...new function.
19415 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19417         * passes.c (pass_manager::operator new): New.
19419 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19421         Handwritten part of conversion of passes to C++ classes.
19423         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
19424         (toplev.o): Add dep on PASS_MANAGER_H.
19425         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
19426         of early local pases to reflect this moving from a global to a
19427         member of gcc::pass_manager.
19428         (cgraph_add_new_function): Likewise.
19429         * lto-cgraph.c (lto_output_node): Update for conversion of
19430         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
19431         * passes.c (opt_pass::clone): New.
19432         (opt_pass::gate): New.
19433         (opt_pass::execute): New.
19434         (opt_pass::opt_pass): New.
19435         (pass_manager::execute_early_local_passes): New.
19436         (pass_manager::execute_pass_mode_switching): new.
19437         (finish_optimization_passes): Convert to...
19438         (pass_manager::finish_optimization_passes): ...this.
19439         (finish_optimization_passes): Update for conversion of passes to
19440         C++ classes.
19441         (register_dump_files_1): Use has_gate since we cannot portably
19442         check a vtable entry against NULL.
19443         (dump_one_pass): Likewise.
19444         (ipa_write_summaries_2): Likewise.
19445         (ipa_write_optimization_summaries_1): Likewise.
19446         (ipa_read_summaries_1): Likewise.
19447         (ipa_read_optimization_summaries_1): Likewise.
19448         (execute_ipa_stmt_fixups): Likewise.
19449         (pass_manager::pass_manager): Rewrite pass-creation, invoking
19450         pass-creation functions rather than wiring up globals, and
19451         storing the results in fields of pass_manager generated using
19452         pass-instances.def.
19453         (pass_manager::dump_profile_report): Update for conversion of
19454         passes to C++ classes.
19455         (pass_manager::execute_ipa_summary_passes): Likewise.
19456         (execute_one_ipa_transform_pass): Likewise.
19457         (execute_one_pass): Use has_gate and has_execute since we cannot
19458         portably check a vtable entry against NULL.
19459         * pass_manager.h (pass_manager::finish_optimization_passes): New.
19460         (pass_manager): Use pass-instances.def to add fields for the
19461         various pass instances.
19462         * toplev.c (finalize): Update for move of
19463         finish_optimization_passes to a method of gcc::pass_manager.
19464         * toplev.h (finish_optimization_passes): Move to method of class
19465         pass_manager.
19466         * tree-pass.h (struct pass_data): New.
19467         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
19468         (opt_pass::gate): Convert to virtual function.
19469         (opt_pass::~opt_pass): New.
19470         (opt_pass::clone): New.
19471         (opt_pass::execute): Convert to virtual function.
19472         (opt_pass::opt_pass): New.
19473         (opt_pass::ctxt_): new.
19474         (gimple_opt_pass): Convert to subclass of opt_pass.
19475         (gimple_opt_pass::gimple_opt_pass): New.
19476         (rtl_opt_pass): Convert to subclass of opt_pass.
19477         (rtl_opt_pass::rtl_opt_pass): New.
19478         (ipa_opt_pass_d): Convert to subclass of opt_pass.
19479         (ipa_opt_pass_d::ipa_opt_pass_d): New.
19480         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
19481         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
19482         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
19483         invocation of pass_mode_switching to reflect this moving from a
19484         global to a member of gcc::pass_manager.
19485         (ix86_option_override): Rework how pass_insert_vzeroupper is
19486         added to the pass_manager to reflect autogenerated changes.
19487         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
19489 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
19491         PR rtl-optimization/57708
19492         * recog.c (peep2_find_free_register): Validate all regs in a
19493         multi-reg mode.
19495 2013-08-05  Jan Hubicka  <jh@suse.cz>
19497         PR lto/57602
19498         * cgraph.c (verify_cgraph_node): Accept local flags from other
19499         partitions.
19500         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
19501         (function_and_variable_visibility): Likewise.
19502         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
19504 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19506         * graph.c (init_graph_slim_pretty_print): Remove.
19507         (print_graph_cfg): Do not call it.  Use local pretty printer.
19508         (start_graph_dump): Likewise.
19510 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19512         * gimple-pretty-print.c (buffer): Remove.
19513         (initialized): Likewise.
19514         (maybe_init_pretty_print): Likewise.
19515         (print_gimple_stmt): Do not call it.  Use non-static local
19516         pretty_printer variable.
19517         (print_gimple_expr): Likewise.
19518         (print_gimple_seq): Likewise.
19519         (gimple_dump_bb): Likewise.
19521 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19523         * asan.c (asan_pp): Remove.
19524         (asan_pp_initialized): Likewise.
19525         (asan_pp_initialize): Likewise.
19526         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
19527         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
19528         (asan_add_global): Likewise.
19530 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19532         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
19533         * diagnostic.h (diagnostic_flush_buffer): Adjust.
19534         * pretty-print.c (pp_formatted_text_data): Likewise.
19535         (pp_indent): Rename from pp_base_indent.
19536         (pp_format): Rename from pp_base_format.
19537         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
19538         (pp_format_verbatim): Rename from pp_base_format_verbatim.
19539         (pp_flush): Rename from pp_base_flush.
19540         (pp_set_line_maximum_length): Rename from
19541         pp_base_set_line_maximum_length.
19542         (pp_clear_output_area): Rename from pp_base_clear_output_area.
19543         (pp_set_prefix): Rename from pp_base_set_prefix.
19544         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
19545         (pp_emit_prefix): Rename from pp_base_emit_prefix.
19546         (pp_append_text): Rename from pp_base_append_text.
19547         (pp_formatted_text): Rename from pp_base_formatted_text.
19548         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
19549         (pp_remaining_character_count_for_line): Rename from
19550         pp_base_remaining_character_count_for_line.
19551         (pp_newline): Rename from pp_base_newline.
19552         (pp_character): Rename from pp_base_character.
19553         (pp_string): Rename from pp_base_string.
19554         (pp_maybe_space): Rename from pp_base_maybe_space.
19555         * asan.c (asan_pp_string): Adjust.
19556         (asan_emit_stack_protection): Likewise.
19557         (asan_add_global): Likewise.
19558         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
19559         * tree-mudflap.c (mf_varname_tree): Likewise.
19560         * tree-pretty-print.c (pp_tree_identifier): Rename from
19561         pp_base_tree_identifier.
19562         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
19563         Declare as function.
19565 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19567         * pretty-print.h (pp_bar_bar): New.
19568         (pp_ampersand_ampersand): Likewise.
19569         (pp_less_equal): Likewise.
19570         (pp_greater_equal): Likewise.
19571         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
19572         printer functions instead of pp_string or operators and punctuators.
19573         (dump_gimple_call): Likewise.
19574         (dump_gimple_omp_for): Likewise.
19575         (dump_gimple_transaction): Likewise.
19576         (dump_gimple_phi): Likewise.
19577         (pp_gimple_stmt_1): Likewise.
19578         * sched-vis.c (print_insn): Likewise.
19579         * tree-mudflap.c (mf_varname_tree): Likewise.
19580         * tree-pretty-print.c (dump_block_node): Likewise.
19581         (dump_generic_node): Likewise.
19583 2013-08-02  Jan Hubicka  <jh@suse.cz>
19585         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
19586         boundaries.
19587         * lto-streamer-out.c (tree_is_indexable): Results decls and
19588         parm decls are not indexable.
19589         (DFS_write_tree_body): Do not follow args and results.
19590         (hash_tree): Likewise.
19591         (output_functions): Rearrange so struct function is needed
19592         only when real body is output; be able to also ouptut abstract
19593         functions; output DECL_ARGUMENTS and DECL_RESULT.
19594         (lto_output): When not in WPA, ale store abstract functions.
19595         (write_symbol): Do not care about RESULT_DECL.
19596         (output_symbol_p): Handle correctly sbtract decls.
19597         * lto-streamer-in.c (input_function): Rearrange so struct
19598         function can be NULL at entry; allow streaming of
19599         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
19600         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
19601         sanity check during LTO.
19602         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
19603         RESULT_DECl and DECL_ARGUMENTS.
19604         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19605         Likewise.
19607 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19609         * pretty-print.h (pp_underscore): New.
19610         (pp_comma): Tidy.
19611         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
19612         printer functions instead of pp_character.
19613         (dump_binary_rhs): Likewise.
19614         (dump_ternary_rhs): Likewise.
19615         (dump_gimple_call_args): Likewise.
19616         (pp_points_to_solution): Likewise.
19617         (dump_gimple_call): Likewise.
19618         (dump_gimple_switch): Likewise.
19619         (dump_gimple_cond): Likewise.
19620         (dump_gimple_bind): Likewise.
19621         (dump_gimple_try): Likewise.
19622         (dump_gimple_omp_for): Likewise.
19623         (dump_gimple_omp_continue): Likewise.
19624         (dump_gimple_omp_single): Likewise.
19625         (dump_gimple_omp_sections): Likewise.
19626         (dump_gimple_omp_block): Likewise.
19627         (dump_gimple_omp_critical): Likewise.
19628         (dump_gimple_transaction): Likewise.
19629         (dump_gimple_asm): Likewise.
19630         (dump_gimple_phi): Likewise.
19631         (dump_gimple_omp_parallel): Likewise.
19632         (dump_gimple_omp_task): Likewise.
19633         (dump_gimple_omp_atomic_load): Likewise.
19634         (dump_gimple_omp_atomic_store): Likewise.
19635         (dump_gimple_mem_ops): Likewise.
19636         (pp_gimple_stmt_1): Likewise.
19637         (pp_cfg_jump): Likewise.
19638         (dump_implicit_edges): Likewise.
19639         (gimple_dump_bb_for_graph): Likewise.
19640         * graph.c (draw_cfg_node): Likewise.
19641         * langhooks.c (lhd_print_error_function): Likewise.
19642         * sched-vis.c (print_exp): Likewise.
19643         (print_value): Likewise.
19644         (print_pattern): Likewise.
19645         (print_insn): Likewise.
19646         (rtl_dump_bb_for_graph): Likewise.
19647         * tree-pretty-print.c (dump_function_declaration): Likewise.
19648         (dump_array_domain): Likewise.
19649         (dump_omp_clause): Likewise.
19650         (dump_location): Likewise.
19651         (dump_generic_node): Likewise.
19652         (print_struct_decl): Likewise.
19653         * diagnostic.c (diagnostic_show_locus): Use pp_space.
19655 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19657         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
19658         candidate table when replacing a candidate statement.
19659         (replace_rhs_if_not_dup): Likewise.
19660         (replace_one_candidate): Likewise.
19662 2013-08-02  Jan Hubicka  <jh@suse.cz>
19663             Martin Liska  <marxin.liska@gmail.com>
19665         * cgraphunit.c (add_new_function): Fix logic when adding from
19666         late IPA pass.
19667         (assemble_thunk): Rename to ...
19668         (expand_thunk); .. this one; export; get it working with
19669         general functions; make produced gimple valid.
19670         * cgraph.h (expand_thunk): Declare.
19672 2013-08-02  Jan Hubicka  <jh@suse.cz>
19674         * ipa-cp.c (gather_context_independent_values): Use
19675         ipa_get_param_move_cost.
19676         (get_replacement_map): Remove PARAM; move parameter folding
19677         into tree-inline.c
19678         (create_specialized_node): Update.
19679         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
19680         assert that we have gimple body; update move_cost.
19681         (count_formal_params): Assert that we have gimple body.
19682         (ipa_dump_param): New function.
19683         (ipa_alloc_node_params): Break out from ...
19684         (ipa_initialize_node_params): ... here.
19685         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
19686         (ipa_write_node_info): Stream move costs.
19687         (ipa_read_node_info): Read move costs.
19688         (ipa_update_after_lto_read): Do not recompute node params.
19689         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
19690         (ipa_get_param): Check we are not in WPA.
19691         (ipa_get_param_move_cost): New.
19692         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
19693         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
19694         parm numbers to be present.
19696 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
19698         PR rtl-optimization/58048
19699         * lra-constraints.c (process_alt_operands): Don't check asm
19700         operand on register.
19702 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
19704         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
19705         the implied StoreLoad barrier for atomic operations if before.
19707 2013-08-02  Jan Hubicka  <jh@suse.cz>
19708             Martin Liska  <marxin.liska@gmail.com>
19710         * cgraph.c (cgraph_function_body_availability): Do not check
19711         cgraph flags.
19712         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
19713         symtab_node_availability): Declare.
19714         * ipa.c (can_replace_by_local_alias): New.
19715         (function_and_variable_visibility): Use it.
19716         * symtab.c (symtab_for_node_and_aliases,
19717         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
19719 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
19721         PR rtl-optimization/57963
19722         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
19723         (lra_constraints): Use them.
19725 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
19727         * config/arm/types.md (define_attr "type"): Add "load_acq"
19728         and "store_rel".
19729         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
19730         changes.
19731         (cortex_a53_store1): Likewise.
19733 2013-08-01  Jan Hubicka  <jh@suse.cz>
19735         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
19736         partitions are not needed.
19738 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
19740         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
19741         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
19742         MAYBE_NON_Q_CLASS_P where appropriate.
19744 2013-08-01  Jan Hubicka  <jh@suse.cz>
19746         * cgraph.h (release_function_body): Declare.
19747         * tree.c (free_lang_data_in_decl): Free, parameters and return values
19748         of unused delcarations.
19750 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19752         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
19753         RTL form when subtracting a constant.
19755 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19757         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
19758         Generate canonical plus rtx with negated immediate instead of minus
19759         where appropriate.
19760         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
19762 2013-08-01  Jan Hubicka  <jh@suse.cz>
19764         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
19765         (cgraph_release_function_body): Likewise.
19766         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
19767         * cgraph.h (cgrpah_node): Rename abstract_and_needed
19768         to used_as_abstract_origin.
19769         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
19770         symbols used as abstract origins.
19771         * cgraphunit.c (analyze_functions): Update.
19772         * ipa.c (symtab_remove_unreachable_nodes): Recompute
19773         used_as_abstract_origin.
19774         * tree-inline.c (tree_function_versioning): Update
19775         used_as_abstract_origin; be ready for DECL_RESULT and
19776         DECL_ARGUMENTS to be NULL.
19778         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
19779         for abstract functions.
19780         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
19781         real symbols.
19783 2013-08-01  Jan Hubicka  <jh@suse.cz>
19785         * profile.c (compute_value_histograms): Fix thinko.
19787 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
19789         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
19790         aarch-common-protos.h to extra_headers.
19791         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19792         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
19793         * config/aarch64/t-aarch64 (aarch-common.o): Define.
19795 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
19797         * config/aarch64/aarch64.md (define_attr "type"): Delete.
19798         Include "../arm/types.md".  Define "type" attribute for all patterns.
19799         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
19800         attribute changes.
19802 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
19804         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
19805         to support power8 load fusion.
19806         (fusion_gpr_mem_load): Likewise.
19808         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
19810         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
19811         declarations for power8 load fusion.
19812         (emit_fusion_gpr_load): Likewise.
19814         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19815         tuning for power8, turn on fusion mode by default.  Turn on sign
19816         extending fusion mode if normal fusion mode is on, and we are at
19817         -O2 or -O3.
19818         (fusion_gpr_load_p): New function, return true if we can fuse an
19819         addis instruction with a dependent load to a GPR.
19820         (emit_fusion_gpr_load): Emit the instructions for power8 load
19821         fusion to GPRs.
19823         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
19824         (VSX load fusion peepholes): New peepholes to fuse together an
19825         addi instruction with a VSX load instruction.
19827         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
19828         peepholes to fuse an addis instruction with a load to a GPR base
19829         register.  If we are supporting sign extending fusions, convert
19830         sign extending loads to zero extending loads and add an explicit
19831         sign extension.
19833 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
19835         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
19836         aarch-common-protos.h to extra_headers.
19837         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19838         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
19839         (arm_early_store_addr_dep): Likewise.
19840         (arm_no_early_alu_shift_dep): Likewise.
19841         (arm_no_early_alu_shift_value_dep): Likewise.
19842         (arm_no_early_mul_dep): Likewise.
19843         (arm_no_early_store_addr_dep): Likewise.
19844         (arm_mac_accumulator_is_mul_result): Likewise.
19845         (arm_mac_accumulator_is_result): Likewise.
19846         * config/arm/aarch-common.c: ... here.  New file.
19847         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
19848         here to ...
19849         (arm_early_store_addr_dep): Likewise.
19850         (arm_no_early_alu_shift_dep): Likewise.
19851         (arm_no_early_alu_shift_value_dep): Likewise.
19852         (arm_no_early_mul_dep): Likewise.
19853         (arm_no_early_store_addr_dep): Likewise.
19854         (arm_mac_accumulator_is_mul_result): Likewise.
19855         (arm_mac_accumulator_is_result): Likewise.
19856         * config/arm/aarch-common-protos.h: ... here.  New file.
19857         * config/arm/t-arm (aarch-common.o): Define.
19859 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
19861         * config/arm/arm.md: Include new file "types.md".
19862         (define_attr "type"): Move from here to ...
19863         (define_attr "mul32"): Likewise.
19864         (define_attr "mul64"): Likewise.
19865         * config/arm/types.md: ... here.  New file.
19867 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
19869         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
19870         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
19872 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19874         * gen-pass-instances.awk: Fix offset of substr().
19876 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
19878         * Makefile.in (pass-instances.def): New.
19879         (passes.o): Replace dependency on passes.def with one on
19880         pass-instances.def
19882         * gen-pass-instances.awk: New.
19884         * passes.c (pass_manager::pass_manager): Use pass-instances.def
19885         rather than passes.def, updating local definition of NEXT_PASS
19886         macro to add an extra NUM parameter (currently unused).
19888 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
19890         * Makefile.in (PASS_MANAGER_H): New.
19891         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
19892         (passes.o): Likewise.
19893         (statistics.o): Likewise.
19894         (cgraphunit.o): Likewise.
19895         (context.o): Depend on PASS_MANAGER_H.
19897         * pass_manager.h: New.
19899         * cgraphunit.c (cgraph_add_new_function): Update for moves
19900         of globals to fields of pass_manager.
19901         (analyze_function): Likewise.
19902         (expand_function): Likewise.
19903         (ipa_passes): Likewise.
19904         (compile): Likewise.
19906         * context.c (context::context): New.
19907         * context.h  (context::context): New.
19908         (context::get_passes): New.
19909         (context::passes_): New.
19911         * lto-cgraph.c (input_node): Update for moves of globals to
19912         fields of pass_manager.
19914         * passes.c (all_passes): Remove, in favor of a field of the
19915         same name within the new class pass_manager.
19916         (all_small_ipa_passes): Likewise.
19917         (all_lowering_passes): Likewise.
19918         (all_regular_ipa_passes): Likewise.
19919         (all_late_ipa_passes): Likewise.
19920         (all_lto_gen_passes): Likewise.
19921         (passes_by_id): Likewise.
19922         (passes_by_id_size): Likewise.
19923         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19924         the new class pass_manager.
19925         (set_pass_for_id): Convert to...
19926         (pass_manager::set_pass_for_id): ...method.
19927         (get_pass_for_id): Convert to...
19928         (pass_manager::get_pass_for_id): ...method.
19929         (register_one_dump_file): Move body of implementation into...
19930         (pass_manager::register_one_dump_file): ...here.
19931         (register_dump_files_1): Convert to...
19932         (pass_manager::register_dump_files_1): ...method.
19933         (register_dump_files): Convert to...
19934         (pass_manager::register_dump_files): ...method.
19935         (create_pass_tab): Update for moves of globals to fields of
19936         pass_manager.
19937         (dump_passes): Move body of implementation into...
19938         (pass_manager::dump_passes): ...here.
19939         (register_pass): Move body of implementation into...
19940         (pass_manager::register_pass): ...here.
19941         (init_optimization_passes): Convert into...
19942         (pass_manager::pass_manager): ...constructor for new
19943         pass_manager class, and initialize the pass_lists array.
19944         (check_profile_consistency): Update for moves of globals to
19945         fields of pass_manager.
19946         (dump_profile_report): Move body of implementation into...
19947         (pass_manager::dump_profile_report): ...here.
19948         (ipa_write_summaries_1): Update for moves of pass lists from
19949         being globals to fields of pass_manager.
19950         (ipa_write_optimization_summaries): Likewise.
19951         (ipa_read_summaries):  Likewise.
19952         (ipa_read_optimization_summaries): Likewise.
19953         (execute_all_ipa_stmt_fixups): Likewise.
19955         * statistics.c (statistics_fini): Update for moves of globals to
19956         fields of pass_manager.
19958         * toplev.c (general_init): Replace call to
19959         init_optimization_passes with construction of the pass_manager
19960         instance.
19962         * tree-pass.h (all_passes): Remove, in favor of a field of the
19963         same name within the new class pass_manager.
19964         (all_small_ipa_passes): Likewise.
19965         (all_lowering_passes): Likewise.
19966         (all_regular_ipa_passes): Likewise.
19967         (all_lto_gen_passes): Likewise.
19968         (all_late_ipa_passes): Likewise.
19969         (passes_by_id): Likewise.
19970         (passes_by_id_size): Likewise.
19971         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19972         the new class pass_manager.
19973         (get_pass_for_id): Remove.
19975 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
19977         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
19978         configs.
19980 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
19982         * arm.md (mulhi3): New expand pattern.
19984 2013-07-30  Jan Hubicka  <jh@suse.cz>
19985             Martin Liska  <marxin.liska@gmail.com>
19987         * profile.c (compute_value_histograms): Do not ICE when
19988         there is mismatch only on some counters.
19990 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19992         PR rtl-optimization/57637
19993         * function.c (move_insn_for_shrink_wrap): Also check the
19994         GEN set of the LIVE problem for the liveness analysis
19995         if it exists, otherwise give up.
19997 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19999         PR tree-optimization/57993
20000         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
20001         replaced statement in the candidate table.
20002         (phi_add_costs): Return infinite cost when the hidden basis does
20003         not dominate all phis on which the candidate is dependent.
20004         (replace_one_candidate): Record replaced statement in the
20005         candidate table.
20007 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
20009         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
20010         (ashlv2si3): New expander.
20011         (*ashlv2si3_i): New define_insn_and_split.
20012         * predicates.md (float_operation): Allow patterns with three
20013         basic sub-patterns.
20015         PR rtl-optimization/58021
20016         * mode-switching.c (create_pre_exit): Always split off preceding
20017         insns if we are not at the basic block head.
20019 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
20021         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
20022         (UCLIBC_DYNAMIC_LINKER): New macro.
20023         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
20024         `-mnan=2008'.
20025         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
20026         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
20027         `-mnan=2008'.
20028         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
20029         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
20030         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
20031         for SF and DF modes.  Use ieee_quad_format for TF mode.
20032         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
20033         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
20034         (mips_option_override): Handle `-mnan=legacy'.
20035         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
20036         `-mabs=2008' and `-mnan=2008'.
20037         (OPTION_DEFAULT_SPECS): Add "nan" default.
20038         (ASM_SPEC): Handle `-mnan='.
20039         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
20040         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
20041         comment accordingly.
20042         (neg<mode>2): Likewise.
20043         * config/mips/mips.opt (mabs, mnan): New options.
20044         * doc/install.texi (Configuration): Document `--with-nan=' option.
20045         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
20046         `-mnan=' options.
20047         (MIPS Options): Document them.
20048         * config.gcc <mips*-*-*>: Handle `--with-nan='.
20049         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
20050         * configure: Regenerate.
20051         * config.in: Regenerate.
20053 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
20055         * config/i386/i386.md (float post-reload splitters): Do not check
20056         for subregs of SSE registers.
20058 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
20059             H.J. Lu  <hongjiu.lu@intel.com>
20061         PR target/57954
20062         PR target/57988
20063         * config/i386/i386.md (post-reload splitter
20064         to avoid partial SSE reg dependency stalls): New pattern.
20066 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20068         * config/s390/s390.md ("movcc"): Swap load and store instructions.
20070 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
20072         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
20073         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
20075 2013-07-26  Cary Coutant  <ccoutant@google.com>
20077         * dwarf2out.c (die_checksum_ordered): Don't include template
20078         instantiations in signature.
20079         (is_template_parameter): New function.
20080         (is_template_instantiation): New function.
20081         (generate_skeleton_bottom_up): Don't include template instantiations
20082         in type unit DIE.
20083         (generate_skeleton): Likewise.
20084         (break_out_comdat_types): Move recursive call to break out nested
20085         types earlier.
20086         (prune_unused_types_mark_generic_parms_dies): Call
20087         is_template_parameter.
20089 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
20091         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
20092         uses vector registers.
20093         * config/aarch64/iterators.md: Add attributes rtn and vas.
20095 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20096             Richard Earnshaw  <richard.earnshaw@arm.com>
20098         * combine.c (simplify_comparison): Re-canonicalize operands
20099         where appropriate.
20100         * config/arm/arm.md (movcond_addsi): New splitter.
20102 2013-07-25  Sterling Augustine  <saugustine@google.com>
20104         * dwarf2out.c (size_of_pubnames): Move code to...
20105         (include_pubname_in_output): ...here.  New.
20106         (want_pubnames): Rearrange.
20107         (output_pubnames): Call include_pubname_in_output.  Move assertion.
20109 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
20111         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
20113 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
20115         PR target/38836
20116         * doc/extend.texi: Remove obsolete builtins. Fix
20117         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
20119 2013-07-25  Jan Hubicka  <jh@suse.cz>
20121         * cgraph.c (release_function_body): Break out from ...
20122         (cgraph_release_function_body): ... this one; also release DECL_RESULT
20123         and DECL_ARGUMENTS.
20124         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
20125         old_tree in the map.
20126         (create_specialized_node): Update.
20127         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
20128         into index.
20129         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
20130         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
20131         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
20132         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
20133         DECL_RESULT.
20135 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20137         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
20138         addsi3_carryin_alt2_<optab>): Correct output template.
20140 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20142         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
20143         Adjust for arm_restrict_it.
20144         Remove trailing whitespace.
20146 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
20148         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
20149         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
20151         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
20153 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
20155         PR rtl-optimization/57960
20156         * lra-constraints.c (process_alt_operands): Use the right mode
20157         when checking strict_low.
20159 2013-07-25  Jan Hubicka  <jh@suse.cz>
20161         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
20162         * cgraph.c (cgraph_remove_node): Do not release function body
20163         when in cgraph streaming.
20164         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
20165         in other partitions are not considered reachable; fix handling of
20166         clones.
20168 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20170         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
20172 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20174         PR target/19599
20175         PR target/57731
20176         PR target/57837
20177         * config/arm/arm.md ("*sibcall_insn): Replace use of
20178         Ss with US. Adjust output for v5 and v4t.
20179         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
20181         * config/arm/constraints.md ("Ss"): Rename to US.
20183 2013-07-25  Terry Guo  <terry.guo@arm.com>
20185         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
20186         shift_add/shift_sub0/shift_sub1 RTXs.
20188 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
20189             Anton Blanchard  <anton@au1.ibm.com>
20191         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
20192         (altivec_vpks<VI_char>ss): Likewise.
20193         (altivec_vpks<VI_char>us): Likewise.
20194         (altivec_vpku<VI_char>us): Likewise.
20195         (altivec_vpku<VI_char>um): Likewise.
20197 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
20199         Introduce context class.
20201         * Makefile.in (CONTEXT_H): New.
20202         (OBJS): Add context.o.
20203         (toplev.o): Add CONTEXT_H to dependencies.
20204         (context.o): New.
20206         * toplev.c (general_init): Create the singleton gcc::context instance.
20208         * context.c: New.
20210         * context.h: New.
20212 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
20214         PR rtl-optimization/57968
20215         * mode-switching.c (create_pre_exit): Allow instructions that
20216         don't set a return register to need a non-exit mode.
20218 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20219             Anton Blanchard  <anton@au1.ibm.com>
20221         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
20222         operands to vperm for little endian.
20223         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
20224         of lvsl to create the control mask for a vperm for little endian.
20226 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20227             Anton Blanchard  <anton@au1.ibm.com>
20229         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
20230         two operands for little-endian.
20232 2013-07-23  Steve Ellcey  <sellcey@mips.com>
20234         * config/mips/mips.c (mips_case_values_threshold): New.
20235         (TARGET_CASE_VALUES_THRESHOLD): Define.
20237 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20238             Anton Blanchard  <anton@au1.ibm.com>
20240         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
20241         selection of field for vector splat in little endian mode.
20243 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
20245         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
20246         expanders to rs6000.md.
20247         (ior<mode>3): Likewise.
20248         (and<mode>3): Likewise.
20249         (one_cmpl<mode>2): Likewise.
20250         (nor<mode>3): Likewise.
20251         (andc<mode>3): Likewise.
20252         (eqv<mode>3): Likewise.
20253         (nand<mode>3): Likewise.
20254         (orc<mode>3): Likewise.
20256         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
20257         declaration.
20259         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
20260         to split multi-word logical operations.
20261         (rs6000_split_logical_di): Likewise.
20262         (rs6000_split_logical): Likewise.
20264         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
20265         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
20266         and allow TImode operations in 32-bit.
20267         (vsx_and<mode>3_64bit): Likewise.
20268         (vsx_ior<mode>3_32bit): Likewise.
20269         (vsx_ior<mode>3_64bit): Likewise.
20270         (vsx_xor<mode>3_32bit): Likewise.
20271         (vsx_xor<mode>3_64bit): Likewise.
20272         (vsx_one_cmpl<mode>2_32bit): Likewise.
20273         (vsx_one_cmpl<mode>2_64bit): Likewise.
20274         (vsx_nor<mode>3_32bit): Likewise.
20275         (vsx_nor<mode>3_64bit): Likewise.
20276         (vsx_andc<mode>3_32bit): Likewise.
20277         (vsx_andc<mode>3_64bit): Likewise.
20278         (vsx_eqv<mode>3_32bit): Likewise.
20279         (vsx_eqv<mode>3_64bit): Likewise.
20280         (vsx_nand<mode>3_32bit): Likewise.
20281         (vsx_nand<mode>3_64bit): Likewise.
20282         (vsx_orc<mode>3_32bit): Likewise.
20283         (vsx_orc<mode>3_64bit): Likewise.
20285         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
20286         logical types in GPRs.
20288         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
20289         logical insns to rs6000.md, and allow TImode operations in
20290         32-bit.
20291         (altivec_ior<mode>3): Likewise.
20292         (altivec_xor<mode>3): Likewise.
20293         (altivec_one_cmpl<mode>2): Likewise.
20294         (altivec_nor<mode>3): Likewise.
20295         (altivec_andc<mode>3): Likewise.
20297         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
20298         attributes for moving the 128-bit logical operations into
20299         rs6000.md.
20300         (BOOL_REGS_OUTPUT): Likewise.
20301         (BOOL_REGS_OP1): Likewise.
20302         (BOOL_REGS_OP2): Likewise.
20303         (BOOL_REGS_UNARY): Likewise.
20304         (BOOL_REGS_AND_CR0): Likewise.
20305         (one_cmpl<mode>2): Add support for DI logical operations on
20306         32-bit, splitting the operations to 32-bit.
20307         (anddi3): Likewise.
20308         (iordi3): Likewise.
20309         (xordi3): Likewise.
20310         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
20311         changes to combine the 32/64-bit code, allow logical operations on
20312         TI mode in 32-bit, and to use similar match_operator patterns like
20313         scalar mode uses.  Combine the Altivec and VSX code for logical
20314         operations, and move it here.
20315         (ior<mode>3, 128-bit types): Likewise.
20316         (xor<mode>3, 128-bit types): Likewise.
20317         (one_cmpl<mode>3, 128-bit types): Likewise.
20318         (nor<mode>3, 128-bit types): Likewise.
20319         (andc<mode>3, 128-bit types): Likewise.
20320         (eqv<mode>3, 128-bit types): Likewise.
20321         (nand<mode>3, 128-bit types): Likewise.
20322         (orc<mode>3, 128-bit types): Likewise.
20323         (and<mode>3_internal): Likewise.
20324         (bool<mode>3_internal): Likewise.
20325         (boolc<mode>3_internal1): Likewise.
20326         (boolc<mode>3_internal2): Likewise.
20327         (boolcc<mode>3_internal1): Likewise.
20328         (boolcc<mode>3_internal2): Likewise.
20329         (eqv<mode>3_internal1): Likewise.
20330         (eqv<mode>3_internal2): Likewise.
20331         (one_cmpl1<mode>3_internal): Likewise.
20333 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
20335         * config/microblaze/microblaze.c (microblaze_expand_prologue):
20336         Rename flag_stack_usage to flag_stack_usage_info.
20338 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
20340         * config/microblaze/sync.md: New file.
20341         * config/microblaze/microblaze.md: Include sync.md
20342         * config/microblaze/microblaze.c: Add print_operand 'y'.
20343         * config/microblaze/constraints.md: Add memory_contraint
20344         'Q' which is a single register.
20346 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
20348         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
20350 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
20352         * reload.c (find_reloads): Exit loop once we find this operand
20353         cannot be reloaded somehow for this alternative.
20355         * reload.c (find_reloads): Exit loop once we find a hard register.
20357         * rtlanal.c (computed_jump_p): Exit loop once we find label
20358         reference is used.
20360         * i386.c (ix86_pad_returns): Exit loop after setting replace.
20362         * cfgloopmanip.c (remove_path): Exit loop after setting
20363         irred_invalidated.
20365         * gensupport.c (subst_dup): Avoid loop if code is not
20366         MATCH_DUP nor MATCH_OP_DUP.
20368 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
20370         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
20372 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20374         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
20375         true for SP_REGNUM if mode == ptr_mode.
20376         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
20377         with value R0_REGNUM + 31.
20379 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20381         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
20382         pad pointer-typed argument downward.
20384 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20386         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
20387         and __ILP32__ when the ILP32 model is in use.
20389 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20391         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
20392         (aarch64_load_symref_appropriately): In the case of
20393         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
20394         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
20395         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
20396         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
20397         if 'mode' doesn't equal to 'ptr_mode'.
20398         (aarch64_output_mi_thunk): Add an assertion on the alignment of
20399         'vcall_offset'; change to call aarch64_emit_move differently depending
20400         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
20401         to calculate the upper bound of 'vcall_offset'.
20402         (aarch64_cannot_force_const_mem): Change to also return true if
20403         mode != ptr_mode.
20404         (aarch64_legitimize_reload_address): In the case of large
20405         displacements, add new local variable 'xmode' and an assertion
20406         based on it; change to use 'xmode' to generate the new rtx and
20407         reload.
20408         (aarch64_asm_trampoline_template): Change to generate the template
20409         differently depending on TARGET_ILP32 or not; change to use
20410         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
20411         (aarch64_trampoline_size): Removed.
20412         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
20413         and replace immediate literals with it.  Change to use 'ptr_mode'
20414         instead of 'DImode' and call convert_memory_address if the mode
20415         of 'fnaddr' doesn't equal to 'ptr_mode'.
20416         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
20417         to output symbol.
20418         (aarch64_elf_asm_destructor): Likewise.
20419         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
20420         on TARGET_ILP32 instead of aarch64_trampoline_size.
20421         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
20422         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
20423         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
20424         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
20425         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
20426         (storewb_pair<GPI:mode>_<P:mode>): ... this.
20427         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
20428         depending on the value of 'mode'.
20429         (add_losym_<mode>): New.
20430         (ldr_got_small_<mode>): New, based on ldr_got_small.
20431         (ldr_got_small): Remove.
20432         (ldr_got_small_sidi): New.
20433         * config/aarch64/iterators.md (P): New.
20434         (PTR): Change to 'ptr_mode' in the condition.
20436 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20438         * config.gcc (aarch64*-*-*): Support --with-abi.
20439         (aarch64*-*-elf): Support --with-multilib-list.
20440         (aarch64*-*-linux*): Likewise.
20441         (supported_defaults): Add abi to aarch64*-*-*.
20442         * configure.ac: Mention AArch64 for --with-multilib-list.
20443         * configure: Re-generated.
20444         * config/aarch64/biarchilp32.h: New file.
20445         * config/aarch64/biarchlp64.h: New file.
20446         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
20447         (ABI_SPEC): Ditto.
20448         (MULTILIB_DEFAULTS): Ditto.
20449         (DRIVER_SELF_SPECS): Ditto.
20450         (ASM_SPEC): Update to also substitute -mabi.
20451         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
20452         file whose name depends on -mabi= and -mbig-endian.
20453         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
20454         TARGET_ILP32.
20455         (POINTER_SIZE): New define.
20456         (POINTERS_EXTEND_UNSIGNED): Ditto.
20457         (enum aarch64_abi_type): New enumeration tag.
20458         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
20459         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
20460         (TARGET_ILP32): New define.
20461         * config/aarch64/aarch64.opt (mabi): New.
20462         (aarch64_abi): New.
20463         (ilp32, lp64): New values for -mabi.
20464         * config/aarch64/t-aarch64 (comma): New define.
20465         (MULTILIB_OPTIONS): Ditto.
20466         (MULTILIB_DIRNAMES): Ditto.
20467         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
20468         * doc/invoke.texi: Document -mabi for AArch64.
20470 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
20472         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
20474 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20475             Anton Blanchard  <anton@au1.ibm.com>
20477         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
20478         endianness when selecting field to splat.
20480 2013-07-22  Eric Christopher  <echristo@gmail.com>
20482         * dwarf2out.c (die_odr_checksum): New function to use
20483         CHECKSUM_ macros and ULEB128 for DIE tag.
20484         (generate_type_signature): Use.
20486 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
20488         * config.gcc (sparc*-*-*): Accept leon3 processor.
20489         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
20490         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
20491         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
20492         * config/sparc/sparc.opt (enum processor_type): Add leon3.
20493         (mfix-ut699): Adjust comment.
20494         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
20495         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
20496         (CPP_CPU_SPEC): Likewise.
20497         (ASM_CPU_SPEC): Likewise.
20498         * config/sparc/sparc.c (leon3_cost): New constant.
20499         (sparc_option_override): Add leon3 support.
20500         (mem_ref): New function.
20501         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
20502         (sparc_do_work_around_errata): Look into the instruction in the delay
20503         slot and adjust accordingly.  Add fix for the data cache nullify issues
20504         of the UT699.  Change insertion position for the NOP.
20505         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
20506         (leon3_load): New reservation.
20507         (leon_store): Bump latency to 2.
20508         (grfpu): New automaton.
20509         (grfpu_alu): New unit.
20510         (grfpu_ds): Likewise.
20511         (leon_fp_alu): Adjust.
20512         (leon_fp_mult): Delete.
20513         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
20514         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
20515         * config/sparc/sparc.md (cpu): Add leon3.
20516         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
20517         (swapsi): Likewise.
20518         (atomic_test_and_set): Likewise.
20519         (ldstub): Likewise.
20521 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
20523         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
20524         default for R5900 targets.
20525         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
20526         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
20527         * config/mips/mips.c (mips_option_override): Report an error for
20528         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
20529         for -march=r5900 -mhard-float.
20531 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
20533         * df-problems.c (can_move_insns_across): Exit loop once we
20534         find a non-fixed, non-global register.
20536         * ipa-pure-const.c (propagate_nothrow): Exit loop after
20537         setting can_throw.
20539         * omega.c (omega_eliminate_red): Break after setting red_found.
20540         (omega_problem_has_red_equations): Similarly after setting found.
20541         (omega_query_variable): Similarly after setting coupled.
20543 2013-07-22  Marek Polacek  <polacek@redhat.com>
20545         * gimplify.c: Don't include gimple.h twice.
20547 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20549         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
20550         instead of TARGET_THUMB1.
20551         (Pz): New constraint.
20552         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
20553         encodings.
20554         (compare_negsi_si): Likewise.
20555         (compare_addsi2_op0): Likewise.
20556         (compare_addsi2_op1): Likewise.
20557         (addsi3_carryin_<optab>): Likewise.
20558         (addsi3_carryin_alt2_<optab>): Likewise.
20559         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
20560         for arm_restrict_it.
20561         (subsi3_carryin): Likewise.
20562         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
20563         (minmax_arithsi): Disable for arm_restrict_it.
20564         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
20565         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
20566         (satsi_<SAT:code>_shift): Likewise.
20567         (arm_shiftsi3): Add alternative for 16-bit encoding.
20568         (arm32_movhf): Disable for arm_restrict_it.
20569         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
20570         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
20572 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
20574         * config/arm/arm.md (attribute "insn"): Delete.
20575         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
20576         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
20577         (not_shiftsi): Update for attribute change.
20578         (not_shiftsi_compare0): Likewise.
20579         (not_shiftsi_compare0_scratch): Likewise.
20580         (arm_one_cmplsi2): Likewise.
20581         (thumb1_one_cmplsi2): Likewise.
20582         (notsi_compare0): Likewise.
20583         (notsi_compare0_scratch): Likewise.
20584         (thumb1_movdi_insn): Likewise.
20585         (arm_movsi_insn): Likewise.
20586         (movhi_insn_arch4): Likewise.
20587         (movhi_bytes): Likewise.
20588         (arm_movqi_insn): Likewise.
20589         (thumb1_movqi_insn): Likewise.
20590         (arm32_movhf): Likewise.
20591         (thumb1_movhf): Likewise.
20592         (arm_movsf_soft_insn): Likewise.
20593         (thumb1_movsf_insn): Likewise.
20594         (thumb_movdf_insn): Likewise.
20595         (movsicc_insn): Likewise.
20596         (movsfcc_soft_insn): Likewise.
20597         (and_scc): Likewise.
20598         (cond_move): Likewise.
20599         (if_move_not): Likewise.
20600         (if_not_move): Likewise.
20601         (if_shift_move): Likewise.
20602         (if_move_shift): Likewise.
20603         (if_shift_shift): Likewise.
20604         (if_not_arith): Likewise.
20605         (if_arith_not): Likewise.
20606         (cond_move_not): Likewise.
20607         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
20608         (neon_mov<mode>): Likewise.
20609         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
20610         (thumb2_movsi_vfp): Likewise.
20611         (movsf_vfp): Likewise.
20612         (thumb2_movsf_vfp): Likewise.
20613         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20614         change.
20615         (cortexa7_older_only): Likewise.
20616         (cortexa7_younger): Likewise.
20617         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
20618         (1020alu_shift_op): Likewise.
20619         (1020alu_shift_reg_op): Likewise.
20620         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
20621         (alu_shift_op): Likewise.
20622         (alu_shift_reg_op): Likewise.
20623         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
20624         (11_alu_shift_op): Likewise.
20625         (11_alu_shift_reg_op): Likewise.
20626         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
20627         (9_alu_shift_reg_op): Likewise.
20628         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20629         change.
20630         (cortex_a15_alu_shift): Likewise.
20631         (cortex_a15_alu_shift_reg): Likewise.
20632         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
20633         (cortex_a5_alu_shift): Likewise.
20634         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
20635         change.
20636         (cortex_a53_alu_shift): Likewise.
20637         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20638         change.
20639         (cortex_a7_alu_reg): Likewise.
20640         (cortex_a7_alu_shift): Likewise.
20641         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20642         (cortex_a8_alu_shift): Likewise.
20643         (cortex_a8_alu_shift_reg): Likewise.
20644         (cortex_a8_mov): Likewise.
20645         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
20646         (cortex_a9_dp_shift): Likewise.
20647         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
20648         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
20649         (cortex_r4_mov): Likewise.
20650         (cortex_r4_alu_shift): Likewise.
20651         (cortex_r4_alu_shift_reg): Likewise.
20652         * config/arm/fa526.md (526_alu_op): Update for attribute change.
20653         (526_alu_shift_op): Likewise.
20654         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
20655         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
20656         (626te_alu_shift_op): Likewise.
20657         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
20658         (726te_alu_op): Likewise.
20659         (726te_alu_shift_op): Likewise.
20660         (726te_alu_shift_reg_op): Likewise.
20661         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
20662         (mp626_alu_shift_op): Likewise.
20663         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
20664         (pj4_alu_e1_conds): Likewise.
20665         (pj4_alu): Likewise.
20666         (pj4_alu_conds): Likewise.
20667         (pj4_shift): Likewise.
20668         (pj4_shift_conds): Likewise.
20669         (pj4_alu_shift): Likewise.
20670         (pj4_alu_shift_conds): Likewise.
20672 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20674         * config/arm/predicates.md (shiftable_operator_strict_it):
20675         New predicate.
20676         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
20677         Disable cond_exec version for arm_restrict_it.
20678         (thumb2_smaxsi3): Convert to generate cond_exec.
20679         (thumb2_sminsi3): Likewise.
20680         (thumb32_umaxsi3): Likewise.
20681         (thumb2_uminsi3): Likewise.
20682         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
20683         (thumb2_neg_abssi2): Likewise.
20684         (thumb2_mov_scc): Add alternative for 16-bit encoding.
20685         (thumb2_movsicc_insn): Adjust alternatives.
20686         (thumb2_mov_negscc): Disable for arm_restrict_it.
20687         (thumb2_mov_negscc_strict_it): New pattern.
20688         (thumb2_mov_notscc_strict_it): New pattern.
20689         (thumb2_mov_notscc): Disable for arm_restrict_it.
20690         (thumb2_ior_scc): Likewise.
20691         (thumb2_ior_scc_strict_it): New pattern.
20692         (thumb2_cond_move): Adjust for arm_restrict_it.
20693         (thumb2_cond_arith): Disable for arm_restrict_it.
20694         (thumb2_cond_arith_strict_it): New pattern.
20695         (thumb2_cond_sub): Adjust for arm_restrict_it.
20696         (thumb2_movcond): Likewise.
20697         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
20698         (thumb2_zero_extendhisi2_v6): Likewise.
20699         (thumb2_zero_extendqisi2_v6): Likewise.
20700         (orsi_notsi_si): Likewise.
20701         (orsi_not_shiftsi_si): Likewise.
20703 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
20705         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
20706         instruction sequence is 1 byte shorter.
20708 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
20710         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
20711         it is not needed after split.
20713 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
20715         PR target/51784
20716         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
20717         second label for nonlocal goto receivers. Don't output pic base labels
20718         unless we're producing PIC; mark that action unreachable().
20719         (ix86_save_reg): If the function contains a nonlocal label, save the
20720         PIC base reg.
20721         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
20722         * config/darwin.c (emitted_pic_label_num): New GTY.
20723         (update_pic_label_number_if_needed): New.
20724         (machopic_output_function_base_name): Adjust for nonlocal receiver
20725         case.
20726         (machopic_should_output_picbase_label): New.
20727         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
20728         (nonlocal_goto_receiver): New insn and split.
20730 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
20732         * config/aarch64/aarch64-builtins.c
20733         (aarch64_fold_builtin): Fold abs in all modes.
20734         * config/aarch64/aarch64-simd-builtins.def
20735         (abs): Enable for all modes.
20736         * config/aarch64/arm_neon.h
20737         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
20738         (vabs_f64): Add missing intrinsic.
20740 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
20742         * config/aarch64/arm_neon.h (vabs_s64): New function
20744 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
20746         PR target/57516
20747         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
20748         * config/avr/avr.md (adjust_len): Add `round'.
20749         * config/avr/avr-protos.h (avr_out_round): New prototype.
20750         (avr_out_plus): Add `out_label' argument.
20751         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
20752         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
20753         Handle the case where `insn' is just a pattern.
20754         (avr_out_bitop): Handle the case where `insn' is just a pattern.
20755         (avr_out_round): New function.
20756         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
20758 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
20760         * config/microblaze/microblaze.c (microblaze_expand_prologue):
20761         Add check for flag_stack_usage to handle -fstack-usage support
20763 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
20765         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
20766         interaction for new Power8 flags and VSX.
20768 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
20770         PR middle-end/57698
20771         * tree-inline.c (expand_call_inline): Emit errors during
20772         early_inlining only if optimization is not turned on.
20774 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20776         * passes.def: New.
20778         * passes.c (init_optimization_passes): Move the construction of
20779         the pass hierarchy into a new passes.def file.
20781         * Makefile.in (passes.o): Add dependency on passes.def.
20783 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20785         * passes.c (init_optimization_passes): Introduce macros for
20786         constructing the tree of passes (INSERT_PASSES_AFTER,
20787         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
20788         TERMINATE_PASS_LIST).
20790 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
20791             Wei Mi  <wmi@google.com>
20793         PR rtl-optimization/57878
20794         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
20795         top.
20796         (reload_pseudo_compare_func): Check nregs first for reload
20797         pseudos.
20799 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20801         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
20803 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
20805         * read-rtl.c (validate_const_int): Once an invalid character is
20806         seen, quit the loop.
20808         * gengtype.c (write_roots): Similarly once we find the "deletable"
20809         or "if_marked" option.
20811 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
20813         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
20814         "xtab" and "sat".  Move value "clz" from here to ...
20815         (attriubte "type"): ... here.
20816         (satsi_<SAT:code>): Delete "insn" attribute.
20817         (satsi_<SAT:code>_shift): Likewise.
20818         (arm_zero_extendqisi2addsi): Likewise.
20819         (arm_extendqisi2addsi): Likewise.
20820         (clzsi2): Update for attribute changes.
20821         (rbitsi2): Likewise.
20822         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
20823         attribute.
20824         (arm_usatsihi): Likewise.
20825         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20827 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
20829         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
20830         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
20831         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
20832         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
20833         in alphabetical order.
20834         (attribute "core_cycles"): Update for attribute changes.
20835         (arm_addsi3): Likewise.
20836         (addsi3_compare0): Likewise.
20837         (addsi3_compare0_scratch): Likewise.
20838         (addsi3_compare_op1): Likewise.
20839         (addsi3_compare_op2): Likewise.
20840         (compare_addsi2_op0): Likewise.
20841         (compare_addsi2_op1): Likewise.
20842         (addsi3_carryin_shift_<optab>): Likewise.
20843         (subsi3_carryin_shift): Likewise.
20844         (rsbsi3_carryin_shift): Likewise.
20845         (arm_subsi3_insn): Likewise.
20846         (subsi3_compare0): Likewise.
20847         (subsi3_compare): Likewise.
20848         (arm_andsi3_insn): Likewise.
20849         (thumb1_andsi3_insn): Likewise.
20850         (andsi3_compare0): Likewise.
20851         (andsi3_compare0_scratch): Likewise.
20852         (zeroextractsi_compare0_scratch
20853         (andsi_not_shiftsi_si): Likewise.
20854         (iorsi3_insn): Likewise.
20855         (iorsi3_compare0): Likewise.
20856         (iorsi3_compare0_scratch): Likewise.
20857         (arm_xorsi3): Likewise.
20858         (thumb1_xorsi3_insn): Likewise.
20859         (xorsi3_compare0): Likewise.
20860         (xorsi3_compare0_scratch): Likewise.
20861         (satsi_<SAT:code>_shift): Likewise.
20862         (rrx): Likewise.
20863         (arm_shiftsi3): Likewise.
20864         (shiftsi3_compare0): Likewise.
20865         (not_shiftsi): Likewise.
20866         (not_shiftsi_compare0): Likewise.
20867         (not_shiftsi_compare0_scratch): Likewise.
20868         (arm_one_cmplsi2): Likewise.
20869         (thumb_one_complsi2): Likewise.
20870         (notsi_compare0): Likewise.
20871         (notsi_compare0_scratch): Likewise.
20872         (thumb1_zero_extendhisi2): Likewise.
20873         (arm_zero_extendhisi2): Likewise.
20874         (arm_zero_extendhisi2_v6): Likewise.
20875         (arm_zero_extendhisi2addsi): Likewise.
20876         (thumb1_zero_extendqisi2): Likewise.
20877         (thumb1_zero_extendqisi2_v6): Likewise.
20878         (arm_zero_extendqisi2): Likewise.
20879         (arm_zero_extendqisi2_v6): Likewise.
20880         (arm_zero_extendqisi2addsi): Likewise.
20881         (thumb1_extendhisi2): Likewise.
20882         (arm_extendhisi2): Likewise.
20883         (arm_extendhisi2_v6): Likewise.
20884         (arm_extendqisi): Likewise.
20885         (arm_extendqisi_v6): Likewise.
20886         (arm_extendqisi2addsi): Likewise.
20887         (thumb1_extendqisi2): Likewise.
20888         (thumb1_movdi_insn): Likewise.
20889         (arm_movsi_insn): Likewise.
20890         (movsi_compare0): Likewise.
20891         (movhi_insn_arch4): Likewise.
20892         (movhi_bytes): Likewise.
20893         (arm_movqi_insn): Likewise.
20894         (thumb1_movqi_insn): Likewise.
20895         (arm32_movhf): Likewise.
20896         (thumb1_movhf): Likewise.
20897         (arm_movsf_soft_insn): Likewise.
20898         (thumb1_movsf_insn): Likewise.
20899         (movdf_soft_insn): Likewise.
20900         (thumb_movdf_insn): Likewise.
20901         (arm_cmpsi_insn): Likewise.
20902         (cmpsi_shiftsi): Likewise.
20903         (cmpsi_shiftsi_swp): Likewise.
20904         (arm_cmpsi_negshiftsi_si): Likewise.
20905         (movsicc_insn): Likewise.
20906         (movsfcc_soft_insn): Likewise.
20907         (arith_shiftsi): Likewise.
20908         (arith_shiftsi_compare0
20909         (arith_shiftsi_compare0_scratch
20910         (sub_shiftsi): Likewise.
20911         (sub_shiftsi_compare0
20912         (sub_shiftsi_compare0_scratch
20913         (and_scc): Likewise.
20914         (cond_move): Likewise.
20915         (if_plus_move): Likewise.
20916         (if_move_plus): Likewise.
20917         (if_move_not): Likewise.
20918         (if_not_move): Likewise.
20919         (if_shift_move): Likewise.
20920         (if_move_shift): Likewise.
20921         (if_shift_shift): Likewise.
20922         (if_not_arith): Likewise.
20923         (if_arith_not): Likewise.
20924         (cond_move_not): Likewise.
20925         (thumb1_ashlsi3): Set type attribute.
20926         (thumb1_ashrsi3): Likewise.
20927         (thumb1_lshrsi3): Likewise.
20928         (thumb1_rotrsi3): Likewise.
20929         (shiftsi3_compare0_scratch): Likewise.
20930         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
20931         (neon_mov<mode>): Likewise.
20932         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
20933         attribute changes.
20934         (thumb2_movsi_insn): Likewise.
20935         (thumb2_cmpsi_neg_shiftsi): Likewise.
20936         (thumb2_extendqisi_v6): Likewise.
20937         (thumb2_zero_extendhisi2_v6): Likewise.
20938         (thumb2_zero_extendqisi2_v6): Likewise.
20939         (thumb2_shiftsi3_short): Likewise.
20940         (thumb2_addsi3_compare0_scratch): Likewise.
20941         (orsi_not_shiftsi_si): Likewise.
20942         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
20943         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
20944         changes.
20945         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
20946         (1020alu_shift_op): Likewise.
20947         (1020alu_shift_reg_op): Likewise.
20948         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
20949         (alu_shift_op): Likewise.
20950         (alu_shift_reg_op): Likewise.
20951         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
20952         (11_alu_shift_op): Likewise.
20953         (11_alu_shift_reg_op): Likewise.
20954         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
20955         (9_alu_shift_reg_op): Likewise.
20956         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20957         changes.
20958         (cortex_a15_alu_shift): Likewise.
20959         (cortex_a15_alu_shift_reg): Likewise.
20960         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
20961         changes.
20962         (cortex_a5_alu_shift): Likewise.
20963         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
20964         changes.
20965         (cortex_a53_alu_shift): Likewise.
20966         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20967         changes.
20968         (cortex_a7_alu_reg): Likewise.
20969         (cortex_a7_alu_shift): Likewise.
20970         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
20971         changes.
20972         (cortex_a8_alu_shift): Likewise.
20973         (cortex_a8_alu_shift_reg): Likewise.
20974         (cortex_a8_mov): Likewise.
20975         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
20976         (cortex_a9_dp_shift): Likewise.
20977         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
20978         changes.
20979         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
20980         changes.
20981         (cortex_r4_mov): Likewise.
20982         (cortex_r4_alu_shift): Likewise.
20983         (cortex_r4_alu_shift_reg): Likewise.
20984         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
20985         (526_alu_shift_op): Likewise.
20986         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
20987         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
20988         (626te_alu_shift_op): Likewise.
20989         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
20990         (726te_alu_op): Likewise.
20991         (726te_alu_shift_op): Likewise.
20992         (726te_alu_shift_reg_op): Likewise.
20993         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
20994         (mp626_alu_shift_op): Likewise.
20995         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
20996         (pj4_alu_e1_conds): Likewise.
20997         (pj4_alu): Likewise.
20998         (pj4_alu_conds): Likewise.
20999         (pj4_shift): Likewise.
21000         (pj4_shift_conds): Likewise.
21001         (pj4_alu_shift): Likewise.
21002         (pj4_alu_shift_conds): Likewise.
21003         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21004         changes.
21005         (cortexa7_older_only): Likewise.
21006         (cortexa7_younger): Likewise.
21008 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21010         * ipa-pure-const.c (generate_summary): Rename to...
21011         (pure_const_generate_summary): ... this.
21013 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
21015         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
21017 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
21019         PR target/57909
21020         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
21021         usage in HI mode.
21023 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21025         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
21026         enabled without -march=zEC12.
21027         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
21028         flags to be set.
21030 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21032         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
21033         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
21034         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
21035         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
21036         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
21037         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
21038         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
21039         ISA_HAS_FP4.
21040         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
21041         and ISA_HAS_NMADD3_NMSUB3.
21042         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
21043         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
21044         (nmsub4<mode>, nmsub3<mode>): Likewise.
21045         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
21047 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21049         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
21050         TARGET_MIPS5400 checking.
21052 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
21053             Peter Bergner  <bergner@vnet.ibm.com>
21055         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
21056         registers in the comment.
21057         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
21058         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
21059         rather than FIRST_PSEUDO_REGISTERS.
21061 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
21063         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
21064         enable extra ISA flags with TARGET_HTM.
21066 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21068         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
21069         Fix comment typos.
21071 2013-07-15  Cong Hou  <congh@google.com>
21073         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
21074         in compare function for sorting.
21076 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
21078         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
21079         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
21080         * config/rs6000/rs6000.opt: Add -mhtm option.
21081         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
21082         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
21083         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
21084         __HTM__ if the HTM instructions are available.
21085         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
21086         htm_spr_reg_operand): New define_predicates.
21087         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
21088         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
21089         Include htm.md.
21090         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
21091         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
21092         HTM builtin functions.
21093         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
21094         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
21095         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
21096         (rs6000_builtin_mask_calculate): Likewise.
21097         (rs6000_option_override_internal): Likewise.
21098         (bdesc_htm): Add new HTM builtin support.
21099         (htm_spr_num): New function.
21100         (htm_spr_regno): Likewise.
21101         (rs6000_htm_spr_icode): Likewise.
21102         (htm_expand_builtin): Likewise.
21103         (htm_init_builtins): Likewise.
21104         (rs6000_expand_builtin): Add support for HTM builtin functions.
21105         (rs6000_init_builtins): Likewise.
21106         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
21107         option.
21108         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
21109         (TARGET_HTM, MASK_HTM): Define macros.
21110         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
21111         (FIXED_REGISTERS): Likewise.
21112         (CALL_USED_REGISTERS): Likewise.
21113         (CALL_REALLY_USED_REGISTERS): Likewise.
21114         (REG_ALLOC_ORDER): Likewise.
21115         (enum reg_class): Likewise.
21116         (REG_CLASS_NAMES): Likewise.
21117         (REG_CLASS_CONTENTS): Likewise.
21118         (REGISTER_NAMES): Likewise.
21119         (ADDITIONAL_REGISTER_NAMES): Likewise.
21120         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
21121         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
21122         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
21123         * config/rs6000/htm.md: New file.
21124         * config/rs6000/htmintrin.h: New file.
21125         * config/rs6000/htmxlintrin.h: New file.
21127 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21129         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21130         Define SYMBOL_TINY_GOT, update comment.
21131         * config/aarch64/aarch64.c
21132         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
21133         (aarch64_expand_mov_immediate): Likewise.
21134         (aarch64_print_operand): Likewise.
21135         (aarch64_classify_symbol): Likewise.
21136         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
21137         (ldr_got_tiny): Define.
21139 2013-07-13  Tobias Grosser  <tobias@grosser.es>
21141         PR tree-optimization/54094
21142         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
21143           scheduling dimension for the parallelism check from the polyhedral
21144           information in the AST.
21145         * graphite-dependences.c (carries_deps): Do not assume the schedule is
21146           in 2D + 1 form.
21148 2013-07-13  Jason Merrill  <jason@redhat.com>
21150         * print-tree.c (debug_vec_tree): Use debug_raw.
21151         (debug_raw (vec<tree, va_gc> &)): New.
21152         (debug_raw (vec<tree, va_gc> *)): New.
21153         * tree.h: Declare them.
21155 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
21157         * ifcvt.c (ifcvt_after_combine): New static variable.
21158         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
21159         for size.
21160         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
21161         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
21162         rest_of_handle_if_after_reload): Pass new argument for if_convert.
21164 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
21166         * config/mips/mips.c (mips_expand_call): Remove empty statement.
21168 2013-07-12  Michael Matz  <matz@suse.de>
21170         PR middle-end/55771
21171         * convert.c (convert_to_real): Reject non-float inner types.
21173 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
21175         * config/aarch64/aarch64-protos.h
21176         (aarch64_simd_immediate_valid_for_move): Remove.
21177         * config/aarch64/aarch64.c (simd_immediate_info): New member.
21178         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
21179         cases.
21180         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
21182 2013-07-11  Steve Ellcey  <sellcey@mips.com>
21184         * config/mips/mips.c (mips_conditional_register_usage): Do not
21185         use t[0-7] registers in MIPS16 mode when optimizing for size.
21187 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
21189         * config/i386/i386.c (dispatch_function_versions): Fix array
21190         indexing of function_version_info to match actual_versions.
21192 2013-07-11  Teresa Johnson  <tejohnson@google.com>
21194         * vec.h (struct va_gc): Move release out-of-line.
21195         (va_gc::release): Call ggc_free on released vec.
21197 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21199         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
21200         Require GOT register as additional operand in UNSPEC.
21201         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
21202         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21203         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21204         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
21205         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
21206         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
21207         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
21209 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
21211         PR target/57631
21212         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
21213         name seen by assembler/linker rather if available.
21215 2013-07-11  Andreas Schwab  <schwab@suse.de>
21217         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
21219 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
21221         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21223 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
21225         * doc/tm.texi.in: Move hook documentation to ....
21226         * target.def: ... here.
21228         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
21229         text on @hook line.
21230         * doc/tm.texi: Regenerate.
21232 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
21234         PR c++/57869
21235         * doc/invoke.texi: Document -Wconditionally-supported.
21237 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21239         PR target/57844
21240         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
21241         of my_fp.
21243 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21245         PR target/57506
21246         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
21247         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
21248         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
21249         Remove duplicate devices.
21250         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
21251         * config/avr/t-multilib: Regenerate.
21252         * config/avr/avr-tables.opt: Regenerate.
21253         * doc/avr-mmcu.texi: Regenerate.
21255 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21257         PR target/56987
21258         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
21260 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
21262         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
21263         the cost of MULT when optimizing for size.
21265 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21267         * config/cr16/cr16-protos.h: Don't include target.h.
21269 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
21271         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
21272         adjust register size for TDmode and TFmode for VSX registers.
21274 2013-07-08  Kai Tietz  <ktietz@redhat.com>
21276         PR target/56892
21277         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
21278         hook_bool_const_tree_true.
21280 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21282         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
21283         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
21284         * config/s390/s390.md: Define FPR*_REGNUM constants.
21285         Fix FPR2_REGNUM constant (18 -> 17).
21286         ("*trunc<BFP:mode><DFP_ALL:mode>2")
21287         ("*trunc<DFP_ALL:mode><BFP:mode>2")
21288         ("trunc<BFP:mode><DFP_ALL:mode>2")
21289         ("trunc<DFP_ALL:mode><BFP:mode>2")
21290         ("*extend<BFP:mode><DFP_ALL:mode>2")
21291         ("*extend<DFP_ALL:mode><BFP:mode>2")
21292         ("extend<BFP:mode><DFP_ALL:mode>2")
21293         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
21294         FPR4_REGNUM.
21296 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
21298         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
21300 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21302         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
21303         and cfun_fpr_bit_p to cfun_fpr_save_p.
21304         (s390_frame_area, s390_register_info, s390_frame_info)
21305         (s390_emit_prologue, s390_emit_epilogue)
21306         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
21307         register numbers.
21308         * config/s390/s390.h: Define *_REGNUM macros for floating point
21309         register numbers.
21311 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
21313         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
21315 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
21317         PR rtl-optimization/57786
21318         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
21319         and break out of the loop when it is set to false.
21321 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
21323         PR target/57819
21324         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
21325         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
21326         (const_int 63)) 0)).
21327         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
21328         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
21329         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
21331         PR rtl-optimization/57829
21332         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
21333         mask bits outside of mode are just sign-extension from mode to HWI.
21335 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
21337         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
21338         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
21339         adjust_address instead of change_address to keep info about alignment.
21340         (emit_strmov): Remove.
21341         (emit_memmov): New function.
21342         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
21343         (expand_movmem_epilogue): Likewise and return updated rtx for
21344         destination.
21345         (expand_constant_movmem_prologue): Likewise and return updated rtx for
21346         destination and source.
21347         (decide_alignment): Refactor, handle vector_loop.
21348         (ix86_expand_movmem): Likewise.
21349         (ix86_expand_setmem): Likewise.
21350         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
21352 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
21354         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
21355         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
21357 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
21359         * config/i386/sse.md (sse_movlhps): Change alternative 3
21360         of operand 2 to "m".
21362 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
21364         PR target/57807
21365         * config/i386/sse.md (iptr): New mode attribute.
21366         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
21367         (<sse>_vm<plusminus_insn><mode>3): Ditto.
21368         (<sse>_vmmul<mode>3): Ditto.
21369         (<sse>_vmdiv<mode>3): Ditto.
21370         (sse_vmrcpv4sf2): Ditto.
21371         (<sse>_vmsqrt<mode>2): Ditto.
21372         (sse_vmrsqrtv4sf2): Ditto.
21373         (<sse>_vm<code><mode>3): Ditto.
21374         (avx_vmcmp<mode>3): Ditto.
21375         (<sse>_vmmaskcmp<mode>3): Ditto.
21376         (<sse>_comi): Ditto.
21377         (<sse>_ucomi): Ditto.
21378         (*xop_vmfrcz_<mode>): Ditto.
21379         (*fmai_fmadd_<mode>): Ditto.
21380         (*fmai_fmsub_<mode>): Ditto.
21381         (*fmai_fnmadd_<mode>): Ditto.
21382         (*fmai_fnmsub_<mode>): Ditto.
21383         (*fma4i_vmfmadd_<mode>): Ditto.
21384         (*fma4i_vmfmsub_<mode>): Ditto.
21385         (*fma4i_vmfnmadd_<mode>): Ditto.
21386         (*fma4i_vmfnmsub_<mode>): Ditto.
21387         (*xop_vmfrcz_<mode>): Ditto.
21388         (sse_cvtps2pi): Ditto.
21389         (sse_cvttps2pi): Ditto.
21390         (sse_cvtss2si): Ditto.
21391         (sse_cvtss2si_2): Ditto.
21392         (sse_cvtss2siq_2): Ditto.
21393         (sse_cvttss2si): Ditto.
21394         (sse_cvttss2siq): Ditto.
21395         (sse_cvtsd2si): Ditto.
21396         (sse_cvtsd2si_2): Ditto.
21397         (sse_cvtsd2siq_2): Ditto.
21398         (sse_cvttsd2si): Ditto.
21399         (sse_cvttsd2siq): Ditto.
21400         (sse_cvtsd2ss): Ditto.
21401         (sse_cvtss2sd): Ditto.
21402         (avx2_pbroadcast<mode>): Ditto.
21403         (avx2_pbroadcast<mode>_1): Ditto.
21404         (*avx_vperm_broadcast_v4sf): Ditto.
21406         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
21407         (sse_movlhps): Ditto.
21408         (sse_storehps): Ditto.
21409         (sse_loadhps): Ditto.
21410         (sse_storelps): Ditto.
21411         (sse_loadlps): Ditto.
21412         (*vec_concatv4sf): Ditto.
21413         (*vec_interleave_highv2df): Ditto.
21414         (*vec_interleave_lowv2df): Ditto.
21415         (*vec_extractv2df_1_sse): Ditto.
21416         (*vec_extractv2df_0_sse): Ditto.
21417         (sse2_storelpd): Ditto.
21418         (sse2_loadlpd): Ditto.
21419         (sse2_movsd): Ditto.
21420         (*vec_concatv4si): Ditto.
21421         (vec_concatv2di): Ditto.
21423         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
21424         for Intel asm dialect.
21425         (mmx_punpcklwd): Ditto.
21426         (mmx_punpckldq): Ditto.
21428         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
21429         for intel assembler dialect.
21431 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
21433         PR target/29776
21434         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
21435         for BUILT_IN_C{LZ,LRSB}*.
21436         * tree.h (CASE_INT_FN): Add FN##IMAX case.
21437         * tree-vrp.c (extract_range_basic): Handle
21438         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
21439         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
21440         fall thru to code calling set_value*.
21441         * builtins.c (expand_builtin): Remove *IMAX cases.
21442         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
21443         if width is bigger than 2*HWI.
21445 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
21447         PR rtl-optimization/55342
21448         * lra-int.h (lra_subreg_reload_pseudos): New.
21449         * lra.c: Add undoing optional reloads to the block diagram.
21450         (lra_subreg_reload_pseudos): New.
21451         (lra_optional_reload_pseudos): Change comments.
21452         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
21453         lra_optional_reload_pseudos after undo transformations.
21454         * lra-assigns.c (pseudo_prefix_title): New.
21455         (lra_setup_reg_renumber): Use it.
21456         (spill_for): Ditto.  Check subreg reload pseudos too.
21457         (assign_by_spills): Consider subreg reload pseudos too.
21458         * lra-constraints.c (simplify_operand_subreg): Use
21459         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
21460         (curr_insn_transform): Recognize and do optional reloads.
21461         (undo_optional_reloads): New.
21462         (lra_undo_inheritance): Call undo_optional_reloads.
21464 2013-07-05  Thomas Quinot  <quinot@adacore.com>
21466         * tree-complex.c (expand_complex_operations_1): Fix typo.
21468 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
21470         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
21471         (tune_params): New member 'const vec_costs'.
21472         * config/aarch64/aarch64.c (generic_vector_cost): New.
21473         (generic_tunings): New member 'generic_vector_cost'.
21474         (aarch64_builtin_vectorization_cost): New.
21475         (aarch64_add_stmt_cost): New.
21476         (TARGET_VECTORIZE_ADD_STMT_COST): New.
21477         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
21479 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
21481         PR target/57777
21482         * config/i386/predicates.md (vsib_address_operand): Disallow
21483         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
21485 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
21487         PR middle-end/55030
21488         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
21489         expand_builtin_setjmp_receiver.
21490         (expand_label): Adjust, call expand_builtin_setjmp_receiver
21491         with NULL for the label parameter.
21492         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
21493         the frame-pointer.  Adjust comments.
21494         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
21495         only if LABEL is non-NULL.
21497 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
21499         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
21500         (ARM_ABI_AAPCS64): Ditto.
21501         (arm_abi): Ditto.
21502         (ARM_DEFAULT_ABI): Ditto.
21504 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
21506         * config/aarch64/aarch64-builtins.c
21507         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
21508         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
21509         (st1): Likewise.
21510         * config/aarch64/aarch64-simd.md
21511         (aarch64_ld1<VALL:mode>): New.
21512         (aarch64_st1<VALL:mode>): Likewise.
21513         * config/aarch64/arm_neon.h
21514         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
21516 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
21518         * config/i386/i386.c (gate_insert_vzeroupper): Check if
21519         target ISA is AVX.
21520         (ix86_option_override_internal):Turn on all -mavx target flags by
21521         default as they are dependent on AVX anyway.
21523 2013-07-02  Cary Coutant  <ccoutant@google.com>
21525         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
21526         deterministic hash.
21527         (loc_checksum_ordered): Likewise.
21528         (hash_loc_operands): Remove inline keyword.
21530 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
21532         PR tree-optimization/57741
21533         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
21534         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
21535         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
21536         Allow REAL_CST step_exprs if flag_associative_math.
21537         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
21539 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
21541         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
21543 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
21545         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
21547 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21549         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
21550         encoding.
21551         (iorsi3_insn): Likewise.
21552         (arm_xorsi3): Likewise.
21554 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
21556         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
21557         to ...
21558         (attribute "type"): ... here, and prefix with "wmmx_".
21559         (attribute "core_cycles"): Update for attribute changes.
21560         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
21561         (tbcstv4hi): Likewise.
21562         (tbcstv2si): Likewise.
21563         (iwmmxt_iordi3): Likewise.
21564         (iwmmxt_xordi3): Likewise.
21565         (iwmmxt_anddi3): Likewise.
21566         (iwmmxt_nanddi3): Likewise.
21567         (iwmmxt_arm_movdi): Likewise.
21568         (iwmmxt_movsi_insn): Likewise.
21569         (mov<mode>_internal): Likewise.
21570         (and<mode>3_iwmmxt): Likewise.
21571         (ior<mode>3_iwmmxt): Likewise.
21572         (xor<mode>3_iwmmxt): Likewise.
21573         (add<mode>3_iwmmxt): Likewise.
21574         (ssaddv8qi3): Likewise.
21575         (ssaddv4hi3): Likewise.
21576         (ssaddv2si3): Likewise.
21577         (usaddv8qi3): Likewise.
21578         (usaddv4hi3): Likewise.
21579         (usaddv2si3): Likewise.
21580         (sub<mode>3_iwmmxt): Likewise.
21581         (sssubv8qi3): Likewise.
21582         (sssubv4hi3): Likewise.
21583         (sssubv2si3): Likewise.
21584         (ussubv8qi3): Likewise.
21585         (ussubv4hi3): Likewise.
21586         (ussubv2si3): Likewise.
21587         (mulv4hi3_iwmmxt): Likewise.
21588         (smulv4hi3_highpart): Likewise.
21589         (umulv4hi3_highpart): Likewise.
21590         (iwmmxt_wmacs): Likewise.
21591         (iwmmxt_wmacsz): Likewise.
21592         (iwmmxt_wmacu): Likewise.
21593         (iwmmxt_wmacuz): Likewise.
21594         (iwmmxt_clrdi): Likewise.
21595         (iwmmxt_clrv8qi): Likewise.
21596         (iwmmxt_clr4hi): Likewise.
21597         (iwmmxt_clr2si): Likewise.
21598         (iwmmxt_uavgrndv8qi3): Likewise.
21599         (iwmmxt_uavgrndv4hi3): Likewise.
21600         (iwmmxt_uavgv8qi3): Likewise.
21601         (iwmmxt_uavgv4hi3): Likewise.
21602         (iwmmxt_tinsrb): Likewise.
21603         (iwmmxt_tinsrh): Likewise.
21604         (iwmmxt_tinsrw): Likewise.
21605         (iwmmxt_textrmub): Likewise.
21606         (iwmmxt_textrmsb): Likewise.
21607         (iwmmxt_textrmuh): Likewise.
21608         (iwmmxt_textrmsh): Likewise.
21609         (iwmmxt_textrmw): Likewise.
21610         (iwmxxt_wshufh): Likewise.
21611         (eqv8qi3): Likewise.
21612         (eqv4hi3): Likewise.
21613         (eqv2si3): Likewise.
21614         (gtuv8qi3): Likewise.
21615         (gtuv4hi3): Likewise.
21616         (gtuv2si3): Likewise.
21617         (gtv8qi3): Likewise.
21618         (gtv4hi3): Likewise.
21619         (gtv2si3): Likewise.
21620         (smax<mode>3_iwmmxt): Likewise.
21621         (umax<mode>3_iwmmxt): Likewise.
21622         (smin<mode>3_iwmmxt): Likewise.
21623         (umin<mode>3_iwmmxt): Likewise.
21624         (iwmmxt_wpackhss): Likewise.
21625         (iwmmxt_wpackwss): Likewise.
21626         (iwmmxt_wpackdss): Likewise.
21627         (iwmmxt_wpackhus): Likewise.
21628         (iwmmxt_wpackwus): Likewise.
21629         (iwmmxt_wpackdus): Likewise.
21630         (iwmmxt_wunpckihb): Likewise.
21631         (iwmmxt_wunpckihh): Likewise.
21632         (iwmmxt_wunpckihw): Likewise.
21633         (iwmmxt_wunpckilb): Likewise.
21634         (iwmmxt_wunpckilh): Likewise.
21635         (iwmmxt_wunpckilw): Likewise.
21636         (iwmmxt_wunpckehub): Likewise.
21637         (iwmmxt_wunpckehuh): Likewise.
21638         (iwmmxt_wunpckehuw): Likewise.
21639         (iwmmxt_wunpckehsb): Likewise.
21640         (iwmmxt_wunpckehsh): Likewise.
21641         (iwmmxt_wunpckehsw): Likewise.
21642         (iwmmxt_wunpckelub): Likewise.
21643         (iwmmxt_wunpckeluh): Likewise.
21644         (iwmmxt_wunpckeluw): Likewise.
21645         (iwmmxt_wunpckelsb): Likewise.
21646         (iwmmxt_wunpckelsh): Likewise.
21647         (iwmmxt_wunpckelsw): Likewise.
21648         (ror<mode>3): Likewise.
21649         (ashr<mode>3_iwmmxt): Likewise.
21650         (lshr<mode>3_iwmmxt): Likewise.
21651         (ashl<mode>3_iwmmxt): Likewise.
21652         (ror<mode>3_di): Likewise.
21653         (ashr<mode>3_di): Likewise.
21654         (lshr<mode>3_di): Likewise.
21655         (ashl<mode>3_di): Likewise.
21656         (iwmmxt_wmadds): Likewise.
21657         (iwmmxt_wmaddu): Likewise.
21658         (iwmmxt_tmia): Likewise.
21659         (iwmmxt_tmiaph): Likewise.
21660         (iwmmxt_tmiabb): Likewise.
21661         (iwmmxt_tmiatb): Likewise.
21662         (iwmmxt_tmiabt): Likewise.
21663         (iwmmxt_tmiatt): Likewise.
21664         (iwmmxt_tmovmskb): Likewise.
21665         (iwmmxt_tmovmskh): Likewise.
21666         (iwmmxt_tmovmskw): Likewise.
21667         (iwmmxt_waccb): Likewise.
21668         (iwmmxt_wacch): Likewise.
21669         (iwmmxt_waccw): Likewise.
21670         (iwmmxt_waligni): Likewise.
21671         (iwmmxt_walignr): Likewise.
21672         (iwmmxt_walignr0): Likewise.
21673         (iwmmxt_walignr1): Likewise.
21674         (iwmmxt_walignr2): Likewise.
21675         (iwmmxt_walignr3): Likewise.
21676         (iwmmxt_wsadb): Likewise.
21677         (iwmmxt_wsadh): Likewise.
21678         (iwmmxt_wsadbz): Likewise.
21679         (iwmmxt_wsadhz): Likewise.
21680         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
21681         (iwmmxt_wabsdiffb): Likewise.
21682         (iwmmxt_wabsdiffh): Likewise.
21683         (iwmmxt_wabsdiffw): Likewise.
21684         (iwmmxt_waddsubhx): Likewise
21685         (iwmmxt_wsubaddhx): Likewise.
21686         (addc<mode>3): Likewise.
21687         (iwmmxt_avg4): Likewise.
21688         (iwmmxt_avg4r): Likewise.
21689         (iwmmxt_wmaddsx): Likewise.
21690         (iwmmxt_wmaddux): Likewise.
21691         (iwmmxt_wmaddsn): Likewise.
21692         (iwmmxt_wmaddun): Likewise.
21693         (iwmmxt_wmulwsm): Likewise.
21694         (iwmmxt_wmulwum): Likewise.
21695         (iwmmxt_wmulsmr): Likewise.
21696         (iwmmxt_wmulumr): Likewise.
21697         (iwmmxt_wmulwsmr): Likewise.
21698         (iwmmxt_wmulwumr): Likewise.
21699         (iwmmxt_wmulwl): Likewise.
21700         (iwmmxt_wqmulm): Likewise.
21701         (iwmmxt_wqmulwm): Likewise.
21702         (iwmmxt_wqmulmr): Likewise.
21703         (iwmmxt_wqmulwmr): Likewise.
21704         (iwmmxt_waddbhusm): Likewise.
21705         (iwmmxt_waddbhusl): Likewise.
21706         (iwmmxt_wqmiabb): Likewise.
21707         (iwmmxt_wqmiabt): Likewise.
21708         (iwmmxt_wqmiatb): Likewise.
21709         (iwmmxt_wqmiatt): Likewise.
21710         (iwmmxt_wqmiabbn): Likewise.
21711         (iwmmxt_wqmiabtn): Likewise.
21712         (iwmmxt_wqmiatbn): Likewise.
21713         (iwmmxt_wqmiattn): Likewise.
21714         (iwmmxt_wmiabb): Likewise.
21715         (iwmmxt_wmiabt): Likewise.
21716         (iwmmxt_wmiatb): Likewise.
21717         (iwmmxt_wmiatt): Likewise.
21718         (iwmmxt_wmiabbn): Likewise.
21719         (iwmmxt_wmiabtn): Likewise.
21720         (iwmmxt_wmiatbn): Likewise.
21721         (iwmmxt_wmiattn): Likewise.
21722         (iwmmxt_wmiawbb): Likewise.
21723         (iwmmxt_wmiawbt): Likewise.
21724         (iwmmxt_wmiawtb): Likewise.
21725         (iwmmxt_wmiawtt): Likewise.
21726         (iwmmxt_wmiawbbn): Likewise.
21727         (iwmmxt_wmiawbtn): Likewise.
21728         (iwmmxt_wmiawtbn): Likewise.
21729         (iwmmxt_wmiawttn): Likewise.
21730         (iwmmxt_wmerge): Likewise.
21731         (iwmmxt_tandc<mode>3): Likewise.
21732         (iwmmxt_torc<mode>3): Likewise.
21733         (iwmmxt_torvsc<mode>3): Likewise.
21734         (iwmmxt_textrc<mode>3): Likewise.
21735         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
21736         (wmmxt_pack): Likewise.
21737         (wmmxt_mult_c1): Likewise.
21738         (wmmxt_mult_c2): Likewise.
21739         (wmmxt_alu_c1): Likewise.
21740         (wmmxt_alu_c2): Likewise.
21741         (wmmxt_alu_c3): Likewise.
21742         (wmmxt_transfer_c1): Likewise.
21743         (wmmxt_transfer_c2): Likewise.
21744         (wmmxt_transfer_c3): Likewise.
21745         (marvell_f_iwmmxt_wstr): Likewise.
21746         (marvell_f_iwmmxt_wldr): Likewise.
21748 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
21750         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
21752 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21754         Revert:
21755         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21756         * lra-constraints.c (need_for_split_p): Check call used hard regs
21757         living through calls.
21759         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
21760         call used regs for call insn.
21762 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
21764         PR target/57736
21765         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
21766         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
21768 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
21770         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
21772 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21774         * lra-constraints.c (need_for_split_p): Check call used hard regs
21775         living through calls.
21777 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
21779         PR target/57744
21780         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
21781         to tie with any other modes.  Eliminate Altivec vector mode tests,
21782         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
21783         code, to return 0 if testing MODE2 for a condition, if we've
21784         already tested MODE1 for the same condition.
21786 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21788         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
21789         layout.
21791 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21793         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21794         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
21796 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21798         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
21799         Define.
21800         (aarch64_symbolic_constant_p): Remove.
21801         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
21802         static.  Fix line length and white space.
21803         (aarch64_symbolic_constant_p): Remove.
21804         * config/aarch64/predicates.md (aarch64_valid_symref):
21805         Use aarch64_classify_symbol_expression.
21807 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21809         * config/arm/constraints.md (Ts): New constraint.
21810         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
21811         16-bit encodings.
21812         (compare_scc): Use "Ts" constraint for operand 0.
21813         (ior_scc_scc): Likewise.
21814         (and_scc_scc): Likewise.
21815         (and_scc_scc_nodom): Likewise.
21816         (ior_scc_scc_cmp): Likewise for operand 7.
21817         (and_scc_scc_cmp): Likewise.
21818         * config/arm/thumb2.md (thumb2_movsi_insn):
21819         Add alternatives for 16-bit encodings.
21820         (thumb2_movhi_insn): Likewise.
21821         (thumb2_movsicc_insn): Likewise.
21822         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
21823         (thumb2_negscc): Use "Ts" constraint.
21824         Move mvn instruction outside cond_exec block.
21825         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
21826         for 16-bit encodings.
21828 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21830         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
21831         encoding.
21832         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
21833         (mulsi3subsi): Likewise.
21834         (mulsidi3adddi): Likewise.
21835         (mulsidi3_v6): Likewise.
21836         (umulsidi3_v6): Likewise.
21837         (umulsidi3adddi_v6): Likewise.
21838         (smulsi3_highpart_v6): Likewise.
21839         (umulsi3_highpart_v6): Likewise.
21840         (mulhisi3tb): Likewise.
21841         (mulhisi3bt): Likewise.
21842         (mulhisi3tt): Likewise.
21843         (maddhisi4): Likewise.
21844         (maddhisi4tb): Likewise.
21845         (maddhisi4tt): Likewise.
21846         (maddhidi4): Likewise.
21847         (maddhidi4tb): Likewise.
21848         (maddhidi4tt): Likewise.
21849         (zeroextractsi_compare0_scratch): Likewise.
21850         (insv_zero): Likewise.
21851         (insv_t2): Likewise.
21852         (anddi_notzesidi_di): Likewise.
21853         (anddi_notsesidi_di): Likewise.
21854         (andsi_notsi_si): Likewise.
21855         (iordi_zesidi_di): Likewise.
21856         (xordi_zesidi_di): Likewise.
21857         (andsi_iorsi3_notsi): Likewise.
21858         (smax_0): Likewise.
21859         (smax_m1): Likewise.
21860         (smin_0): Likewise.
21861         (not_shiftsi): Likewise.
21862         (unaligned_loadsi): Likewise.
21863         (unaligned_loadhis): Likewise.
21864         (unaligned_loadhiu): Likewise.
21865         (unaligned_storesi): Likewise.
21866         (unaligned_storehi): Likewise.
21867         (extv_reg): Likewise.
21868         (extzv_t2): Likewise.
21869         (divsi3): Likewise.
21870         (udivsi3): Likewise.
21871         (arm_zero_extendhisi2addsi): Likewise.
21872         (arm_zero_extendqisi2addsi): Likewise.
21873         (compareqi_eq0): Likewise.
21874         (arm_extendhisi2_v6): Likewise.
21875         (arm_extendqisi2addsi): Likewise.
21876         (arm_movt): Likewise.
21877         (thumb2_ldrd): Likewise.
21878         (thumb2_ldrd_base): Likewise.
21879         (thumb2_ldrd_base_neg): Likewise.
21880         (thumb2_strd): Likewise.
21881         (thumb2_strd_base): Likewise.
21882         (thumb2_strd_base_neg): Likewise.
21883         (arm_negsi2): Add alternative for 16-bit encoding.
21884         (arm_one_cmplsi2): Likewise.
21886 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21888         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
21889         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
21890         (movdfcc): Likewise.
21891         * config/arm/vfp.md (*thumb2_movsf_vfp):
21892         Disable predication for arm_restrict_it.
21893         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
21894         (*thumb2_movdfcc_vfp): Likewise.
21895         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
21896         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
21897         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
21898         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
21899         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
21900         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
21901         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
21902         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
21903         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
21904         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
21905         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
21906         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
21907         Disable predication for arm_restrict_it.
21909 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
21911         * config/i386/bmiintrin.h (_bextr_u32): New.
21912         (_bextr_u64): Ditto.
21914 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
21916         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
21917         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
21918         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
21919         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
21920         * config/mips/n32-elf.h: ...this new file.
21922 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
21924         PR target/57224
21925         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
21926         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
21928 2013-06-27  Catherine Moore  <clm@codesourcery.com>
21930         * config/mips/mips-tables.opt: Regenerate.
21931         * config/mips/mips-cpus.def: Add m14ke and m14kec.
21932         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
21933         * doc/invoke.texi: Add -m14kc.
21935 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
21937         PR target/57623
21938         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
21939         constraints of operand 1 and 2.
21941         PR target/57623
21942         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
21943         to match RTL canonicalization.  Swap predicates and
21944         constraints of operand 1 and 2.
21946 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
21948         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
21949         Process OP_INOUT regs for splitting too.
21951 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
21953         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
21954         decl before the loop, initialize to NULL.
21955         (vectorizable_load): Initialize ptr_incr to NULL.
21957 2013-06-27  Martin Jambor  <mjambor@suse.cz>
21959         PR lto/57208
21960         * ipa-ref.h (ipa_maybe_record_reference): Declare.
21961         * ipa-ref.c (ipa_maybe_record_reference): New function.
21962         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
21963         * ipa-cp.c (create_specialized_node): Record potential references from
21964         aggvals.
21965         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
21967 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
21969         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
21970         parameter 'mode' of type 'enum machine_mode mode'; change to pass
21971         'mode' to force_reg.
21972         (aarch64_add_offset): Update calls to aarch64_force_temporary.
21973         (aarch64_expand_mov_immediate): Likewise.
21975 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
21977         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
21978         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
21980 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21982         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
21983         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21984         (struct machine_function): Add tbegin_p.
21985         (s390_canonicalize_comparison): Fold CC mode compares to
21986         conditional jump if possible.
21987         (s390_emit_jump): Return the emitted jump.
21988         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
21989         Handle CCRAWmode compares.
21990         (s390_option_override): Default to -mhtm if available.
21991         (s390_reg_clobbered_rtx): Handle floating point regs as well.
21992         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
21993         FPRs instead of df_regs_ever_live_p.
21994         (s390_optimize_nonescaping_tx): New function.
21995         (s390_init_frame_layout): Extend clobbered_regs array to cover
21996         FPRs as well.
21997         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
21998         (s390_expand_tbegin): New function.
21999         (enum s390_builtin): New enum definition.
22000         (code_for_builtin): New array definition.
22001         (s390_init_builtins): New function.
22002         (s390_expand_builtin): New function.
22003         (TARGET_INIT_BUILTINS): Define.
22004         (TARGET_EXPAND_BUILTIN): Define.
22005         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
22006         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
22007         (s390_alc_comparison): Likewise.
22008         * config/s390/s390-modes.def: Add CCRAWmode.
22009         * config/s390/s390.h (processor_flags): Add PF_TX.
22010         (TARGET_CPU_HTM): Define macro.
22011         (TARGET_HTM): Define macro.
22012         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
22013         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
22014         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22015         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
22016         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
22017         (TBEGIN_MASK, TBEGINC_MASK): New constants.
22018         ("*cc_to_int"): Move up.
22019         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
22020         constants other than 0.
22021         ("*ccraw_to_int"): New insn and splitter definition.
22022         ("tbegin", "tbegin_nofloat", "tbegin_retry")
22023         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
22024         ("tx_assist"): New expander.
22025         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
22026         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
22027         * config/s390/s390.opt: Add -mhtm option.
22028         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
22029         * config/s390/htmxlintrin.h: New file.
22030         * config/s390/htmintrin.h: New file.
22031         * config/s390/s390intrin.h: New file.
22032         * doc/extend.texi: Document htm builtins.
22033         * config.gcc: Add the new header files to extra_headers.
22035 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
22037         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
22038         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
22040 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
22041             Pat Haugen  <pthaugen@us.ibm.com>
22042             Peter Bergner  <bergner@vnet.ibm.com>
22044         * config/rs6000/power8.md: New.
22045         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
22046         setting for power8 entry.
22047         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
22048         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
22049         test for Power4/Power5 only.
22050         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
22051         support.
22052         (force_new_group): Adjust comment.
22053         * config/rs6000/rs6000.md: Include power8.md.
22055 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
22057         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
22058         * config/arm/arm-protos.h (arm_max_conditional_execute): New
22059         declaration.
22060         (tune_params): Update comment.
22061         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
22062         (arm_max_conditional_execute): New function.
22063         (thumb2_final_prescan_insn): Use max_insn_skipped and
22064         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
22066 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
22068         PR tree-optimization/57705
22069         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
22070         SSA_NAME step, provided that it is not defined inside the loop.
22071         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
22072         (get_initial_def_for_induction): Handle SSA_NAME IV step.
22074 2013-06-25  Martin Jambor  <mjambor@suse.cz>
22076         PR middle-end/57670
22077         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
22078         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
22079         calls in the dump.
22080         (ipa_note_param_call): Initialize member_ptr flag.
22081         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
22082         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
22083         (ipa_write_indirect_edge_info): Stream member_ptr flag.
22084         (ipa_read_indirect_edge_info): Likewise.
22086 2013-06-25  Richard Biener  <rguenther@suse.de>
22088         PR middle-end/56977
22089         * passes.c (init_optimization_passes): Move pass_fold_builtins
22090         and pass_dce earlier with -Og.
22092 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
22094         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
22095         <BIT_FIELD_REF>: Remove trailing TAB.
22096         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
22097         remove blank line.
22099 2013-06-24  Martin Jambor  <mjambor@suse.cz>
22101         PR tree-optimization/57358
22102         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
22103         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
22104         (ipa_analyze_params_uses): Generate pessimistic info when true.
22106 2013-06-24  Martin Jambor  <mjambor@suse.cz>
22108         PR tree-optimization/57539
22109         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
22110         global.inlined_to of the new node to it.  All callers changed.
22111         * ipa-inline-transform.c (clone_inlined_nodes): New variable
22112         inlining_into, pass it to cgraph_clone_node.
22113         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
22114         ipa_free_edge_args_substructures.
22115         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
22116         rdesc linked list.  Do not assert rdesc edges have inlined caller.
22117         Assert we have found an rdesc in the rdesc list.
22119 2013-06-24  Richard Biener  <rguenther@suse.de>
22121         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
22122         (pointer_set_lookup): Declare.
22123         (class pointer_map): New template class implementing a
22124         generic pointer to T map.
22125         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
22126         pointer_map<T>::contains, pointer_map<T>::insert,
22127         pointer_map<T>::traverse): New functions.
22128         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
22129         (pointer_set_lookup): New function.
22130         (pointer_set_contains): Use pointer_set_lookup.
22131         (pointer_set_insert): Likewise.
22132         (insert_aux): Remove.
22133         (struct pointer_map_t): Embed a pointer_set_t.
22134         (pointer_map_create): Adjust.
22135         (pointer_map_destroy): Likewise.
22136         (pointer_map_contains): Likewise.
22137         (pointer_map_insert): Likewise.
22138         (pointer_map_traverse): Likewise.
22139         * tree-streamer.h (struct streamer_tree_cache_d): Use a
22140         pointer_map<unsigned> instead of a pointer_map_t.
22141         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
22142         (streamer_tree_cache_lookup): Likewise.
22143         (streamer_tree_cache_create): Likewise.
22144         (streamer_tree_cache_delete): Likewise.
22145         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
22146         pointer_map<unsigned> instead of a pointer_map_t.
22147         (lto_init_tree_ref_encoder): Adjust.
22148         (lto_destroy_tree_ref_encoder): Likewise.
22149         * lto-section-out.c (lto_output_decl_index): Likewise.
22150         (lto_record_function_out_decl_state): Likewise.
22151         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
22153 2013-06-24  Richard Biener  <rguenther@suse.de>
22155         PR tree-optimization/57488
22156         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
22158 2013-06-24  Alan Modra  <amodra@gmail.com>
22160         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
22161         (gen_easy_altivec_constant): Likewise.
22162         * config/rs6000/predicates.md (easy_vector_constant_add_self,
22163         easy_vector_constant_msb): Likewise.
22165 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
22167         PR target/57688
22168         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
22169         add missing return true.
22171 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
22173         PR target/52483
22174         * config/sh/predicates.md (general_extend_operand): Invoke
22175         general_movsrc_operand for memory operands.
22176         (general_movsrc_operand): Allow reg+reg addressing, do not use
22177         general_operand for memory operands.
22179 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
22181         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
22182         when current target options does not apply.
22183         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
22184         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
22185         * config/i386/bmiintrin.h: Pass appropriate target
22186         attributes to header.
22187         * config/i386/mmintrin.h: Ditto.
22188         * config/i386/nmmintrin.h: Ditto.
22189         * config/i386/avx2intrin.h: Ditto.
22190         * config/i386/fxsrintrin.h: Ditto.
22191         * config/i386/tbmintrin.h: Ditto.
22192         * config/i386/xsaveintrin.h: Ditto.
22193         * config/i386/f16cintrin.h: Ditto.
22194         * config/i386/xtestintrin.h: Ditto.
22195         * config/i386/xsaveoptintrin.h: Ditto.
22196         * config/i386/bmi2intrin.h: Ditto.
22197         * config/i386/lzcntintrin.h: Ditto.
22198         * config/i386/smmintrin.h: Ditto.
22199         * config/i386/wmmintrin.h: Ditto.
22200         * config/i386/x86intrin.h: Remove all header include guards.
22201         * config/i386/prfchwintrin.h: Ditto.
22202         * config/i386/pmmintrin.h: Ditto.
22203         * config/i386/tmmintrin.h: Ditto.
22204         * config/i386/xmmintrin.h: Ditto.
22205         * config/i386/popcntintrin.h: Ditto.
22206         * config/i386/rdseedintrin.h: Ditto.
22207         * config/i386/ammintrin.h: Ditto.
22208         * config/i386/emmintrin.h: Ditto.
22209         * config/i386/immintrin.h: Remove all header include guards.
22210         * config/i386/fma4intrin.h: Ditto.
22211         * config/i386/lwpintrin.h: Ditto.
22212         * config/i386/xopintrin.h: Ditto.
22213         * config/i386/ia32intrin.h: Ditto.
22214         * config/i386/avxintrin.h: Ditto.
22215         * config/i386/rtmintrin.h: Ditto.
22216         * config/i386/fmaintrin.h: Ditto.
22217         * config/i386/mm3dnow.h: Ditto.
22219 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
22221         * common/config/i386/i386-common.c: Handle LZCNT.
22223 2013-06-22  Andi Kleen  <ak@linux.intel.com>
22225         * doc/extend.texi: Use __atomic_store_n instead of
22226         __atomic_store in HLE example.
22228 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
22230         * config/sh/sh.c: Remove <cstdlib> workaround.
22232 2013-06-21  Andi Kleen  <ak@linux.intel.com>
22234         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
22236 2013-06-21  Andi Kleen  <ak@linux.intel.com>
22238         * doc/extend.texi: Document that __atomic_clear and
22239           __atomic_test_and_set should only be used with bool.
22241 2013-06-20  Jan Hubicka  <jh@suse.cz>
22243         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
22244         types_same_for_odr.
22245         * tree.c (decls_same_for_odr): New function.
22246         (same_for_edr): New function.
22247         (types_same_for_odr): New function.
22248         (get_binfo_at_offset): Use it.
22249         * tree.h (types_same_for_odr): Declare.
22251 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
22252             Jason Merrill  <jason@redhat.com>
22254         * system.h: Include <cstdlib> as well as <stdlib.h>.
22256 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
22258         PR target/57655
22259         * config/i386/i386.c (construct_container): Report error if
22260         long double is used with disabled x87 float returns.
22262 2013-06-20  Jan Hubicka  <jh@suse.cz>
22264         * lto-cgraph.c (input_symtab): Do not set cgraph state.
22266 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
22268         PR rtl-optimization/57425
22269         PR rtl-optimization/57569
22270         * alias.c (write_dependence_p): Remove parameters mem_mode and
22271         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
22272         Changed all callers.
22273         (canon_anti_dependence): Get comments and semantics in sync.
22274         Add parameter mem_canonicalized.  Changed all callers.
22275         * rtl.h (canon_anti_dependence): Update prototype.
22277 2013-06-20  Richard Biener  <rguenther@suse.de>
22279         * data-streamer-in.c (streamer_read_uhwi): Optimize single
22280         byte case, inline streamer_read_uchar and defer section
22281         overrun check.
22283 2013-06-20  Richard Biener  <rguenther@suse.de>
22285         PR tree-optimization/57584
22286         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
22287         SSA names into the expanded expression that take part in
22288         abnormal coalescing.
22290 2013-06-19  Sharad Singhai  <singhai@google.com>
22292         * gcov.c (print_usage): Handle new option.
22293         (process_args): Ditto.
22294         (get_gcov_intermediate_filename): New function.
22295         (output_intermediate_file): New function.
22296         (output_gcov_file): New function
22297         (generate_results): Handle new option.
22298         (release_function): Relase demangled name.
22299         (read_graph_file): Handle demangled name.
22300         (output_lines): Ditto.
22301         * doc/gcov.texi: Document gcov intermediate format.
22303 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
22305         PR bootstrap/57604
22306         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
22307         (lra_emit_add): Use the functions.  Add comment about Y as an
22308         address segment.
22310 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
22312         PR driver/57652
22313         * collect2.c (collect_atexit): New.
22314         (collect_exit): Delete.
22315         (main): Register collect_atexit with atexit.
22316         (collect_wait): Change collect_exit to exit.
22317         (do_wait): Same.
22318         * collect2.h (collect_exit): Delete.
22319         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
22321 2013-06-19  Wei Mi  <wmi@google.com>
22323         PR rtl-optimization/57518
22324         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
22325         if regno is used in paradoxical subreg.
22326         (update_equiv_regs): Check pdx_subregs[regno] before
22327         set a reg to be equivalent with a mem.
22329 2013-06-19  Matthias Klose  <doko@ubuntu.com>
22331         PR driver/57651
22332         * file-find.h (find_a_file): Add a mode parameter.
22333         * file-find.c (find_a_file): Likewise.
22334         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
22335         with X_OK for the executables.
22336         * collect2.c (main): Call find_a_file with X_OK.
22338 2013-06-19  Steve Ellcey  <sellcey@mips.com>
22340         PR target/56942
22341         * config/mips/mips.md (casesi_internal_mips16_<mode>):
22342         Use NEXT_INSN instead of next_real_insn.
22344 2013-06-19  Jan Hubicka  <jh@suse.cz>
22346         * cgraph.h (const_value_known_p): Replace by ...
22347         (ctor_for_folding): .. this one.
22348         * cgraphunit.c (process_function_and_variable_attributes): Use it.
22349         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
22350         * expr.c (expand_expr_real_1): Likewise.
22351         (string_constant): Likewise.
22352         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
22353         * ipa.c (process_references): Likewise.
22354         (symtab_remove_unreachable_nodes): Likewise.
22355         * ipa-inline-analysis.c (param_change_prob): Likewise.
22356         * gimple-fold.c (canonicalize_constructor_val): Likewise.
22357         (get_base_constructor): Likwise.
22358         * varpool.c (varpool_remove_node): Likewise.
22359         (varpool_remove_initializer): LIkewise.
22360         (dump_varpool_node): LIkwise.
22361         (const_value_known_p): Rewrite to ...
22362         (ctor_for_folding): ... this one.
22364 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
22366         PR driver/57651
22367         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
22368         PERSONALITY in $PATH derived prefixes.
22370 2013-06-19  Jeff Law  <law@redhat.com>
22372         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
22373         in comment.
22375         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
22376         (simplify_bitwise_binary): Use it to simpify certain binary ops on
22377         booleans.
22379 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
22381         * config/arm/vfp.md: Move VFP instruction classification documentation
22382         to ...
22383         * config/arm/arm.md: ... here.  Update instruction classification
22384         documentation.
22386 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
22388         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
22389         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
22390         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
22392 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
22394         PR target/57609
22395         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22396         with NEXT_INSN.  Use tablejump_p to check for jump table data
22397         insns.
22399 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
22401         PR c++/56544
22402         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
22403         that now in C++ the value is correct per the C++ standards.
22405 2013-06-19  Richard Biener  <rguenther@suse.de>
22407         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
22408         for global context.
22410 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22412         Revert:
22413         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22415         PR target/57609
22416         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22417         with next_active_insn.
22419 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
22421         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
22422         functions are inlined during failures to flag an error.
22423         * tree-inline.c (expand_call_inline): Allow the error to be flagged
22424         in early inline pass.
22426 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22428         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
22429         in comments.
22431 2013-06-18  Julian Brown  <julian@codesourcery.com>
22433         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
22434         Permit virtual register pre-reload if !strict.
22435         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
22436         change.
22437         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
22438         prototype.
22439         * config/arm/neon.md (movmisalign<mode>): Use
22440         neon_perm_struct_or_reg_operand instead of
22441         neon_struct_or_register_operand.
22442         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
22443         neon_permissive_struct_operand instead of neon_struct_operand.
22444         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
22445         neon_vector_mem_operand.
22446         * config/arm/predicates.md (neon_struct_operand): Adjust call to
22447         neon_vector_mem_operand.
22448         (neon_permissive_struct_operand): New.
22449         (neon_struct_or_register_operand): Rename to...
22450         (neon_perm_struct_or_reg_operand): This. Adjust call to
22451         neon_vector_mem_operand.
22453 2013-06-18  Richard Biener  <rguenther@suse.de>
22455         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
22456         * lto-streamer.h: Include pointer-set.h.
22457         (struct lto_decl_slot): Remove.
22458         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
22459         Remove next_index entry.
22460         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
22461         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
22462         (lto_init_tree_ref_encoder): Adjust.
22463         (lto_destroy_tree_ref_encoder): Likewise.
22464         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
22465         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
22466         (lto_output_decl_index): Adjust.
22467         (lto_new_out_decl_state): Likewise.
22468         (lto_record_function_out_decl_state): Likewise.
22469         * lto-streamer-out.c (copy_function): Likewise.
22471 2013-06-18  Richard Biener  <rguenther@suse.de>
22473         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
22474         * cgraphunit.c: Include cfgloop.h.
22475         (init_lowered_empty_function): Initialize the loop tree.
22476         (assemble_thunk): Insert new BBs into loops.
22478 2013-06-18  Richard Biener  <rguenther@suse.de>
22480         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
22481         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
22482         the map from cache entry to cache index optional.
22483         (streamer_tree_cache_replace_tree): Adjust accordingly.
22484         (streamer_tree_cache_append): Likewise.
22485         (streamer_tree_cache_delete): Likewise.
22486         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
22487         streamer cache map from cache entry to cache index.
22488         * lto-streamer-out.c (create_output_block): Adjust.
22490 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
22492         * config/arm/arm.md (attribute "insn"): Move multiplication and
22493         division attributes to...
22494         (attribute "type"): ... here.  Remove mult.
22495         (attribute "mul32"): New attribute.
22496         (attribute "mul64"): Add umaal.
22497         (*arm_mulsi3): Update attributes.
22498         (*arm_mulsi3_v6): Likewise.
22499         (*thumb_mulsi3): Likewise.
22500         (*thumb_mulsi3_v6): Likewise.
22501         (*mulsi3_compare0): Likewise.
22502         (*mulsi3_compare0_v6): Likewise.
22503         (*mulsi_compare0_scratch): Likewise.
22504         (*mulsi_compare0_scratch_v6): Likewise.
22505         (*mulsi3addsi): Likewise.
22506         (*mulsi3addsi_v6): Likewise.
22507         (*mulsi3addsi_compare0): Likewise.
22508         (*mulsi3addsi_compare0_v6): Likewise.
22509         (*mulsi3addsi_compare0_scratch): Likewise.
22510         (*mulsi3addsi_compare0_scratch_v6): Likewise.
22511         (*mulsi3subsi): Likewise.
22512         (*mulsidi3adddi): Likewise.
22513         (*mulsi3addsi_v6): Likewise.
22514         (*mulsidi3adddi_v6): Likewise.
22515         (*mulsidi3_nov6): Likewise.
22516         (*mulsidi3_v6): Likewise.
22517         (*umulsidi3_nov6): Likewise.
22518         (*umulsidi3_v6): Likewise.
22519         (*umulsidi3adddi): Likewise.
22520         (*umulsidi3adddi_v6): Likewise.
22521         (*smulsi3_highpart_nov6): Likewise.
22522         (*smulsi3_highpart_v6): Likewise.
22523         (*umulsi3_highpart_nov6): Likewise.
22524         (*umulsi3_highpart_v6): Likewise.
22525         (mulhisi3): Likewise.
22526         (*mulhisi3tb): Likewise.
22527         (*mulhisi3bt): Likewise.
22528         (*mulhisi3tt): Likewise.
22529         (maddhisi4): Likewise.
22530         (*maddhisi4tb): Likewise.
22531         (*maddhisi4tt): Likewise.
22532         (maddhidi4): Likewise.
22533         (*maddhidi4tb): Likewise.
22534         (*maddhidi4tt): Likewise.
22535         (divsi3): Likewise.
22536         (udivsi3): Likewise.
22537         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
22538         (thumb2_mulsi_short_compare0): Likewise.
22539         (thumb2_mulsi_short_compare0_scratch): Likewise.
22540         * config/arm/arm1020e.md (1020mult1): Update attribute change.
22541         (1020mult2): Likewise.
22542         (1020mult3): Likewise.
22543         (1020mult4): Likewise.
22544         (1020mult5): Likewise.
22545         (1020mult6): Likewise.
22546         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
22547         change.
22548         (cortex_a15_mult64): Likewise.
22549         (cortex_a15_sdiv): Likewise.
22550         (cortex_a15_udiv): Likewise.
22551         * config/arm/arm1026ejs.md (mult1): Update attribute change.
22552         (mult2): Likewise.
22553         (mult3): Likewise.
22554         (mult4): Likewise.
22555         (mult5): Likewise.
22556         (mult6): Likewise.
22557         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
22558         (pj4_ir_div): Likewise.
22559         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
22560         (11_mult2): Likewise.
22561         (11_mult3): Likewise.
22562         (11_mult4): Likewise.
22563         (11_mult5): Likewise.
22564         (11_mult6): Likewise.
22565         (11_mult7): Likewise.
22566         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
22567         (cortex_a8_mla): Likewise.
22568         (cortex_a8_mull): Likewise.
22569         (cortex_a8_smulwy): Likewise.
22570         (cortex_a8_smlald): Likewise.
22571         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
22572         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
22573         (cortex_r4_mul_3): Likewise.
22574         (cortex_r4_mla_4): Likewise.
22575         (cortex_r4_mla_3): Likewise.
22576         (cortex_r4_smlald): Likewise.
22577         (cortex_r4_mull): Likewise.
22578         (cortex_r4_sdiv): Likewise.
22579         (cortex_r4_udiv): Likewise.
22580         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
22581         (cortex_a7_idiv): Likewise.
22582         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
22583         (9_mult2): Likewise.
22584         (9_mult3): Likewise.
22585         (9_mult4): Likewise.
22586         (9_mult5): Likewise.
22587         (9_mult6): Likewise.
22588         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
22589         (cortex_a53_sdiv): Likewise.
22590         (cortex_a53_udiv): Likewise.
22591         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
22592         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
22593         (mp626_mult2): Likewise.
22594         (mp626_mult3): Likewise.
22595         (mp626_mult4): Likewise.
22596         * config/arm/fa526.md (526_mult1): Update attribute change.
22597         (526_mult2): Likewise.
22598         * config/arm/arm-generic.md (mult): Update attribute change.
22599         (mult_ldsched_strongarm): Likewise.
22600         (mult_ldsched): Likewise.
22601         (multi_cycle): Likewise.
22602         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
22603         * config/arm/fa606te.md (606te_mult1): Update attribute change.
22604         (606te_mult2): Likewise.
22605         (606te_mult3): Likewise.
22606         (606te_mult4): Likewise.
22607         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
22608         (cortex_a9_mac16): Likewise.
22609         (cortex_a9_multiply): Likewise.
22610         (cortex_a9_mac): Likewise.
22611         (cortex_a9_multiply_long): Likewise.
22612         * config/arm/fa626te.md (626te_mult1): Update attribute change.
22613         (626te_mult2): Likewise.
22614         (626te_mult3): Likewise.
22615         (626te_mult4): Likewise.
22617 2013-06-18  Richard Biener  <rguenther@suse.de>
22619         PR lto/57334
22620         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
22622 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22624         PR target/57609
22625         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22626         with next_active_insn.
22628 2013-06-18  Alan Modra  <amodra@gmail.com>
22630         * config/rs6000/rs6000.h (enum data_align): New.
22631         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
22632         (DATA_ABI_ALIGNMENT): Define.
22633         (CONSTANT_ALIGNMENT): Correct comment.
22634         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
22635         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
22637 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
22639         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
22640         ATTRIBUTE_UNUSED marking.
22642 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
22644         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
22645         alternative and update.
22646         (aarch64_dup_lanedi): Delete.
22647         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
22648         * config/aarch64/aarch64-simd-builtins.def: Update.
22650 2013-06-17  Richard Biener  <rguenther@suse.de>
22652         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
22653         (lto_input_scc): Declare.
22654         (lto_input_tree_1): Likewise.
22655         (struct lto_stats_d): Add num_tree_bodies_output and
22656         num_pickle_refs_output.
22657         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
22658         (lto_read_tree_1): Split out from ...
22659         (lto_read_tree): ... this.
22660         (lto_input_scc): New function.
22661         (lto_input_tree_1): Split out from ...
22662         (lto_input_tree): ... this.  Handle LTO_tree_scc.
22663         (lto_data_in_create): Create the streamer cache without hashes.
22664         * lto-streamer-out.c (create_output_block): Create the streamer
22665         cache with hashes when not doing WPA.
22666         (lto_write_tree_1): Split out from ...
22667         (lto_write_tree): ... this.
22668         (get_symbol_initial_value): New function.
22669         (lto_output_tree_1): Split out from ...
22670         (lto_output_tree): ... this.  Write trees as series of SCCs
22671         using a DFS walk via DFS_write_tree.
22672         (struct sccs, struct scc_entry): New types.
22673         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
22674         (DFS_write_tree_body): New function.
22675         (DFS_write_tree): Likewise.
22676         (hash_tree): Likewise.
22677         (scc_entry_compare): Likewise.
22678         (hash_scc): Likewise.
22679         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
22680         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
22681         TREE_CHAIN as regular reference.
22682         (streamer_read_integer_cst): Remove.
22683         (streamer_get_pickled_tree): Adjust.
22684         * tree-streamer-out.c (streamer_write_chain): Disable streaming
22685         of DECL_EXTERNALs in BLOCK_VARS for now.
22686         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
22687         reference.
22688         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
22689         Add hash value argument and record that if hashes are recorded
22690         in the cache.
22691         (streamer_tree_cache_insert_1): Adjust.
22692         (streamer_tree_cache_insert): Likewise.
22693         (streamer_tree_cache_insert_at): Rename to ...
22694         (streamer_tree_cache_replace_tree): ... this and adjust.
22695         (streamer_tree_cache_append): Adjust.
22696         (record_common_node): Likewise.
22697         (streamer_tree_cache_create): Add argument whether to
22698         record hash values together with trees.
22699         (streamer_tree_cache_delete): Adjust.
22700         * tree-streamer.h (struct streamer_tree_cache_d): Add
22701         vector of hashes.
22702         (streamer_read_integer_cst): Remove.
22703         (streamer_tree_cache_insert): Adjust.
22704         (streamer_tree_cache_append): Likewise.
22705         (streamer_tree_cache_insert_at): Rename to ...
22706         (streamer_tree_cache_replace_tree): ... this and adjust.
22707         (streamer_tree_cache_create): Add argument whether to record hashes.
22708         (streamer_tree_cache_get): Rename to ...
22709         (streamer_tree_cache_get_tree): ... this.
22710         (streamer_tree_cache_get_hash): New function.
22711         * tree.c (cache_integer_cst): New function.
22712         * tree.h (cache_integer_cst): Declare.
22713         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
22714         * lto-symtab.c (lto_varpool_replace_node): Only release
22715         DECL_INITIAL of non-prevailing decls.
22716         * varpool.c (varpool_remove_initializer): Do not release
22717         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
22719 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
22721         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
22722         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
22723         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
22724         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
22725         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
22726         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
22727         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
22728         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
22729         instead of TARGET_64BIT.
22730         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
22731         Require ISA_HAS_<D>DIV.
22733 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
22735         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
22736         (mips*-*-linux*): Move default with_llsc setting to where other
22737         defaults are set.
22738         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
22739         with_arch block.
22740         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
22741         Likewise.  Remove default with_tune setting.  Move default float
22742         setting to its own block.  Handle with_llsc in the same block as above.
22744 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
22746         PR rtl-optimization/57425
22747         PR rtl-optimization/57569
22748         * alias.c (write_dependence_p): Add new parameters mem_mode,
22749         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
22750         Changed all callers.
22751         (canon_anti_dependence): New function.
22752         * cse.c (check_dependence): Use canon_anti_dependence.
22753         * cselib.c (cselib_invalidate_mem): Likewise.
22754         * rtl.h (canon_anti_dependence): Declare.
22756 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
22758         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
22759         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
22760         ".set mips3" for 64-bit targets.
22762 2013-06-15  Dehao Chen  <dehao@google.com>
22764         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
22765         * gimple-low.c (gimple_check_call_matching_types): Likewise.
22766         (gimple_check_call_args): Likewise.
22767         * value-prof.c (check_ic_target): Likewise.
22768         * ipa-inline.c (early_inliner): Likewise.
22769         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
22770         * cgraph.c (cgraph_create_edge_1): Likewise.
22771         (cgraph_make_edge_direct): Likewise.
22773 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22775         PR target/57615
22776         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
22777         rs6000_output_move_128bit to handle emitting quad memory
22778         operations.  Set attribute length to 8 bytes.
22780 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
22782         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
22783         New pattern.
22784         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
22785         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
22786         (aarch64_<su>mlsl<mode>): Likewise.
22788 2013-06-14  Mike Stump  <mikestump@comcast.net>
22790         * Makefile.in (TARGET_H): Add insn-codes.h.
22792 2013-06-14  Alan Modra  <amodra@gmail.com>
22794         PR middle-end/57134
22795         PR middle-end/57586
22796         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
22797         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
22798         bitfield expansion when EXPAND_MEMORY.
22799         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
22801 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
22803         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
22804         test for clearing quad memory on 32-bit later.
22806 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
22808         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
22809         (fold_negate_expr): Likewise.
22810         (fold_real_zero_addition_p): Handle vectors.
22811         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
22813 2013-06-14  Alan Modra  <amodra@gmail.com>
22815         * varasm.c (force_const_mem): Revert 2013-06-07 change.
22817 2013-06-13  Jan Hubicka  <jh@suse.cz>
22819         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
22820         Local comdats are not externally visible.
22821         * symtab.c (dump_symtab_base): Dump externally visible.
22822         (verify_symtab_base): Verify back links in the symtab hash.
22824 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
22826         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
22827         CONVERT_EXPR as equal nodes.
22829 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
22831         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
22833 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
22835         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
22836         Generalize to complex and vector.
22837         * tree.c (build_all_ones_cst): New function.
22838         * tree.h (build_all_ones_cst): Declare it.
22840 2013-06-13  Alan Modra  <amodra@gmail.com>
22842         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
22843         * config/rs6000/rs6000.md (signbittf2): New insn.
22844         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
22845         (abstf2_internal, cmptf_internal2): Likewise.
22846         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
22848 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22849             Pat Haugen  <pthaugen@us.ibm.com>
22850             Peter Bergner  <bergner@vnet.ibm.com>
22852         * config/rs6000/rs6000.c (emit_load_locked): Add support for
22853         power8 byte, half-word, and quad-word atomic instructions.
22854         (emit_store_conditional): Likewise.
22855         (rs6000_expand_atomic_compare_and_swap): Likewise.
22856         (rs6000_expand_atomic_op): Likewise.
22858         * config/rs6000/sync.md (larx): Add new modes for power8.
22859         (stcx): Likewise.
22860         (AINT): New mode iterator to include TImode as well as normal
22861         integer modes on power8.
22862         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
22863         that VSX registers are not considered.  Use AINT mode iterator
22864         instead of INT1 to allow inclusion of quad word atomic operations
22865         on power8.
22866         (load_locked<mode>): Likewise.
22867         (store_conditional<mode>): Likewise.
22868         (atomic_compare_and_swap<mode>): Likewise.
22869         (atomic_exchange<mode>): Likewise.
22870         (atomic_nand<mode>): Likewise.
22871         (atomic_fetch_<fetchop_name><mode>): Likewise.
22872         (atomic_nand_fetch<mode>): Likewise.
22873         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
22874         each type.
22875         (ATOMIC): On power8, add QImode, HImode modes.
22876         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
22877         modes that promote to SImode.
22878         (load_lockedti): Convert TImode arguments to PTImode, so that we
22879         get a guaranteed even/odd register pair.
22880         (load_lockedpti): Likewise.
22881         (store_conditionalti): Likewise.
22882         (store_conditionalpti): Likewise.
22884         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
22885         atomic load/store instructions.
22886         (HSI): Likewise.
22888 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
22890         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
22891         loads.
22892         (insn_count): New attribute, with most cases extracted from...
22893         (length): ...here.  Redefine most cases in terms of insn_count.
22894         (single_insn): Delete.
22895         (can_delay): Use insn_count to check for single instructions.
22896         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
22897         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
22898         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
22899         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
22900         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
22901         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
22902         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
22903         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
22904         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
22905         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
22906         rather than "length".
22907         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
22908         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
22909         Use "insn_count" rather than "length".
22910         * config/mips/mips-dsp.md
22911         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
22912         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
22913         length attributes.
22915 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
22917         PR tree-optimization/57361
22918         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
22920 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
22922         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
22923         to split.
22924         (aarch64_simd_combine<mode>): New instruction expansion.
22925         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
22926         function prototype.
22927         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
22928         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
22930 2013-06-12  Jan Hubicka  <jh@suse.cz>
22932         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
22933         decl has when in streaming stage.
22934         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
22935         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
22937 2013-06-12  Roland Stigge  <stigge@antcom.de>
22939         PR target/57578
22940         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
22942 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
22944         PR tree-optimization/57537
22945         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
22946         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
22948 2013-06-12  Richard Biener  <rguenther@suse.de>
22950         * data-streamer.h (streamer_write_char_stream): CSE
22951         obs->current_pointer.
22952         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
22953         streamer_write_char_stream manually and optimize the resulting loop.
22954         (streamer_write_hwi_stream): Likewise.
22956 2013-06-12  Jan Hubicka  <jh@suse.cz>
22958         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
22959         * cgraph.h (varpool_create_empty_node): Declare.
22960         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
22961         duplicated nodes.
22962         * symtab.c (symtab_unregister_node): Be lax about missin entries
22963         in node hash.
22964         (symtab_get_node): Update comment.
22965         * varpool.c (varpool_create_empty_node): Break out from ...
22966         (varpool_node_for_decl): ... here.
22967         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
22969 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
22971         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
22972         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
22973         part.  Use straight-line flow at the end.
22974         <COMPONENT_REF>: Remove superfluous else.
22975         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
22977 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
22979         PR target/56564
22980         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
22981         target hook even for !TREE_PUBLIC decls.  If no resolution info
22982         is available, return false for common and external decls.
22984 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22986         * config/rl78/constraints.md (U): New constraint.
22987         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
22988         valloc attribute.
22990 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
22992         PR target/57589
22993         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
22994         to allow returning address to AT_PLATFORM name.
22996 2013-06-11  Jan Hubicka  <jh@suse.cz>
22998         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
22999         * cgraph.h (symtab_node_base): Add weakref flag.
23000         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
23001         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
23002         (output_weakrefs): Use weakref flag.
23003         * fold-const.c (simple_operand_p): Handle WEAK.
23004         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
23005         * ipa.c (varpool_externally_visible_p): Drop weakref.
23006         (function_and_variable_visibility): Update comment; fix weakref
23007         sanity checks; do not clear DECL_WEAK on them.
23008         * lto-cgraph.c (lto_output_node): update.
23009         (lto_output_varpool_node): Update.
23010         (input_overwrite_node): Update.
23011         (input_node): Update.
23012         (input_varpool_node): Update.
23013         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
23014         (lto_symtab_merge_symbols): Add sanity check.
23015         (lto_symtab_prevailing_decl): Do not special case weakrefs.
23016         * passes.c (rest_of_decl_compilation): Set static flag, too.
23017         * symtab.c (dump_symtab_base): Dump weakref.
23018         (verify_symtab_base): Sanity check weakrefs.
23019         (symtab_make_decl_local): Remove duplicated code.
23020         (symtab_alias_ultimate_target): Simplify.
23021         * varpool.c (varpool_create_variable_alias): Set weakref flag.
23023 2013-06-11  Tom de Vries  <tom@codesourcery.com>
23025         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
23026         sequence_vect == NULL.
23028 2013-06-11  DJ Delorie  <dj@redhat.com>
23030         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
23031         (rl78_unwind_word_mode): New.
23033 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
23035         * final.c (debug_prefix_maps): Make static.
23037 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
23039         * function.c (initial_trampoline): Remove stray copy.
23041 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
23043         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
23045 2013-06-11  Martin Jambor  <mjambor@suse.cz>
23047         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
23048         within bounds at the beginning of the function.
23050 2013-06-11  Alan Modra  <amodra@gmail.com>
23052         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
23053         reporting.
23054         (get_named_section): Don't NULL !DECL_P decl.
23056 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
23058         * doc/invoke.texi (core-avx2): Document.
23059         (slm): Likewise.
23060         (atom): Updated with MOVBE.
23062 2013-06-11  Richard Biener  <rguenther@suse.de>
23064         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
23066 2013-06-11  Anton Blanchard  <anton@samba.org>
23068         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
23069         correct shift value in little-endian mode.
23071 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
23073         PR target/56564
23074         * varasm.c (get_variable_align): Move #endif to the right place.
23076 2013-06-10  Cary Coutant  <ccoutant@google.com>
23078         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
23079         for hash so that hash table traversal order is deterministic.
23081 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
23082             Pat Haugen  <pthaugen@us.ibm.com>
23083             Peter Bergner  <bergner@vnet.ibm.com>
23085         * config/rs6000/vector.md (GPR move splitter): Do not split moves
23086         of vectors in GPRS if they are direct moves or quad word load or
23087         store moves.
23089         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
23090         declaration.
23091         (direct_move_p): Likewise.
23092         (quad_load_store_p): Likewise.
23094         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
23095         classes into bins based on the physical register type.
23096         (reg_class_to_reg_type): Likewise.
23097         (IS_STD_REG_TYPE): Likewise.
23098         (IS_FP_VECT_REG_TYPE): Likewise.
23099         (reload_fpr_gpr): Arrays to determine what insn to use if we can
23100         use direct move instructions.
23101         (reload_gpr_vsx): Likewise.
23102         (reload_vsx_gpr): Likewise.
23103         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
23104         information that is a simplification of register classes.  Also
23105         precalculate direct move reload helpers.
23106         (direct_move_p): New function to return true if the operation can
23107         be done as a direct move instruciton.
23108         (quad_load_store_p): New function to return true if the operation
23109         is a quad memory operation.
23110         (rs6000_legitimize_address): If quad memory, only allow register
23111         indirect for TImode addresses.
23112         (rs6000_legitimate_address_p): Likewise.
23113         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
23114         (rs6000_reload_register_type): Likewise.
23115         (register_to_reg_type): Return register type.
23116         (rs6000_secondary_reload_simple_move): New helper function for
23117         secondary reload and secondary memory needed to identify anything
23118         that is a simple move, and does not need reloading.
23119         (rs6000_secondary_reload_direct_move): New helper function for
23120         secondary reload to identify cases that can be done with several
23121         instructions via the direct move instructions.
23122         (rs6000_secondary_reload_move): New helper function for secondary
23123         reload to identify moves between register types that can be done.
23124         (rs6000_secondary_reload): Add support for quad memory operations
23125         and for direct move.
23126         (rs6000_secondary_memory_needed): Likewise.
23127         (rs6000_debug_secondary_memory_needed): Change argument names.
23128         (rs6000_output_move_128bit): New function to return the move to
23129         use for 128-bit moves, including knowing about the various
23130         limitations of quad memory operations.
23132         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
23133         memory operations.  call rs6000_output_move_128bit for the actual
23134         instruciton(s) to generate.
23135         (vsx_movti_64bit): Likewise.
23137         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
23138         (UNSPEC_P8V_MTVSRWZ): Likewise.
23139         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
23140         (UNSPEC_P8V_MTVSRD): Likewise.
23141         (UNSPEC_P8V_XXPERMDI): Likewise.
23142         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
23143         (UNSPEC_FUSION_GPR): Likewise.
23144         (FMOVE128_GPR): New iterator for direct move.
23145         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
23146         (f32_sv): Likewise.
23147         (f32_dm): Likewise.
23148         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
23149         loads and direct move instructions.
23150         (zero_extendsidi2_lfiwzx): Likewise.
23151         (extendsidi2_lfiwax): Likewise.
23152         (extendsidi2_nocell): Likewise.
23153         (floatsi<mode>2_lfiwax): Likewise.
23154         (lfiwax): Likewise.
23155         (floatunssi<mode>2_lfiwzx): Likewise.
23156         (lfiwzx): Likewise.
23157         (fix_trunc<mode>_stfiwx): Likewise.
23158         (fixuns_trunc<mode>_stfiwx): Likewise.
23159         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
23160         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
23161         (parity<mode>2_cmpb): Set length/type attr.
23162         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
23163         for 'mr.' to fast_compare.
23164         (bpermd_<mode>): Change type attr to popcnt.
23165         (p8_fmrgow_<mode>): New insns for power8 direct move support.
23166         (p8_mtvsrwz_1): Likewise.
23167         (p8_mtvsrwz_2): Likewise.
23168         (reload_fpr_from_gpr<mode>): Likewise.
23169         (p8_mtvsrd_1): Likewise.
23170         (p8_mtvsrd_2): Likewise.
23171         (p8_xxpermdi_<mode>): Likewise.
23172         (reload_vsx_from_gpr<mode>): Likewise.
23173         (reload_vsx_from_gprsf): Likewise.
23174         (p8_mfvsrd_3_<mode>): LIkewise.
23175         (reload_gpr_from_vsx<mode>): Likewise.
23176         (reload_gpr_from_vsxsf): Likewise.
23177         (p8_mfvsrd_4_disf): Likewise.
23178         (multi-word GPR splits): Do not split direct moves or quad memory
23179         operations.
23181 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
23183         * tree-into-ssa.c (interesting_blocks): Make static.
23185 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
23187         PR target/56564
23188         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
23189         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
23190         Use DATA_ABI_ALIGNMENT for that case instead if defined.
23191         (get_variable_align): New function.
23192         (get_variable_section, emit_bss, emit_common,
23193         assemble_variable_contents, place_block_symbol): Use
23194         get_variable_align instead of DECL_ALIGN.
23195         (assemble_noswitch_variable): Add align argument, use it
23196         instead of DECL_ALIGN.
23197         (assemble_variable): Adjust caller.  Use get_variable_align
23198         instead of DECL_ALIGN.
23199         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
23200         caller.
23201         (DATA_ABI_ALIGNMENT): Define.
23202         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
23203         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
23204         opt is false, only return the psABI mandated alignment increase.
23205         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
23206         (DATA_ABI_ALIGNMENT): ... this.
23207         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
23208         (DATA_ABI_ALIGNMENT): ... this.
23209         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
23210         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
23211         (DATA_ABI_ALIGNMENT): ... this.
23212         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
23213         * doc/tm.texi: Regenerated.
23215 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
23217         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
23218         cmp_code to construct REG_EQUAL note.
23220 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
23222         PR target/57568
23223         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
23224         that operands[2] doesn't overlap with operands[0].
23226 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
23227             Jan Hubicka  <jh@suse.cz>
23229         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
23230         hack to mark symbols as used.
23232 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
23234         PR rtl-optimization/57559
23235         * lra-constraints.c (process_alt_operands): Don't discourage
23236         memory with known offset for offsetable memory constraint.
23237         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
23239 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
23241         * varasm.c (struct oc_local_state): Reorder fields.
23242         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
23243         and adjust accordingly.
23244         (output_constructor): Reorder initialization code and adjust call to
23245         output_constructor_bitfield.
23247 2013-06-07  Jan Hubicka  <jh@suse.cz>
23249         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
23251 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
23253         * tree-object-size.c (unknown): Make const.
23255 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23257         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
23258         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
23259         for last alternative in the cpu_facility attribute.
23261 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23263         PR target/56315
23264         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
23265         (xordi3): Change operand 2 constraint to arm_xordi_operand.
23266         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
23267         * config/arm/constraints.md (Dg): New constraint.
23268         * config/arm/neon.md (xordi3_neon): Remove.
23269         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
23270         * config/arm/predicates.md (arm_xordi_operand): New predicate.
23272 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23274         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
23275         Clean up alternatives.
23277 2013-06-07  Alan Modra  <amodra@gmail.com>
23279         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
23280         va_list_gpr_size.
23282 2013-06-07  Alan Modra  <amodra@gmail.com>
23284         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
23286 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23288         * config/arm/constraints.md (Df): New constraint.
23289         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
23290         Correct length attribute for last two alternatives.
23292 2013-06-07  Alan Modra  <amodra@gmail.com>
23294         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23295         override user -mfp-in-toc.
23296         (offsettable_ok_by_alignment): Consider just the current access
23297         rather than the whole object, unless BLKmode.  Handle
23298         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
23299         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
23300         for -mcmodel=medium.
23301         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
23302         override user -mfp-in-toc or -msum-in-toc.  Default to
23303         -mno-fp-in-toc for -mcmodel=medium.
23305 2013-06-06  DJ Delorie  <dj@redhat.com>
23307         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
23308         TARGET_VALID_POINTER_MODE.
23310 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23311             Pat Haugen  <pthaugen@us.ibm.com>
23312             Peter Bergner  <bergner@vnet.ibm.com>
23314         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23315         Document new power8 builtins.
23317         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
23318         condition code register, to allow 128-bit logical operations to be
23319         done in the VSX or GPR registers.
23320         (nor<mode>3): Use the canonical form for nor.
23321         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
23322         vclz*, and vpopcnt* vector instructions.
23323         (nand<mode>3): Likewise.
23324         (orc<mode>3): Likewise.
23325         (clz<mode>2): LIkewise.
23326         (popcount<mode>2): Likewise.
23328         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
23329         that only the GPRs are recognized.
23331         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23332         support for new power8 builtins.
23334         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
23335         builtin functions.
23336         (xscvdpspn): Likewise.
23337         (vclz): Likewise.
23338         (vclzb): Likewise.
23339         (vclzh): Likewise.
23340         (vclzw): Likewise.
23341         (vclzd): Likewise.
23342         (vpopcnt): Likewise.
23343         (vpopcntb): Likewise.
23344         (vpopcnth): Likewise.
23345         (vpopcntw): Likewise.
23346         (vpopcntd): Likewise.
23347         (vgbbd): Likewise.
23348         (vmrgew): Likewise.
23349         (vmrgow): Likewise.
23350         (eqv): Likewise.
23351         (eqv_v16qi3): Likewise.
23352         (eqv_v8hi3): Likewise.
23353         (eqv_v4si3): Likewise.
23354         (eqv_v2di3): Likewise.
23355         (eqv_v4sf3): Likewise.
23356         (eqv_v2df3): Likewise.
23357         (nand): Likewise.
23358         (nand_v16qi3): Likewise.
23359         (nand_v8hi3): Likewise.
23360         (nand_v4si3): Likewise.
23361         (nand_v2di3): Likewise.
23362         (nand_v4sf3): Likewise.
23363         (nand_v2df3): Likewise.
23364         (orc): Likewise.
23365         (orc_v16qi3): Likewise.
23366         (orc_v8hi3): Likewise.
23367         (orc_v4si3): Likewise.
23368         (orc_v2di3): Likewise.
23369         (orc_v4sf3): Likewise.
23370         (orc_v2df3): Likewise.
23372         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
23373         allow power8 quad mode in 64-bit.
23374         (rs6000_builtin_vectorized_function): Add support to vectorize
23375         ISA 2.07 count leading zeros, population count builtins.
23376         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
23377         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
23378         (builtin_function_type): Add vgbbd builtin function which takes an
23379         unsigned argument.
23380         (altivec_expand_vec_perm_const): Add support for new power8 merge
23381         instructions.
23383         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
23384         that does not include TImdoe for use with 32-bit.
23385         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
23386         instructions.
23387         (UNSPEC_VSX_CVDPSPN): Likewise.
23388         (vsx_xscvdpspn): Likewise.
23389         (vsx_xscvspdpn): Likewise.
23390         (vsx_xscvdpspn_scalar): Likewise.
23391         (vsx_xscvspdpn_directmove): Likewise.
23392         (vsx_and<mode>3): Split logical operations into 32-bit and
23393         64-bit. Add support to do logical operations on TImode as well as
23394         VSX vector types.  Allow logical operations to be done in either
23395         VSX registers or in general purpose registers in 64-bit mode.  Add
23396         splitters if GPRs were used. For AND, add clobber of CCmode to
23397         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
23398         encoding.
23399         (vsx_and<mode>3_32bit): Likewise.
23400         (vsx_and<mode>3_64bit): Likewise.
23401         (vsx_ior<mode>3): Likewise.
23402         (vsx_ior<mode>3_32bit): Likewise.
23403         (vsx_ior<mode>3_64bit): Likewise.
23404         (vsx_xor<mode>3): Likewise.
23405         (vsx_xor<mode>3_32bit): Likewise.
23406         (vsx_xor<mode>3_64bit): Likewise.
23407         (vsx_one_cmpl<mode>2): Likewise.
23408         (vsx_one_cmpl<mode>2_32bit): Likewise.
23409         (vsx_one_cmpl<mode>2_64bit): Likewise.
23410         (vsx_nor<mode>3): Likewise.
23411         (vsx_nor<mode>3_32bit): Likewise.
23412         (vsx_nor<mode>3_64bit): Likewise.
23413         (vsx_andc<mode>3): Likewise.
23414         (vsx_andc<mode>3_32bit): Likewise.
23415         (vsx_andc<mode>3_64bit): Likewise.
23416         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
23417         and xxlorc instructions.
23418         (vsx_eqv<mode>3_64bit): Likewise.
23419         (vsx_nand<mode>3_32bit): Likewise.
23420         (vsx_nand<mode>3_64bit): Likewise.
23421         (vsx_orc<mode>3_32bit): Likewise.
23422         (vsx_orc<mode>3_64bit): Likewise.
23424         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
23426         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
23427         instruction.
23428         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
23429         (p8_vmrgow): Likewise.
23430         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
23431         GPRs to be split under VSX.
23432         (p8v_clz<mode>2): Add power8 count leading zero support.
23433         (p8v_popcount<mode>2): Add power8 population count support.
23434         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
23435         support.
23437         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
23438         instruction.
23440         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
23441         builtin functions.
23442         (vec_nand): Likewise.
23443         (vec_vclz): Likewise.
23444         (vec_vclzb): Likewise.
23445         (vec_vclzd): Likewise.
23446         (vec_vclzh): Likewise.
23447         (vec_vclzw): Likewise.
23448         (vec_vgbbd): Likewise.
23449         (vec_vmrgew): Likewise.
23450         (vec_vmrgow): Likewise.
23451         (vec_vpopcnt): Likewise.
23452         (vec_vpopcntb): Likewise.
23453         (vec_vpopcntd): Likewise.
23454         (vec_vpopcnth): Likewise.
23455         (vec_vpopcntw): Likewise.
23457 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
23459         PR rtl-optimization/57468
23460         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
23461         spilled pseudos.
23463 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
23465         PR rtl-optimization/57459
23466         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
23467         type when setting live regs.
23469 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
23471         * config/s390/s390.opt (mlra): New option.
23472         * config/s390/s390.c (s390_decompose_address): Check displacement
23473         for all registers for LRA.
23474         (s390_secondary_reload): Don't used secondary reloads for LRA.
23475         (s390_lra_p): New function.
23476         (TARGET_LRA_P): Define.
23477         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
23478         of attribute cpu_facility to zarch for the last alternative.
23479         (*cmpmem_short): Ditto.
23481 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
23483         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
23484         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
23485         (arm_expand_prologue): Likewise.
23487 2013-06-06  Teresa Johnson  <tejohnson@google.com>
23489         PR c++/53743
23490         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
23491         as this is now done by redirect_edge_and_branch_force.
23492         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
23493         barriers, and fix interaction with splitting.
23494         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
23495         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
23496         reflect changes made in the routine.
23497         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
23498         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
23499         since this is called in cfglayout mode, and replace partition fixup
23500         with assert as that is now done by force_nonfallthru_and_redirect.
23501         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
23502         already be marked with region crossing note.
23503         (insert_section_boundary_note): Make non-static, gate on flag
23504         has_bb_partition, rewrite to also check for multiple partitions.
23505         (rest_of_handle_reorder_blocks): Remove call to
23506         insert_section_boundary_note, now done later during free_cfg.
23507         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
23508         * bb-reorder.h (insert_section_boundary_note): Declare.
23509         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
23510         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
23511         invoke insert_section_boundary_note.
23512         (try_redirect_by_replacing_jump): Remove unnecessary
23513         check for region crossing note.
23514         (fixup_partition_crossing): New function.
23515         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
23516         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
23517         in non-cfglayout mode.
23518         (force_nonfallthru_and_redirect): Fixup partition boundaries,
23519         remove old code that tried to do this. Emit barrier correctly
23520         when we are in cfglayout mode.
23521         (last_bb_in_partition): New function.
23522         (rtl_split_edge): Correctly fixup partition boundaries.
23523         (commit_one_edge_insertion): Remove old code that tried to
23524         fixup region crossing edge since this is now handled in
23525         split_block, and set up insertion point correctly since
23526         block may now end in a jump.
23527         (verify_hot_cold_block_grouping): Guard against checking when not in
23528         linearized RTL mode.
23529         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
23530         notes.
23531         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
23532         rtl_verify_flow_info, so not called in cfglayout mode.
23533         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
23534         (fixup_reorder_chain): Remove old code that attempted to fixup region
23535         crossing note as this is now handled in force_nonfallthru_and_redirect.
23536         (duplicate_insn_chain): Don't duplicate switch section notes.
23537         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
23538         note.
23539         * basic-block.h (emit_barrier_after_bb): Declare.
23541 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23543         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
23544         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
23545         arm_usatsihi): Adjust alternatives for arm_restrict_it.
23547 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23549         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
23550         where appropriate.
23551         * config/arm/ldmstm.md: Regenerate.
23553 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23555         * config/arm/sync.md (atomic_loaddi_1):
23556         Disable predication for arm_restrict_it.
23557         (arm_load_exclusive<mode>): Likewise.
23558         (arm_load_exclusivesi): Likewise.
23559         (arm_load_exclusivedi): Likewise.
23560         (arm_load_acquire_exclusive<mode>): Likewise.
23561         (arm_load_acquire_exclusivesi): Likewise.
23562         (arm_load_acquire_exclusivedi): Likewise.
23563         (arm_store_exclusive<mode>): Likewise.
23564         (arm_store_exclusive<mode>): Likewise.
23565         (arm_store_release_exclusivedi): Likewise.
23566         (arm_store_release_exclusive<mode>): Likewise.
23568 2013-06-06  Richard Biener  <rguenther@suse.de>
23570         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
23571         after LTO_null.
23572         (lto_tag_is_tree_code_p): Adjust.
23573         (lto_tag_is_gimple_code_p): Likewise.
23574         (lto_gimple_code_to_tag): Likewise.
23575         (lto_tag_to_gimple_code): Likewise.
23576         (lto_tree_code_to_tag): Likewise.
23577         (lto_tag_to_tree_code): Likewise.
23578         * data-streamer.h (streamer_write_hwi_in_range): Use
23579         uhwi streaming to stream the normalized range.
23580         (streamer_read_hwi_in_range): Likewise.
23582 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23584         * config/arm/arm.md (enabled_for_depr_it): New attribute.
23585         (predicable_short_it): Likewise.
23586         (predicated): Likewise.
23587         (enabled): Handle above.
23588         (define_cond_exec): Set predicated attribute to yes.
23590 2013-06-05  Mike Stump  <mikestump@comcast.net>
23592         * gdbinit.in (__FUNCTION__): Add.
23594 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
23596         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
23597         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
23599 2013-06-05  Jan Hubicka  <jh@suse.cz>
23601         * varasm.c (mark_decl_referenced): Revert the removal until targets
23602         are fixed.
23604 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
23606         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
23607         instead of mark_decl_referenced.
23609 2013-06-05  Jan Hubicka  <jh@suse.cz>
23611         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
23612         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
23613         and symtab_used_from_object_file_p.
23614         (cgraph_make_node_local_1): Clear forced_by_abi.
23615         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
23616         * cgraph.h (symtab_node_base): Add forced_by_abi.
23617         (decide_is_variable_needed): Remove.
23618         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
23619         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
23620         (decide_is_symbol_needed): ... this one; handle symbols in general;
23621         always analyze virtuals; honnor forced_by_abi.
23622         (cgraph_finalize_function): Update.
23623         (varpool_finalize_decl): Update.
23624         (symbol_defined_and_needed): Remove.
23625         (analyze_functions): Update.
23626         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
23627         output_refs, input_overwrite_node): Handle forced_by_abi.
23628         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
23629         (address_taken_from_non_vtable_p): ... this one.
23630         (comdat_can_be_unshared_p_1): New function.
23631         (cgraph_comdat_can_be_unshared_p): Rename to ...
23632         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
23633         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
23634         (function_and_variable_visibility): Clear forced_by_abi as needed.
23635         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
23636         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
23637         * symtab.c (dump_symtab_base): Dump forced_by_abi.
23638         * varpool.c (decide_is_variable_needed): Remove.
23640 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23642         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
23643         (arm_option_override): Override arm_restrict_it where appropriate.
23644         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
23645         * config/arm/arm.opt (mrestrict-it): New command-line option.
23646         * doc/invoke.texi: Document -mrestrict-it.
23648 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
23650         * tsan.c (tsan_atomic_table): Make const.
23652 2013-06-05  Richard Biener  <rguenther@suse.de>
23654         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
23655         index associated with the tree we are supposed to replace.
23656         * tree-streamer-out.c (pack_ts_base_value_fields): Output
23657         TREE_ASM_WRITTEN as zero for everything but SSA names.
23659 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
23661         * tree-ssa-structalias.c (call_stmt_vars): Make static.
23663 2013-06-04  Jan Hubicka  <jh@suse.cz>
23665         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
23666         (input_node, input_varpool_node): Handle correctly external same
23667         body aliases.
23668         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
23669         nodes at ltrans stage.
23671 2013-06-04  Jan Hubicka  <jh@suse.cz>
23673         * ipa-inline.c (update_caller_keys): Fix availability test.
23674         (update_callee_keys): Likewise.
23675         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
23676         to follow ELF standard.
23678 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
23680         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
23681         (mips64r5900el-*-elf*): New configurations.
23682         * config/mips/mips-cpus.def (r5900): New processor.
23683         * config/mips/mips-tables.opt: Regenerate.
23684         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
23685         (mips_issue_rate): Handle PROCESSOR_R5900.
23686         (mips_reorg_process_insns): Force reorder mode for the R5900.
23687         * config/mips/mips.h (TARGET_MIPS5900): Define.
23688         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
23689         TARGET_MIPS5900.
23690         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
23691         TARGET_MIPS5900.
23692         * config/mips/mips.md (processor): Add r5900.
23693         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
23695 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23697         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
23698         into function to generate MOVI instruction.
23699         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
23700         (aarch64_preferred_simd_mode): Turn into wrapper.
23701         (aarch64_output_scalar_simd_mov_immediate): New function.
23702         * config/aarch64/aarch64-protos.h: Add prototype for above.
23704 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23706         * config/aarch64/aarch64.c (simd_immediate_info): Remove
23707         element_char member.
23708         (sizetochar): Return signed char.
23709         (aarch64_simd_valid_immediate): Remove elchar and other
23710         unnecessary variables.
23711         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
23712         Calculate element_char as required.
23713         * config/aarch64/aarch64-protos.h: Update and move prototype
23714         for aarch64_output_simd_mov_immediate.
23715         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
23716         Update arguments.
23718 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23720         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
23721         information completed by aarch64_simd_valid_immediate.
23722         (aarch64_legitimate_constant_p): Update arguments.
23723         (aarch64_simd_valid_immediate): Work with struct rather than many
23724         pointers.
23725         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
23726         (aarch64_simd_make_constant): Update arguments.
23727         (aarch64_output_simd_mov_immediate): Work with struct rather than
23728         many pointers.  Output immediate directly rather than as operand.
23729         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23730         Update prototype.
23731         * config/aarch64/constraints.md (Dn): Update arguments.
23733 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23735         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
23736         longer static.
23737         (aarch64_simd_immediate_valid_for_move): Remove.
23738         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
23739         (aarch64_simd_make_constant): Update call.
23740         (aarch64_output_simd_mov_immediate): Update call.
23741         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23742         Add prototype.
23743         * config/aarch64/constraints.md (Dn): Update call.
23745 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23747         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
23748         return type to bool for prototype.
23749         (aarch64_legitimate_constant_p): Check for true instead of not -1.
23750         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
23751         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
23753 2013-06-04  Catherine Moore  <clm@codesourcery.com>
23755         * config/mips/mips.opt (meva): New.
23756         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
23757         (ASM_SPEC): Handle -meva.
23758         * doc/invoke.texi (meva):  Document.
23760 2013-06-04  Alan Modra  <amodra@gmail.com>
23762         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
23763         constant output.
23765 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23767         * rtl.def: Add extra fourth optional field to define_cond_exec.
23768         * gensupport.c (process_one_cond_exec): Process attributes from
23769         define_cond_exec.
23770         * doc/md.texi: Document fourth field in define_cond_exec.
23772 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
23774         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
23775         out the processing order as in store_bit_field_1.
23777 2013-06-04  Jan Hubicka  <jh@suse.cz>
23779         PR middle-end/57500
23780         * cgraphunit.c (cgraph_process_same_body_aliases): Create
23781         non-VAR_DECL node if it does not exist yet.
23783 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
23785         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
23786         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
23787         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
23788         target_cpu_default setting.
23790 2013-06-03  Teresa Johnson  <tejohnson@google.com>
23792         * dumpfile.c (opt_info_switch_p): Change -fopt-info
23793         default to -fopt-info=optimized instead of all.
23794         * doc/invoke.texi: Ditto.
23795         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
23796         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
23797         (execute_vect_slp): Emit BB vectorization success under
23798         MSG_OPTIMIZED_LOCATIONS.
23799         * tree-vect-slp.c (vect_slp_transform_bb): Change
23800         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
23801         * tree-vect-loop.c (vect_transform_loop): Ditto.
23803 2013-06-03  Jason Merrill  <jason@redhat.com>
23805         PR c++/57415
23806         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23807         Use TARGET_EXPR for C++.
23809 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
23811         PR rtl-optimization/57268
23812         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
23813         if DEBUG_INSN_P (insn).
23815         Reapply
23816         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
23818         PR rtl-optimization/57268
23819         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23820         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23822 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23824         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
23825         (ix86_avoid_lea_for_addr): Likewise.
23826         (exact_dependency_1): Likewise.
23827         (ix86_adjust_cost): Likewise.
23828         (swap_top_of_ready_list): Fix formatting and !reload_completed check
23829         removed.
23830         (do_reorder_for_imul): Fix typo, formatting and
23831         !reload_completed check removed.
23832         (ix86_sched_reorder): Fix typo and formatting.
23833         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
23834         list.
23836 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
23838         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
23840 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
23842         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
23843         <STRING_CST>: Likewise.
23844         <VECTOR_CST>: Likewise.
23846 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
23847             Mikael Morin  <mikael@gcc.gnu.org>
23849         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
23850         * config.in: Regenerated.
23851         * configure: Regenerated.
23853 2013-06-01  Jan Hubicka  <jh@suse.cz>
23855         PR middle-end/57366
23856         * cgraphunit.c (compile): When weakref is not supported,
23857         set up transparent aliases before final output pass.
23858         * varasm.c (assemble_alias): Do not try to do it here.
23860 2013-06-01  Jan Hubicka  <jh@suse.cz>
23862         PR middle-end/57467
23863         * passes.c (for_per_function): Skip unanalyzed functions.
23865 2013-06-01  Jan Hubicka  <jh@suse.cz>
23867         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
23868         (lto_symtab_merge_symbols_1): ... this one.
23869         (lto_symtab_merge_cgraph_nodes): Rename to ...
23870         (lto_symtab_merge_symbols): ... this one; simplify.
23871         * cgraph.c (same_body_aliases_done): Rename to ...
23872         (cpp_implicit_aliases_done): ... this one.
23873         (cgraph_create_function_alias): Update.
23874         (cgraph_same_body_alias): Update.
23875         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
23876         (verify_edge_corresponds_to_fndecl): Simplify.
23877         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
23878         (cgraph_node): Remove same_body_alias.
23879         (varpool_node): Remove alias_of and extra_name_alias.
23880         (same_body_aliases_done): Rename to ..
23881         (cpp_implicit_aliases_done): ... this one.
23882         (symtab_alias_ultimate_target): Add default parameter.
23883         (symtab_resolve_alias): New function.
23884         (fixup_same_cpp_alias_visibility): Declare.
23885         (cgraph_function_node): Add default parameter.
23886         (cgraph_node_asm_name): Likewise.
23887         (cgraph_function_or_thunk_node): Add default parameter; do
23888         not ICE when it is NULL.
23889         (varpool_variable_node): Likewise.
23890         * tree-emutls.c (create_emultls_var): Update.
23891         (ipa_lower_emutls): Update.
23892         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
23893         (cgraph_reset_node): Reset alias info.
23894         (cgraph_finalize_function): Update.
23895         (fixup_same_cpp_alias_visibility): Move to symtab.c.
23896         (analyze_function): Simplify.
23897         (cgraph_process_same_body_aliases): Simplify.
23898         (analyze_functions): Fixup same body aliases.
23899         (handle_alias_pairs): Simplify.
23900         (assemble_thunk): Update.
23901         (assemble_thunks_and_aliases): Update.
23902         (output_weakrefs): Rewrite.
23903         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
23904         (lto_output_varpool_node): Likewise.
23905         (compute_ltrans_boundary): Remve assert.
23906         (get_alias_symbol): New functoin.
23907         (input_node): Rewrite alias handling.
23908         (input_varpool_node): Likewise.
23909         * ipa-pure-const.c (propagate_pure_const): Fix formating.
23910         * ipa.c (process_references): Handle weakrefs correctly.
23911         (symtab_remove_unreachable_nodes): Likewise.
23912         * trans-mem.c (get_cg_data): Update.
23913         (ipa_tm_create_version_alias): Update.
23914         (ipa_tm_execute): Update.
23915         * symtab.c (dump_symtab_base): Dump aliases.
23916         (verify_symtab_base): Verify aliases.
23917         (symtab_node_availability): New function.
23918         (symtab_alias_ultimate_target): Simplify.
23919         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
23920         handle all the fixup cases.
23921         (symtab_resolve_alias): New function.
23922         * passes.c (ipa_write_summaries): Handle weakrefs.
23923         * varpool.c (varpool_analyze_node): Simplify.
23924         (assemble_aliases): Update.
23925         (varpool_create_variable_alias): Simplify.
23926         (varpool_extra_name_alias): Simplify.
23927         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
23928         (lto_symtab_merge_symbols): ... this one.
23930 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
23932         Revert
23933         PR rtl-optimization/57268
23934         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23935         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23937 2013-06-01  Tobias Burnus  <burnus@net-b.de>
23939         Partially reverted:
23940         2013-05-31  Tobias Burnus  <burnus@net-b.de>
23942         PR middle-end/57073
23943         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
23944         further up.
23946 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
23948         PR rtl-optimization/57268
23949         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23950         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23952 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23954         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
23955         unordered comparison operators when -fno-trapping-math is in effect
23956         on the e500.
23957         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
23958         and implement unordered comparison operators properly on the e500.
23960 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23962         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
23963         for constant scalar integers.
23964         (simplify_relational_operation_1): Likewise.
23966 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
23968         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
23969         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
23970         Fix comment.
23972 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23973             Igor Zamyatin  <igor.zamyatin@intel.com>
23975         Silvermont (SLM) architecture performance tuning.
23976         * config/i386/i386.h (enum ix86_tune_indices): Add
23977         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
23978         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
23980         * config/i386/i386.c (initial_ix86_tune_features)
23981         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
23982         (ix86_lea_outperforms): Handle Silvermont tuning.
23983         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
23984         call.
23985         (ix86_use_lea_for_mov): Likewise.
23986         (ix86_avoid_lea_for_addr): Likewise.
23987         (ix86_lea_for_add_ok): Likewise.
23988         (exact_dependency_1): New function.
23989         (exact_store_load_dependency): Likewise.
23990         (ix86_adjust_cost): Handle Silvermont tuning.
23991         (do_reoder_for_imul): Likewise.
23992         (swap_top_of_ready_list): New function.
23993         (ix86_sched_reorder): Changed to handle Silvermont tuning.
23995         * config/i386/i386.md (peepholes that split memory operand in fp
23996         converts): New.
23998 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24000         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24001         Remove un-necessary braces.
24003 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24005         * config/aarch64/aarch64.c (aarch64_classify_symbol):
24006         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
24008 2013-05-31  Tobias Burnus  <burnus@net-b.de>
24010         PR middle-end/57073
24011         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
24013 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24015         PR target/56315
24016         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
24017         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
24018         * config/arm/neon.md (iordi3_neon): Remove.
24019         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
24020         * config/arm/predicates.md (imm_for_neon_logic_operand):
24021         Move to earlier in the file.
24022         (neon_logic_op2): Likewise.
24023         (arm_iordi_operand_neon): New predicate.
24025 2013-05-31  Richard Biener  <rguenther@suse.de>
24027         PR tree-optimization/57478
24028         PR tree-optimization/57453
24029         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
24030         are life as well.
24032 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24034         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
24035         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
24037 2013-05-30  Tobias Burnus  <burnus@net-b.de>
24038             Thomas Koenig  <tkoenig@gcc.gnu.org>
24040         PR middle-end/57073
24041         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
24042         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
24044 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
24046         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
24048 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
24050         * target.def (register_usage_leveling_p): New hook.
24051         * targhooks.c (default_register_usage_leveling_p): New.
24052         * targhooks.h (default_register_usage_leveling_p): New prototype.
24053         * lra-assigns.c (register_usage_leveling_p): Use the hook.
24054         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
24055         * doc/tm.texi: Update.
24056         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
24058 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
24060         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
24061         (*insv_reg<mode>): New define_insn.
24063 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
24065         PR rtl-optimization/57439
24066         * postreload.c (move2add_valid_value_p): Check that we have
24067         a zero subreg_regno_offset when accessing the register in
24068         the requested mode.
24070 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24071             Igor Zamyatin  <igor.zamyatin@intel.com>
24073         Silvermont (SLM) architecture pipeline model, tuning and
24074         insn selection.
24075         * config.gcc: Add slm config options and target.
24077         * config/i386/slm.md: New.
24079         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
24081         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
24082         PROCESSOR_SLM.
24083         (ix86_target_macros_internal): Likewise.
24085         * config/i386/i386.c (slm_cost): New cost.
24086         (m_SLM): New macro flag.
24087         (initial_ix86_tune_features): Set m_SLM.
24088         (x86_accumulate_outgoing_args): Likewise.
24089         (x86_arch_always_fancy_math_387): Likewise.
24090         (processor_target_table): Add slm cost.
24091         (cpu_names): Add slm cpu name.
24092         (x86_option_override_internal): Set SLM ISA.
24093         (ix86_issue_rate): New case PROCESSOR_SLM.
24094         (ia32_multipass_dfa_lookahead): Likewise.
24095         (fold_builtin_cpu): Add slm.
24097         * config/i386/i386.h (TARGET_SLM): New target macro.
24098         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
24099         (processor_type): Add PROCESSOR_SLM.
24101         * config/i386/i386.md (cpu): Add new value "slm".
24102         (slm.md): Include slm.md.
24104 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
24105             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24107         * config/arm/arm-protos.h: Add and update function protos.
24108         * config/arm/arm.c (use_simple_return_p): New added.
24109         (thumb2_expand_return): Check simple_return flag.
24110         * config/arm/arm.md: Add simple_return and conditional simple_return.
24111         * config/arm/iterators.md: Add iterator for return and simple_return.
24113 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24115         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
24116         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
24117         (arm_emit_vfp_multi_reg_pop): Likewise.
24118         (thumb2_emit_ldrd_pop): Likewise.
24119         (arm_expand_epilogue): Add misc REG_CFA notes.
24120         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
24122 2013-05-29  Lawrence Crowl  <crowl@google.com>
24124         * config/arm/t-arm: Update for below.
24126         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
24127         Change type to hash_table.  Update dependent calls and types.
24129         * config/i386/t-cygming: Update for below.
24131         * config/i386/t-interix: Update for below.
24133         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
24134         Change type to hash_table.  Update dependent calls and types.
24135         (i386_find_on_wrapper_list::wrappers): Likewise.
24137         * config/ia64/t-ia64: Update for below.
24139         * config/ia64/ia64.c (bundle_state_table):
24140         Change type to hash_table.  Update dependent calls and types.
24142         * config/mips/mips.c (mips_reorg_process_insns::htab):
24143         Change type to hash_table.  Update dependent calls and types.
24145         * config/sol2.c (solaris_comdat_htab):
24146         Change type to hash_table.  Update dependent calls and types.
24148         * config/t-sol2: Update for above.
24150 2013-05-29  Teresa Johnson  <tejohnson@google.com>
24152         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
24153         functions are not yet marked as defined.
24155 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
24156             Pat Haugen  <pthaugen@us.ibm.com>
24157             Peter Bergner  <bergner@vnet.ibm.com>
24159         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
24160         instructions.
24161         (VEC_A): Likewise.
24162         (VEC_C): Likewise.
24163         (vrotl<mode>3): Likewise.
24164         (vashl<mode>3): Likewise.
24165         (vlshr<mode>3): Likewise.
24166         (vashr<mode>3): Likewise.
24168         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24169         support for power8 V2DI builtins.
24171         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
24172         power8 V2DI builtins.
24173         (vupkhsw): Likewise.
24174         (vupklsw): Likewise.
24175         (vaddudm): Likewise.
24176         (vminsd): Likewise.
24177         (vmaxsd): Likewise.
24178         (vminud): Likewise.
24179         (vmaxud): Likewise.
24180         (vpkudum): Likewise.
24181         (vpksdss): Likewise.
24182         (vpkudus): Likewise.
24183         (vpksdus): Likewise.
24184         (vrld): Likewise.
24185         (vsld): Likewise.
24186         (vsrd): Likewise.
24187         (vsrad): Likewise.
24188         (vsubudm): Likewise.
24189         (vcmpequd): Likewise.
24190         (vcmpgtsd): Likewise.
24191         (vcmpgtud): Likewise.
24192         (vcmpequd_p): Likewise.
24193         (vcmpgtsd_p): Likewise.
24194         (vcmpgtud_p): Likewise.
24195         (vupkhsw): Likewise.
24196         (vupklsw): Likewise.
24197         (vaddudm): Likewise.
24198         (vmaxsd): Likewise.
24199         (vmaxud): Likewise.
24200         (vminsd): Likewise.
24201         (vminud): Likewise.
24202         (vpksdss): Likewise.
24203         (vpksdus): Likewise.
24204         (vpkudum): Likewise.
24205         (vpkudus): Likewise.
24206         (vrld): Likewise.
24207         (vsld): Likewise.
24208         (vsrad): Likewise.
24209         (vsrd): Likewise.
24210         (vsubudm): Likewise.
24212         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24213         support for power8 V2DI instructions.
24215         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
24216         power8 V2DI instructions.  Combine pack and unpack insns to use an
24217         iterator for each mode.  Check whether a particular mode supports
24218         Altivec instructions instead of just checking TARGET_ALTIVEC.
24219         (UNSPEC_VPKUWUM): Likewise.
24220         (UNSPEC_VPKSHSS): Likewise.
24221         (UNSPEC_VPKSWSS): Likewise.
24222         (UNSPEC_VPKUHUS): Likewise.
24223         (UNSPEC_VPKSHUS): Likewise.
24224         (UNSPEC_VPKUWUS): Likewise.
24225         (UNSPEC_VPKSWUS): Likewise.
24226         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
24227         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
24228         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
24229         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
24230         (UNSPEC_VUPKHSB): Likewise.
24231         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
24232         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
24233         (UNSPEC_VUPKHSH): Likewise.
24234         (UNSPEC_VUPKLSB): Likewise.
24235         (UNSPEC_VUPKLSH): Likewise.
24236         (VI2): Likewise.
24237         (VI_char): Likewise.
24238         (VI_scalar): Likewise.
24239         (VI_unit): Likewise.
24240         (VP): Likewise.
24241         (VP_small): Likewise.
24242         (VP_small_lc): Likewise.
24243         (VU_char): Likewise.
24244         (add<mode>3): Likewise.
24245         (altivec_vaddcuw): Likewise.
24246         (altivec_vaddu<VI_char>s): Likewise.
24247         (altivec_vadds<VI_char>s): Likewise.
24248         (sub<mode>3): Likewise.
24249         (altivec_vsubcuw): Likewise.
24250         (altivec_vsubu<VI_char>s): Likewise.
24251         (altivec_vsubs<VI_char>s): Likewise.
24252         (altivec_vavgs<VI_char>): Likewise.
24253         (altivec_vcmpbfp): Likewise.
24254         (altivec_eq<mode>): Likewise.
24255         (altivec_gt<mode>): Likewise.
24256         (altivec_gtu<mode>): Likewise.
24257         (umax<mode>3): Likewise.
24258         (smax<mode>3): Likewise.
24259         (umin<mode>3): Likewise.
24260         (smin<mode>3): Likewise.
24261         (altivec_vpkuhum): Likewise.
24262         (altivec_vpkuwum): Likewise.
24263         (altivec_vpkshss): Likewise.
24264         (altivec_vpkswss): Likewise.
24265         (altivec_vpkuhus): Likewise.
24266         (altivec_vpkshus): Likewise.
24267         (altivec_vpkuwus): Likewise.
24268         (altivec_vpkswus): Likewise.
24269         (altivec_vpks<VI_char>ss): Likewise.
24270         (altivec_vpks<VI_char>us): Likewise.
24271         (altivec_vpku<VI_char>us): Likewise.
24272         (altivec_vpku<VI_char>um): Likewise.
24273         (altivec_vrl<VI_char>): Likewise.
24274         (altivec_vsl<VI_char>): Likewise.
24275         (altivec_vsr<VI_char>): Likewise.
24276         (altivec_vsra<VI_char>): Likewise.
24277         (altivec_vsldoi_<mode>): Likewise.
24278         (altivec_vupkhsb): Likewise.
24279         (altivec_vupkhs<VU_char>): Likewise.
24280         (altivec_vupkls<VU_char>): Likewise.
24281         (altivec_vupkhsh): Likewise.
24282         (altivec_vupklsb): Likewise.
24283         (altivec_vupklsh): Likewise.
24284         (altivec_vcmpequ<VI_char>_p): Likewise.
24285         (altivec_vcmpgts<VI_char>_p): Likewise.
24286         (altivec_vcmpgtu<VI_char>_p): Likewise.
24287         (abs<mode>2): Likewise.
24288         (vec_unpacks_hi_v16qi): Likewise.
24289         (vec_unpacks_hi_v8hi): Likewise.
24290         (vec_unpacks_lo_v16qi): Likewise.
24291         (vec_unpacks_hi_<VP_small_lc>): Likewise.
24292         (vec_unpacks_lo_v8hi): Likewise.
24293         (vec_unpacks_lo_<VP_small_lc>): Likewise.
24294         (vec_pack_trunc_v8h): Likewise.
24295         (vec_pack_trunc_v4si): Likewise.
24296         (vec_pack_trunc_<mode>): Likewise.
24298         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
24299         V2DI builtins.
24300         (vec_vmaxsd): Likewise.
24301         (vec_vmaxud): Likewise.
24302         (vec_vminsd): Likewise.
24303         (vec_vminud): Likewise.
24304         (vec_vpksdss): Likewise.
24305         (vec_vpksdus): Likewise.
24306         (vec_vpkudum): Likewise.
24307         (vec_vpkudus): Likewise.
24308         (vec_vrld): Likewise.
24309         (vec_vsld): Likewise.
24310         (vec_vsrad): Likewise.
24311         (vec_vsrd): Likewise.
24312         (vec_vsubudm): Likewise.
24313         (vec_vupkhsw): Likewise.
24314         (vec_vupklsw): Likewise.
24316 2013-05-29  Jan Hubicka  <jh@suse.cz>
24318         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
24319         flags; reorder rest of fields in more consistent way.
24320         (varpool_node): Remove analyzed, finalized and alias.
24321         (cgraph_ndoe): Likewise.
24322         (symtab_alias_ultimate_target): New function.
24323         (cgraph_function_node): Move offline.
24324         (cgraph_reset_node): Declare.
24325         (cgraph_comdat_can_be_unshared_p): Remove.
24326         (varpool_remove_initializer): Declare.
24327         (varpool_first_defined_variable, varpool_next_defined_variable
24328         cgraph_first_defined_function, cgraph_next_defined_function): Update.
24329         (cgraph_function_with_gimple_body_p): Update.
24330         (varpool_all_refs_explicit_p): Update.
24331         (symtab_alias_target): New function.
24332         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
24333         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
24334         (cgraph_function_or_thunk_node): Simplify using
24335         symtab_alias_ultimate_target.
24336         (varpool_variable_node): Likewise.
24337         * cgraph.c (cgraph_create_function_alias): Update.
24338         (cgraph_add_thunk): Update.
24339         (cgraph_remove_node): Update.
24340         (dump_cgraph_node): Do not dump removed flags.
24341         (cgraph_function_body_availability): Update.
24342         (cgraph_propagate_frequency): Update.
24343         (verify_cgraph_node): Check sanity of local flag.
24344         (cgraph_function_node): Move here from cgraph.h; revamp for
24345         cgraph_function_or_thunk_node.
24346         * lto-symtab.c (lto_varpool_replace_node): Update.
24347         (lto_symtab_resolve_can_prevail_p): Update.
24348         (lto_symtab_merge_cgraph_nodes): Update.
24349         * ipa-cp.c (determine_versionability, initialize_node_lattices,
24350         propagate_constants_accross_call, devirtualization_time_bonus,
24351         ipcp_propagate_stage): Update.
24352         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
24353         * ipa-inline-transform.c (clone_inlined_nodes,
24354         preserve_function_body_p): Update.
24355         * ipa-reference.c (propagate): Update.
24356         (write_node_summary_p): Update.
24357         * toplev.c (wrapup_global_declaration_2): Update.
24358         * cgraphunit.c (cgraph_analyze_function): Rename to ...
24359         (analyze_function) ... this one.
24360         (cgraph_process_new_functions): Update.
24361         (cgraph_reset_node): Export.
24362         (cgraph_finalize_function): Update.
24363         (cgraph_add_new_function): Update.
24364         (process_function_and_variable_attributes): Update.
24365         (varpool_finalize_decl): Update.
24366         (symbol_finalized): Remove.
24367         (symbol_finalized_and_needed): Rename to ...
24368         (symbol_defined_and_needed): ... update.
24369         (cgraph_analyze_functions): Update.
24370         (handle_alias_pairs): Update.
24371         (mark_functions_to_output): Update.
24372         (assemble_thunk): Update.
24373         (output_in_order): Update.
24374         (output_weakrefs): Update.
24375         (finalize_compilation_unit): Update.
24376         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
24377         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
24378         input_node, input_varpool_node): Update.
24379         * dbxout.c (dbxout_expand_expr): Update.
24380         * cgraphclones.c (cgraph_clone_node): Update.
24381         (cgraph_copy_node_for_versioning): Update.
24382         (cgraph_materialize_clone): Update.
24383         (cgraph_materialize_all_clones): Update.
24384         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
24385         propagate_pure_const, propagate_nothrow): Update.
24386         * lto-streamer-out.c (lto_output, write_symbol): Update.
24387         * ipa-utils.c (ipa_reverse_postorder): Update.
24388         * ipa-inline.c (can_inline_edge_p): Update.
24389         (update_caller_keys, ipa_inline): Update.
24390         * dwarf2out.c (reference_to_unused,
24391         premark_types_used_by_global_vars_helper): Update.
24392         * tree-eh.c (tree_could_trap_p): Update.
24393         * ipa-split.c (consider_split, execute_split_functions): Update.
24394         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24395         has_addr_references_p): Update; move ahead in file for better
24396         readability.
24397         (process_references): Simplify.
24398         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
24399         bodies are removed.
24400         (cgraph_comdat_can_be_unshared_p): Make static.
24401         (cgraph_externally_visible_p): Update.
24402         (varpool_externally_visible_p): Update.
24403         (function_and_variable_visibility): Update.
24404         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
24405         ipa_tm_mark_force_output_node): Update.
24406         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
24407         estimate_edge_devirt_benefit, inline_generate_summary,
24408         inline_write_summary): Update.
24409         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
24410         * ipa-prop.c (ipa_compute_jump_functions): Update.
24411         (ipa_print_node_params, ipa_prop_read_section,
24412         ipa_update_after_lto_read, read_replacements_section): Update.
24413         * varasm.c (mark_decl_referenced): Update.
24414         (assemble_alias, dump_tm_clone_pairs): Update.
24415         * tree-inline.c (copy_bb): Update.
24416         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
24417         Update.
24418         * symtab.c (dump_symtab_base): Print new flags.
24419         (verify_symtab_base): Verify new flags.
24420         (symtab_alias_ultimate_target): New function.
24421         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
24422         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
24423         Update.
24424         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
24425         Update.
24426         * i386.c (ix86_get_function_versions_dispatcher,
24427         ix86_generate_version_dispatcher_body): Update.
24428         (fold_builtin_cpu): Use varpool_add_new_variable.
24429         * varpool.c (varpool_remove_initializer): Break out from ...
24430         (varpool_remove_node): ... this one.
24431         (dump_varpool_node, varpool_node_for_asm,
24432         cgraph_variable_initializer_availability, varpool_analyze_node,
24433         varpool_assemble_decl, varpool_remove_unreferenced_decls,
24434         varpool_finalize_named_section_flags, varpool_create_variable_alias):
24435         Update.
24437 2013-05-29  Jan Hubicka  <jh@suse.cz>
24439         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
24441 2013-05-29  Easwaran Raman  <eraman@google.com>
24443         PR tree-optimization/57442
24444         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
24445         when control exits the main loop.
24447 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
24449         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
24450         and RX600.
24451         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
24452         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
24453         * rx/t-rx: Add rx100 under multi library matches option for nofpu
24454         option.
24456 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24458         PR tree-optimization/57441
24459         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
24460         Don't limit size of incr_vec to number of candidates.
24462 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
24464         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
24465         and mips16 directories.
24466         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
24467         (MULTILIB_DIRNAMES): Ditto.
24468         (MULTILIB_EXCEPTIONS): Add new exceptions.
24469         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
24470         (MULTILIB_DIRNAMES): Ditto.
24471         (MULTILIB_EXCEPTIONS): Add new exceptions.
24473 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24474             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24476         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
24477         SYMBOL_TINY_ABSOLUTE.
24478         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
24479         SYMBOL_TINY_ABSOLUTE.
24480         (aarch64_expand_mov_immediate): Likewise.
24481         (aarch64_classify_symbol): Likewise.
24482         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
24483         Permit SYMBOL_TINY_ABSOLUTE.
24484         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
24486 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24487             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24489         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
24490         Refactor if/switch.  Replace gcc_assert with if.
24492 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
24494         * config/i386/i386.c (initial_ix86_tune_features): Enable
24495         FP Reassociation for AMD bdver1 and bdver2.
24497 2013-05-29  Martin Jambor  <mjambor@suse.cz>
24499         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
24500         and IMAGPART_EXPR do not occur within other handled_components.
24502 2013-05-29  Richard Biener  <rguenther@suse.de>
24504         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
24505         access on whether the use is in the BB we currently try to
24506         vectorize.
24507         (vect_bb_vectorization_profitable_p): Pass the BB we currently
24508         vectorize to vect_bb_slp_scalar_cost.
24510 2013-05-29  Richard Biener  <rguenther@suse.de>
24512         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
24513         computing scalar cost offsetted by stmts that are kept live
24514         by scalar uses.
24515         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
24516         for computation of scalar cost.
24518 2013-05-28  Steve Ellcey  <sellcey@mips.com>
24520         * config/mips/mips-cpus.def (mips32r2): Change processor type.
24522 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
24524         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
24525         array notation built-in reduction functions.
24526         * doc/passes.texi (Passes): Added documentation about changes done
24527         for Cilk Plus.
24528         * doc/invoke.texi (C Dialect Options): Added documentation about
24529         the -fcilkplus flag.
24530         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
24531         (BUILTINS_DEF): Depend on cilkplus.def.
24532         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
24533         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
24534         * cilkplus.def: New file.
24536 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
24538         PR rtl-optimization/57439
24539         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
24541 2013-05-28  Easwaran Raman  <eraman@google.com>
24543         PR tree-optimization/57337
24544         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
24545         (find_insert_point): Correctly identify the insertion point
24546         when two statements with the same UID is compared.
24548 2013-05-28  Richard Biener  <rguenther@suse.de>
24550         PR tree-optimization/56787
24551         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
24552         from the list of data references.
24553         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
24554         clobbers.
24555         (vect_analyze_loop_operations): Likewise.
24556         (vect_transform_loop): Remove clobbers.
24558 2013-05-28  Martin Jambor  <mjambor@suse.cz>
24560         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
24561         and REALPART_EXPRs have scalar type.
24563 2013-05-28  Richard Biener  <rguenther@suse.de>
24565         PR tree-optimization/57411
24566         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
24567         virtual operands.
24568         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
24569         virtual operand propagation.
24571 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
24573         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
24574         destination register for bmasksi_vis.
24575         (vector_init_bshuffle): Likewise.
24576         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
24578 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
24580         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
24581         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
24582         mode if the instruction isn't available in the original mode.
24583         * config/sparc/sparc.opt (mfix-ut699): New option.
24584         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
24585         (divdf3): Turn into expander.
24586         (divdf3_nofix): New insn.
24587         (divdf3_fix): Likewise.
24588         (divsf3): Disable if -mfix-ut699.
24589         (sqrtdf2): Turn into expander.
24590         (sqrtdf2_nofix): New insn.
24591         (sqrtdf2_fix): Likewise.
24592         (sqrtsf2): Disable if -mfix-ut699.
24594 2013-05-27  Richard Biener  <rguenther@suse.de>
24596         PR middle-end/57412
24597         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
24598         block for the new loop.
24600 2013-05-27  Richard Biener  <rguenther@suse.de>
24602         PR tree-optimization/57343
24603         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
24604         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
24605         (number_of_iterations_cond): Do not build the folded tree.
24607 2013-05-27  Richard Biener  <rguenther@suse.de>
24609         Revert
24610         PR middle-end/57381
24611         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24612         OEP_CONSTANT_ADDRESS_OF retained.
24614         PR tree-optimization/57417
24615         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
24616         for unchanged base.
24617         (set_ssa_val_to): Compare addresses using
24618         get_addr_base_and_unit_offset.
24620 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
24622         PR rtl-optimization/56833
24623         * postreload.c (move2add_record_mode): New function.
24624         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
24625         (move2add_use_add2_insn): Use move2add_record_sym_value.
24626         (move2add_use_add3_insn): Likewise.
24627         (reload_cse_move2add): Use move2add_valid_value_p and
24628         move2add_record_mode.  Invalidate call-clobbered and REG_INC
24629         affected regs by setting reg_mode to VOIDmode.
24630         (move2add_note_store): Don't pretend the inside of a SUBREG is
24631         the actual destination.  Invalidate single/leading registers by
24632         setting reg_mode to VOIDmode.
24633         Use move2add_record_sym_value, move2add_valid_value_p and
24634         move2add_record_mode.
24636 2013-05-27  Richard Biener  <rguenther@suse.de>
24638         PR tree-optimization/57396
24639         * tree-affine.c (double_int_constant_multiple_p): Properly
24640         return false for val == 0 and div != 0.
24642 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
24644         * config/mips/mips.h: Use #elif in preprocessor conditions.
24646 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
24648         PR target/53916
24649         * config/mips/constraints.md (kl): New constraint.
24650         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
24651         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
24652         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
24653         from LO for MIPS16.
24654         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
24656 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
24658         PR target/55777
24659         * config/mips/mips.c (mips_can_inline_p): New function.
24660         (TARGET_CAN_INLINE_P): Define.
24662 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24664         * sched-int.h (ds_t, dw_t): Make unsigned int.
24665         Fix documentation that describes how all the ds_t bits are used.
24666         Reserve the last bit for delayed-branch scheduling.
24667         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
24668         (BITS_PER_DEP_WEAK): Fix definition and documentation.
24669         (gen_dep_weak_1): Remove prototype.
24670         * sched-deps.c (get_dep_weak_1): Make static.
24671         * target.def (speculate_insn, needs_block_p, gen_spec_check,
24672         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
24673         * doc/tm.texi: Regenerate.
24674         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
24676 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
24678         PR debug/56950
24679         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
24681 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
24682             Sandra Loosemore  <sandra@codesourcery.com>
24684         * config.gcc (powerpc-*): Allow native for with-cpu.
24686 2013-05-24  Jeff Law  <law@redhat.com>
24688         PR tree-optimization/57124
24689         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
24690         conversion feeding a condition if the range has an overflow
24691         if -fstrict-overflow.  Add warnings for when we do make the
24692         transformation.
24694 2013-05-24  Dehao Chen  <dehao@google.com>
24696         * tree-cfg.c (locus_discrim_map): Fix the typo.
24697         (locus_discrim_hasher): Likewise.
24698         (locus_discrim_hasher::hash): Likewise.
24699         (locus_discrim_hasher::equal): Likewise.
24701 2013-05-24  Martin Jambor  <mjambor@suse.cz>
24703         PR tree-optimization/57294
24704         * cgraph.h (ipa_record_stmt_references): Declare.
24705         * cgraphbuild.c (ipa_record_stmt_references): New function.
24706         (build_cgraph_edges): Use ipa_record_stmt_references.
24707         (rebuild_cgraph_edges): Likewise.
24708         (cgraph_rebuild_references): Likewise.
24709         * ipa-prop.c (ipa_modify_call_arguments): Discard references
24710         associated with the old statement and build references from the
24711         newly built statements.
24712         * ipa-ref.c (ipa_remove_stmt_references): New function.
24713         * ipa-ref.h (ipa_remove_stmt_references): Declare.
24715 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
24717         * lra-constraints.c (emit_spill_move): Use smaller mode for
24718         mem-mem moves.
24719         (check_and_process_move): Consider mem-reg moves for secondary
24720         too.
24721         (curr_insn_transform): Don't lose insns emitted before for
24722         secondary memory moves.
24723         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
24724         reg set up in the current insn.
24726 2013-05-24  Dehao Chen  <dehao@google.com>
24728         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
24729         hash function.
24730         (locus_descrim_hasher::equal): Likewise.
24731         (build_gimple_cfg): New discriminator assignment algorithm.
24732         (make_edges): Likewise.
24733         (next_discriminator_for_locus): Likewise.
24734         (same_line_p): Likewise.
24735         (assign_discriminators): Likewise.
24736         (make_cond_expr_edges): Likewise.
24737         (make_gimple_switch_edges): Likewise.
24738         (make_goto_expr_edges): Likewise.
24739         (make_gimple_asm_edges): Likewise.
24741 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
24743         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
24744         X format specifier to only display bottom 16 bits.
24745         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
24746         immediate to match for operand 2, since it will be masked.
24748 2013-05-24  Richard Biener  <rguenther@suse.de>
24750         PR tree-optimization/57287
24751         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
24752         all SSA names that occur in abnormal PHIs.
24754 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24756         PR tree-ssa/57385
24757         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
24758         that index is not negative.
24760 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
24762         PR rtl-optimization/55177
24763         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
24764         (simplify_byte_swapping_operation): New.
24765         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
24766         (simplify_relational_operation_1): Deal with BSWAP.
24768 2013-05-23  Richard Henderson  <rth@redhat.com>
24770         PR target/56742
24771         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
24772         (ix86_reorg): Call it.
24774 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
24776         PR target/57379
24777         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
24778         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
24779         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
24781 2013-05-23  Christian Bruel  <christian.bruel@st.com>
24783         PR debug/57351
24784         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
24786 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24787             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24789         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
24790         * config/aarch64/constraints.md (Usa): Remove.
24791         * doc/md.texi (AArch64 Usa): Remove.
24793 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24794             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24796         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
24797         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
24798         * config/aarch64/predicates.md (aarch64_const_address): Remove.
24799         (aarch64_mov_operand): Use aarch64_mov_operand_p.
24801 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
24803         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
24804         instruction (AdvSIMD).
24805         * config/aarch64/aarch64-builtins.c
24806         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
24807         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
24809 2013-05-23  Martin Jambor  <mjambor@suse.cz>
24811         PR middle-end/57347
24812         * tree.h (contains_bitfld_component_ref_p): Declare.
24813         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
24814         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
24815         caller.
24816         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
24817         not access a bit-field.  Assert all final offsets are byte-aligned.
24819 2013-05-23  Richard Biener  <rguenther@suse.de>
24821         PR tree-optimization/57380
24822         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
24823         least one invariant or re-used load.
24824         * passes.c (init_optimization_passes): Move pass_phiprop before
24825         pass_forwprop.
24827 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
24829         * config/aarch64/aarch64-simd.md
24830         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
24832 2013-05-23  Richard Biener  <rguenther@suse.de>
24834         PR middle-end/57381
24835         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24836         OEP_CONSTANT_ADDRESS_OF retained.
24838 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
24840         PR middle-end/57344
24841         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
24842         don't lower unit.  Handle unit not being always BITS_PER_WORD.
24844 2013-05-23  Richard Biener  <rguenther@suse.de>
24846         PR rtl-optimization/57341
24847         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
24848         instead of true_dependence.
24850 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
24852         * bb-reorder.c (branch_threshold): Make const.
24853         (exec_threshold): Ditto.
24855 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
24856             Pat Haugen  <pthaugen@us.ibm.com>
24857             Peter Bergner  <bergner@vnet.ibm.com>
24859         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
24860         documentation for the power8 crypto builtins.
24862         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
24864         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
24865         macros for defining power8 builtin functions.
24866         (BU_P8V_AV_2): Likewise.
24867         (BU_P8V_AV_P): Likewise.
24868         (BU_P8V_VSX_1): Likewise.
24869         (BU_P8V_OVERLOAD_1): Likewise.
24870         (BU_P8V_OVERLOAD_2): Likewise.
24871         (BU_CRYPTO_1): Likewise.
24872         (BU_CRYPTO_2): Likewise.
24873         (BU_CRYPTO_3): Likewise.
24874         (BU_CRYPTO_OVERLOAD_1): Likewise.
24875         (BU_CRYPTO_OVERLOAD_2): Likewise.
24876         (XSCVSPDP): Fix typo, point to the correct instruction.
24877         (VCIPHER): Add power8 crypto builtins.
24878         (VCIPHERLAST): Likewise.
24879         (VNCIPHER): Likewise.
24880         (VNCIPHERLAST): Likewise.
24881         (VPMSUMB): Likewise.
24882         (VPMSUMH): Likewise.
24883         (VPMSUMW): Likewise.
24884         (VPERMXOR_V2DI): Likewise.
24885         (VPERMXOR_V4SI: Likewise.
24886         (VPERMXOR_V8HI: Likewise.
24887         (VPERMXOR_V16QI: Likewise.
24888         (VSHASIGMAW): Likewise.
24889         (VSHASIGMAD): Likewise.
24890         (VPMSUM): Likewise.
24891         (VPERMXOR): Likewise.
24892         (VSHASIGMA): Likewise.
24894         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24895         __CRYPTO__ if the crypto instructions are available.
24896         (altivec_overloaded_builtins): Add support for overloaded power8
24897         builtins.
24899         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
24900         support for power8 crypto builtins.
24901         (builtin_function_type): Likewise.
24902         (altivec_init_builtins): Add support for builtins that take vector
24903         long long (V2DI) arguments.
24905         * config/rs6000/crypto.md: New file, define power8 crypto
24906         instructions.
24908 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
24909             Pat Haugen  <pthaugen@us.ibm.com>
24910             Peter Bergner  <bergner@vnet.ibm.com>
24912         * doc/invoke.texi (Option Summary): Add power8 options.
24913         (RS/6000 and PowerPC Options): Likewise.
24915         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
24916         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
24917         wm, wn, wr documentation.
24919         * config/rs6000/constraints.md (wm): New constraint for VSX
24920         registers if direct move instructions are enabled.
24921         (wn): New constraint for no registers.
24922         (wq): New constraint for quad word even GPR registers.
24923         (wr): New constraint if 64-bit instructions are enabled.
24924         (wv): New constraint if power8 vector instructions are enabled.
24925         (wQ): New constraint for quad word memory locations.
24927         * config/rs6000/predicates.md (const_0_to_15_operand): New
24928         constraint for 0..15 for crypto instructions.
24929         (gpc_reg_operand): If VSX allow registers in VSX registers as well
24930         as GPR and floating point registers.
24931         (int_reg_operand): New predicate to match only GPR registers.
24932         (base_reg_operand): New predicate to match base registers.
24933         (quad_int_reg_operand): New predicate to match even GPR registers
24934         for quad memory operations.
24935         (vsx_reg_or_cint_operand): New predicate to allow vector logical
24936         operations in both GPR and VSX registers.
24937         (quad_memory_operand): New predicate for quad memory operations.
24938         (reg_or_indexed_operand): New predicate for direct move support.
24940         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
24941         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
24942         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
24943         (POWERPC_MASKS): Add power8 options.
24944         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
24945         various options.
24947         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24948         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
24950         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
24951         (-mpower8-fusion): New power8 options.
24952         (-mpower8-fusion-sign): Likewise.
24953         (-mpower8-vector): Likewise.
24954         (-mcrypto): Likewise.
24955         (-mdirect-move): Likewise.
24956         (-mquad-memory): Likewise.
24958         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
24959         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
24960         registers.
24961         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
24962         (rs6000_debug_vector_unit): Add p8_vector.
24963         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
24964         definitions.  Also print fusion state.
24965         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
24966         (rs6000_builtin_mask_calculate): Add power8 builtin support.
24967         (rs6000_option_override_internal): Add support for power8.
24968         (rs6000_common_init_builtins): Add debugging for skipped builtins
24969         if -mdebug=builtin.
24970         (rs6000_adjust_cost): Add power8 support.
24971         (rs6000_issue_rate): Likewise.
24972         (insn_must_be_first_in_group): Likewise.
24973         (insn_must_be_last_in_group): Likewise.
24974         (force_new_group): Likewise.
24975         (rs6000_register_move_cost): Likewise.
24976         (rs6000_opt_masks): Likewise.
24978         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
24979         power8 capable assembler, default to power7 options.
24980         (TARGET_DIRECT_MOVE): Likewise.
24981         (TARGET_CRYPTO): Likewise.
24982         (TARGET_P8_VECTOR): Likewise.
24983         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
24984         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
24985         (VECTOR_MEM_P8_VECTOR_P): Likewise.
24986         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
24987         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
24988         (TARGET_XSCVDPSPN): Likewise.
24989         (TARGET_XSCVSPDPN): Likewsie.
24990         (TARGET_SYNC_HI_QI): Likewise.
24991         (TARGET_SYNC_TI): Likewise.
24992         (MASK_CRYPTO): Likewise.
24993         (MASK_DIRECT_MOVE): Likewise.
24994         (MASK_P8_FUSION): Likewise.
24995         (MASK_P8_VECTOR): Likewise.
24996         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
24997         temporary used by some of the direct move instructions to get two FP
24998         temporary registers does not force creation of a stack frame.
24999         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
25000         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
25001         that any VSX registers are tieable, even if they are also an
25002         Altivec vector mode.
25003         (r6000_reg_class_enum): Add wm, wr, wv constraints.
25004         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
25005         (RS6000_BTM_CRYPTO): Likewise.
25006         (RS6000_BTM_COMMON): Likewise.
25008         * config/rs6000/rs6000.md (cpu attribute): Add power8.
25009         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
25010         (enum rs6000_vector): Add power8 vector support.
25012 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25014         PR target/19599
25015         PR target/57340
25016         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
25017         (any_sibcall_could_use_r3): this and handle indirect calls.
25018         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
25020 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25022         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
25024 2013-05-22  Richard Biener  <rguenther@suse.de>
25026         PR middle-end/57349
25027         * profile.c (branch_prob): Do not split blocks that are
25028         abnormally receiving from ECF_RETURNS_TWICE functions.
25030 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25032         * recog.c (offsettable_address_addr_space_p): Fix calculation of
25033         address mode.  Move pointer mode initialization to the same place.
25035 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25037         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
25038         while it has any effect.
25040 2013-05-21  Easwaran Raman  <eraman@google.com>
25042         PR tree-optimization/57322
25043         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
25044         UID of the statement added to the BB to be 1.
25046 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
25048         PR tree-optimization/57331
25049         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
25050         of conversion from pointer type to integral type with integer.
25052 2013-05-21  Martin Jambor  <mjambor@suse.cz>
25054         PR lto/57289
25055         * ipa-prop.c (ipa_read_node_info): Process param_used and
25056         controlled_uses in the same order as when writing.
25058 2013-05-21  Magnus Granberg  <baldrick@free.fr>
25060         PR plugins/56754
25061         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
25063 2013-05-21  Richard Biener  <rguenther@suse.de>
25065         PR tree-optimization/57318
25066         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
25067         estimate stmts with side-effects as likely eliminated.
25069 2013-05-21  Richard Biener  <rguenther@suse.de>
25071         PR tree-optimization/57330
25072         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
25073         preserve the call stmts fntype.
25075 2013-05-21  Richard Biener  <rguenther@suse.de>
25077         PR tree-optimization/57303
25078         * tree-ssa-sink.c (statement_sink_location): Improve killing
25079         stmt detection and properly handle self-assignments.
25081 2013-05-21  Christian Bruel  <christian.bruel@st.com>
25083         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
25084         spanning registers. LEAF_REG_REMAP is supported only for contiguous
25085         registers. Set register size out of the PARALLEL loop.
25087 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
25089         PR target/56547
25090         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
25091         (*fmasf4, *fmasf4_media): New insns.
25093 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25095         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
25096         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
25097         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
25098         (mips_idiv_insns): Update the comments to say that the returned
25099         instruction counts are in units of BASE_INSN_LENGTH.
25100         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
25101         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
25102         using 2 rather than 4 as the length of indirect MIPS16 and
25103         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
25104         length of a NOP.  Don't divide MIPS16 lengths by 2.
25105         (mips16_split_long_branches): Assume a branch is long if the
25106         length is greater than 4 rather than 8.
25107         * config/mips/mips.md (length): Give MIPS16 lengths directly,
25108         rather than multiplying them by 2.  Multiply instruction counts
25109         by BASE_INSN_LENGTH rather than 4.
25110         (*jump_mips16, tls_get_tp_mips16_<mode>)
25111         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
25113 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25115         * config/mips/mips.md (extended_mips16): Remove branch case.
25116         (length): Remove duplicated extended_mips16 test.
25118 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25120         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
25122 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
25124         * recog.h (Recog_data): Rename to...
25125         (recog_data_d): ...this.
25126         (recog_data): Update accordingly.
25127         * recog.c (recog_data): Likewise.
25128         * reload.c (save_recog_data): Likewise.
25129         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
25130         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
25132 2013-05-17  Julian Brown  <julian@codesourcery.com>
25134         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
25135         found in a REG_EQUAL note, invalidate it.
25137 2013-05-17  Easwaran Raman  <eraman@google.com>
25139         * tree-ssa-reassoc.c (find_insert_point): New function.
25140         (insert_stmt_after): Likewise.
25141         (get_def_stmt): Likewise.
25142         (ensure_ops_are_available): Likewise.
25143         (not_dominated_by): Likewise.
25144         (rewrite_expr_tree): Do not move statements beyond what is
25145         necessary. Remove call to swap_ops_for_binary_stmt...
25146         (reassociate_bb): ... and move it here.
25147         (build_and_add_sum): Assign UIDs for new statements.
25148         (linearize_expr): Likewise.
25149         (do_reassoc): Renumber gimple statement UIDs.
25151 2013-05-17  Jan Hubicka  <jh@suse.cz>
25153         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
25154         weakrefs.
25155         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
25156         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
25157         weakrefs.
25158         (output_weakrefs): Update.
25160 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
25161             Martin Jambor  <mjambor@suse.cz>
25163         PR middle-end/57276
25164         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
25165         value that corresponds to the given aggval is found in values vector.
25167 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
25169         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
25170         sse, sse2, sse3, ssse3 and sse4a flags to options.
25172 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
25174         * gengtype-state.c: (s_expr_writer): New class, to handle
25175         prettifying of output layout of s-expressions.
25176         (state_writer): New class, to write out gtype.state.
25177         (state_written_type_count): Move this variable into member data of
25178         state_writer.
25179         (s_expr_writer::s_expr_writer): New code: constructor for new class
25180         (state_writer::state_writer(): ditto
25181         (s_expr_writer::write_new_line): New function
25182         (s_expr_writer::write_any_indent): ditto
25183         (s_expr_writer::begin_s_expr): ditto
25184         (s_expr_writer::end_s_expr): ditto
25185         (write_state_fileloc): convert to method of state_writer...
25186         (state_writer:: write_state_fileloc): ...and use methods of
25187         s_expr_writer to write indentation into the gtype.state output file
25188         to visually represent the hierarchical structure of the list
25189         structures
25190         (write_state_fields): ditto, renaming to...
25191         (state_writer::write_state_fields)
25192         (write_state_a_string): ditto, renaming to...
25193         (state_writer::write_state_a_string)
25194         (write_state_string_option): ditto, renaming to...
25195         (state_writer::write_state_string_option)
25196         (write_state_type_option): ditto, renaming to...
25197         (state_writer::write_state_type_option)
25198         (write_state_nested_option): ditto, renaming to...
25199         (state_writer::write_state_nested_option)
25200         (write_state_option): ditto, renaming to...
25201         (state_writer::write_state_option)
25202         (write_state_options): ditto, renaming to...
25203         (state_writer::write_state_options)
25204         (write_state_lang_bitmap): ditto, renaming to...
25205         (state_writer::write_state_lang_bitmap)
25206         (write_state_version): ditto, renaming to...
25207         (state_writer::write_state_version)
25208         (write_state_scalar_type): ditto, renaming to...
25209         (state_writer::write_state_scalar_type)
25210         (write_state_string_type): ditto, renaming to...
25211         (state_writer::write_state_string_type)
25212         (write_state_undefined_type): ditto, renaming to...
25213         (state_writer::write_state_undefined_type)
25214         (write_state_struct_union_type): ditto, renaming to...
25215         (state_writer::write_state_struct_union_type)
25216         (write_state_struct_type): ditto, renaming to...
25217         (state_writer::write_state_struct_type)
25218         (write_state_user_struct_type): ditto, renaming to...
25219         (state_writer::write_state_user_struct_type)
25220         (write_state_lang_struct_type): ditto, renaming to...
25221         (state_writer::write_state_lang_struct_type)
25222         (write_state_param_struct_type): ditto, renaming to...
25223         (state_writer::write_state_param_struct_type)
25224         (write_state_pointer_type): ditto, renaming to...
25225         (state_writer::write_state_pointer_type)
25226         (write_state_array_type): ditto, renaming to...
25227         (state_writer::write_state_array_type)
25228         (write_state_gc_used): ditto, renaming to...
25229         (state_writer::write_state_gc_used)
25230         (write_state_common_type_content): ditto, renaming to...
25231         (state_writer::write_state_common_type_content)
25232         (write_state_type): ditto, renaming to...
25233         (state_writer::write_state_type)
25234         (write_state_pair_list): ditto, renaming to...
25235         (state_writer::write_state_pair_list)
25236         (write_state_pair): ditto, renaming to...
25237         (state_writer::write_state_pair)
25238         (write_state_typedefs): ditto, renaming to...
25239         (state_writer::write_state_typedefs)
25240         (write_state_structures): ditto, renaming to...
25241         (state_writer::write_state_structures)
25242         (write_state_param_structs): ditto, renaming to...
25243         (state_writer::write_state_param_structs)
25244         (write_state_variables): ditto, renaming to...
25245         (state_writer::write_state_variables)
25246         (write_state_srcdir): ditto, renaming to...
25247         (state_writer::write_state_srcdir)
25248         (write_state_files_list): ditto, renaming to...
25249         (state_writer::write_state_files_list)
25250         (write_state_languages): ditto, renaming to...
25251         (state_writer::write_state_languages)
25252         (write_state): create a state_writer instance and use it when
25253         writing out the state file
25255 2013-05-17  Mike Stump  <mikestump@comcast.net>
25257         PR rtl-optimization/57304
25258         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
25259         accessing DF_REF_REAL_LOC.
25261 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25263         PR rtl-optimization/57281
25264         PR rtl-optimization/57300
25265         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
25266         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
25267         what the other splitter did if the registers are dead.
25269 2013-05-17  Richard Biener  <rguenther@suse.de>
25271         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
25272         MEM_REF offsets.
25274 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25276         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
25277         linking.
25279 2013-05-17  Marek Polacek  <polacek@redhat.com>
25281         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
25282         length when doing non-zero store of storing '\0' to '\0'.
25284 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25286         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
25287         vect_external_def oprnd1 with loop_vinfo, try to emit
25288         optional cast, negation and and stmts on the loop preheader
25289         edge instead of into the pattern def seq.
25291         PR tree-optimization/57051
25292         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
25293         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
25295 2013-05-16  Nick Clifton  <nickc@redhat.com>
25297         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
25298         (rl78_is_naked_func): New function.
25299         (rl78_expand_prologue): Skip prologue generation for naked functions.
25300         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
25301         * doc/extend.texi (naked): Add RL78 to the list of processors
25302         that supports this attribute.
25304 2013-05-16  Jeff Law  <law@redhat.com>
25306         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
25308 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
25310         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
25311         cache parameters using detect_caches_amd also for CYRIX,
25312         NSC and TM2 signatures.
25314 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
25315             Dzianis Kahanovich  <mahatma@eu.by>
25317         PR target/45359
25318         PR target/46396
25319         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25320         VIA/Centaur processors and determine their cache parameters
25321         using detect_caches_amd.
25323 2013-05-16  Teresa Johnson  <tejohnson@google.com>
25325         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
25326         (rtl_verify_edges): New function.
25327         (rtl_verify_bb_insns): Ditto.
25328         (rtl_verify_bb_pointers): Ditto.
25329         (rtl_verify_bb_insn_chain): Ditto.
25330         (rtl_verify_fallthru): Ditto.
25331         (rtl_verify_bb_layout): Ditto.
25332         (rtl_verify_flow_info_1): Outline checks into new functions.
25333         (rtl_verify_flow_info): Ditto.
25335 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
25337         * cfghooks.c (copy_bbs): Add update_dominance argument.
25338         * cfghooks.h (copy_bbs): Update prototype.
25339         * tree-cfg.c (gimple_duplicate_sese_region):
25340         Add update_dominance argument.
25341         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
25342         * tree-ssa-loop-ch.c (copy_loop_headers): Update
25343         gimple_duplicate_sese_region call.
25344         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
25345         Update copy_bbs call.
25346         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
25347         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
25349 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
25351         * tree-vectorizer.h (NUM_PATTERNS): Increment.
25352         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
25353         vect_recog_rotate_pattern.
25354         (vect_recog_rotate_pattern): New function.
25356 2013-05-16  Jason Merrill  <jason@redhat.com>
25358         * Makefile.in (LLINKER): New variable.
25359         (mostlyclean): Remove link mutex.
25360         * configure.ac: Handle --enable-link-mutex.
25361         * lock-and-run.sh: New script.
25363 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25365         PR target/19599
25366         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
25367         for NULL decl.
25369 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25371         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
25373 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
25375         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
25376         * config/arm/arm.c (next_consecutive_mem): New function.
25377         (gen_movmem_ldrd_strd): Likewise.
25378         * config/arm/arm.md (movmemqi): Update condition and code.
25379         (unaligned_loaddi, unaligned_storedi): New patterns.
25381 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25383         * config.gcc: Obsolete *-*-solaris2.9*.
25384         * doc/install.texi (Specific, *-*-solaris2*): Document it.
25386 2013-05-16  Richard Biener  <rguenther@suse.de>
25388         * passes.c (init_optimization_passes): Move pass_parallelize_loops
25389         earlier, after GRAPHITE transforms and IV canonicalization.
25391 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
25393         * omp-low.c (extract_omp_for_data): For collapsed loops,
25394         if at least one of the loops is known at compile time to
25395         iterate zero times, set count to 0.
25396         (expand_omp_regimplify_p): New function.
25397         (expand_omp_for_generic): For collapsed loops, if at least
25398         one of the loops isn't known to iterate at least once,
25399         add runtime check with setting count to 0.
25400         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25401         For unsigned types if it isn't known at compile time that
25402         the loop will iterate at least once, add runtime check to bypass
25403         the whole loop if initial condition isn't true.
25405 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
25407         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
25409 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
25411         PR middle-end/57286
25412         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
25413         transformations to avoid an infinite loop.
25415 2013-05-16  Marek Polacek  <polacek@redhat.com>
25417         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
25419 2013-05-15  Leif Ekblad  <leif@rdos.net>
25421         * config/i386/i386.c (ix86_decompose_address): Use
25422         DEFAULT_TLS_SEG_REG to access TLS segment register.
25423         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
25424         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
25425         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
25427 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
25429         PR target/57260
25430         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
25431         sibling calls to functions that would normally be lazily bound,
25432         unless $gp is call-clobbered.
25434 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
25436         * config/i386/i386.c (ix86_option_override_internal): Update
25437         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
25438         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
25439         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
25440         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
25441         of TARGET_3DNOW.
25442         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
25444 2013-05-15  Andreas Schwab  <schwab@suse.de>
25446         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
25447         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
25448         third operand.
25450 2013-05-15  Teresa Johnson  <tejohnson@google.com>
25452         * loop-unroll.c (report_unroll_peel): Check decision before
25453         emitting unroll/peel message.
25455 2013-05-15  Teresa Johnson  <tejohnson@google.com>
25457         * function.h (has_bb_partition): New rtl_data flag.
25458         (bb_reorder_complete): Ditto.
25459         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
25460         instead of flag_reorder_blocks_and_partition.
25461         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
25462         with some enhancements.
25463         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
25464         * bb-reorder.c (connect_traces): Check for has_bb_partition
25465         instead of flag_reorder_blocks_and_partition.
25466         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
25467         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
25468         verify_hot_cold_block_grouping.
25469         (partition_hot_cold_basic_blocks): Set has_bb_partition.
25471 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25473         PR target/19599
25474         * config/arm/predicates.md (call_insn_operand): New predicate.
25475         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
25476         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
25477         if insn is not a tail call.
25478         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
25479         registers.
25480         * config/arm/arm.h (enum reg_class): New caller save register class.
25481         (REG_CLASS_NAMES): Likewise.
25482         (REG_CLASS_CONTENTS): Likewise.
25483         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
25484         without decls.
25486 2013-05-15  Richard Biener  <rguenther@suse.de>
25488         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
25489         of MSG_OPTIMIZED_LOCATIONS.
25490         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
25491         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
25492         message.
25493         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
25494         of MSG_OPTIMIZED_LOCATIONS.
25495         (execute_vect_slp): Likewise.
25496         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
25497         (vect_create_cond_for_alias_checks): Likewise.
25498         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
25499         (vect_recog_widen_mult_pattern): Likewise.
25500         (vect_recog_widen_sum_pattern): Likewise.
25501         (vect_recog_over_widening_pattern): Likewise.
25502         (vect_recog_widen_shift_pattern): Likewise.
25503         (vect_recog_vector_vector_shift_pattern): Likewise.
25504         (vect_recog_divmod_pattern): Likewise.
25505         (vect_recog_mixed_size_cond_pattern): Likewise.
25506         (vect_recog_bool_pattern): Likewise.
25507         (vect_pattern_recog_1): Likewise.
25509 2013-05-15  Martin Jambor  <mjambor@suse.cz>
25511         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
25512         non-functions to builtin_unreachable.
25513         * ipa-inline-transform.c (inline_call): Do not assert estimates were
25514         correct when new direct edges were discovered.
25516 2013-05-15  Martin Jambor  <mjambor@suse.cz>
25518         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
25519         header, print symbol order instead of node uid, print more information
25520         about indirect edge targets.
25521         (ipa_make_edge_direct_to_target): Print symbol order instead of node
25522         uids.
25523         (ipa_make_edge_direct_to_target): Likewise.
25524         (remove_described_reference): Likewise.
25525         (propagate_controlled_uses): Likewise.
25526         (ipa_print_node_params): Also print symbol order.
25527         (ipcp_transform_function): Print symbol order instead of node uids.
25528         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
25529         (cgraph_get_create_real_symbol_node): Likewise.
25530         * ipa-cp.c (print_lattice): Likewise.
25531         (print_all_lattices): Likewise.
25532         (determine_versionability): Likewise.
25533         (initialize_node_lattices): Likewise.
25534         (estimate_local_effects): Likewise.
25535         (update_profiling_info): Likewise.
25536         (create_specialized_node): Likewise.
25537         (perhaps_add_new_callers): Likewise.
25538         (decide_about_value): Likewise.
25539         (decide_whether_version_node): Likewise.
25540         (identify_dead_nodes): Likewise.
25541         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
25542         (dump_inline_summary): Likewise.
25543         (estimate_node_size_and_time): Likewise.
25544         (inline_analyze_function): Likewise.
25545         * ipa-inline.c (report_inline_failed_reason): Likewise.
25546         (want_early_inline_function_p): Likewise.
25547         (edge_badness): Likewise.
25548         (update_edge_key): Likewise.
25549         (inline_small_functions): Likewise.  Add dumping of order to two other
25550         dumps.
25551         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
25552         instead of node uids.
25553         (propagate_pure_const): Likewise.
25554         (propagate_pure_const): Likewise.
25555         * ipa-utils.c (dump_cgraph_node_set): Likewise.
25556         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
25557         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
25558         of node uids.
25559         * tree-pretty-print.c (dump_function_header): Likewise.
25560         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
25561         Print symbol order instead of node uids.
25563 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25565         * config/s390/s390.c (s390_register_move_cost): Don't impose the
25566         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
25568 2013-05-15  Richard Biener  <rguenther@suse.de>
25570         PR tree-optimization/57275
25571         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
25572         return value for fail to do runtime alias checks for gather loads.
25574 2013-05-15  Jan Hubicka  <jh@suse.cz>
25576         PR lto/57038
25577         PR lto/47375
25578         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
25579         weakrefs are not external.
25580         (lto_symtab_merge_decls): Fix thinko when dealing with
25581         non-lto_symtab decls.
25582         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
25583         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
25584         * varpool.c (dump_varpool_node): Dump more flags.
25586 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25588         * config/i386/i386.c (processor_alias_table): Add instruction
25589         FSGSBASE for AMD bdver3 architecture.
25591 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
25593         * tree.c (warn_deprecated_use): Print file:line using locus color.
25594         * diagnostic.c (diagnostic_report_current_module): Print file:line
25595         and file:line:column using locus color.
25597 2013-05-14  Mike Stump  <mikestump@comcast.net>
25599         * gdbinit.in: Add __null.
25601 2013-05-14  Mike Stump  <mikestump@comcast.net>
25603         * recog.h: Rename struct recog_data to Recog_data.
25604         * recog.c: Likewise.
25605         * reload.c (can_reload_into): Likewise.
25606         * config/picochip/picochip.c: Likewise.
25608 2013-05-14  Mike Stump  <mikestump@comcast.net>
25610         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
25612 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
25614         * resource.h (struct resources): Remove unch_memory member.
25615         (CLEAR_RESOURCE): Don't clear unch_memory.
25616         * resource.c (mark_referenced_resources): Don't set it.
25617         (mark_set_resources): Likewise.
25618         (mark_target_live_regs): Don't clear it.
25619         (init_resource_info): Likewise.
25620         * reorg.c (resource_conflicts_p): Don't compare it.
25621         (redundant_insn): Don't set it.
25623         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
25624         Remove prototypes.
25625         * emit-rtl.c (next_label): Remove unused function.
25626         (skip_consecutive_labels, link_cc0_insns): Move to ...
25627         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
25628         only place where these functions are used, and make them static.
25630 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
25632         * fold-const.c (fold_negate_expr): Handle vectors.
25633         (fold_truth_not_expr): Make it static.
25634         (fold_invert_truthvalue): New static function.
25635         (invert_truthvalue_loc): Handle vectors. Do not call
25636         fold_truth_not_expr directly.
25637         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
25638         <TRUTH_NOT_EXPR>: Do not cast to boolean.
25639         (fold_comparison): Handle vector constants.
25640         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
25641         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
25642         * tree.h (fold_truth_not_expr): Remove declaration.
25644 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
25646         * config/aarch64/aarch64-simd.md
25647         (aarch64_vcond_internal<mode>): Rename to...
25648         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
25649         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
25650         float modes. Clarify all iterator modes.
25651         (vcond<mode><mode>): Use new name for vcond expanders.
25652         (vcond<v_cmp_result><mode>): Likewise.
25653         (vcondu<mode><mode>: Likewise.
25654         * config/aarch64/iterators.md (VDQF_COND): New.
25656 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
25658         PR bootstrap/57266
25659         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
25660         variable for the shift amount. Check that we shift by non-negative
25661         amounts.
25663 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
25665         PR target/42017
25666         * config/arm/arm.h (EPILOGUE_USES): Only return true
25667         for LR_REGNUM after epilogue_completed.
25669 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
25671         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
25672         is error_mark_node.
25674 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25676         PR target/57261
25677         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
25678         and Solaris 11+/x86 with gld.
25679         * configure: Regenerate.
25681 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
25683         * expmed.c (expand_shift_1): Canonicalize rotates by
25684         constant bitsize / 2 to bitsize - 1.
25685         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
25686         case ROTATERT>: Likewise.
25688         Revert:
25689         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
25691         * config/i386/i386.md (rotateinv): New code attr.
25692         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25693         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25694         roll $31, %eax, etc.
25696 2013-05-14  Richard Biener  <rguenther@suse.de>
25698         PR middle-end/57235
25699         * tree-eh.c (sink_clobbers): Give up for successors with
25700         multiple predecessors and no virtual uses.
25702 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25704         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
25705         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
25707 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
25709         PR middle-end/57251
25710         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
25711         the case when both op0 and op1 have VOIDmode.
25713 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25715         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
25716         in multiply-accumulate mode.
25718 2013-05-13  Guozhi Wei  <carrot@google.com>
25720         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
25722 2013-05-13  Kai Tietz  <ktietz@redhat.com>
25724         PR target/56975
25725         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
25726         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
25727         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
25728         * config/i386/i386.c (ix86_option_override_internal): Likewise.
25729         (ix86_expand_prologue): Likewise.
25730         (ix86_expand_split_stack_prologue): Likewise.
25731         (legitimate_pic_address_disp_p): Likewise.
25732         (legitimize_pic_address): Likewise.
25733         (legitimize_tls_address): Likewise.
25734         (legitimize_pe_coff_symbol): Likewise.
25735         (output_pic_addr_const): Likewise.
25736         (construct_plt_address): Likewise.
25737         (ix86_expand_call): Likewise.
25738         (x86_output_mi_thunk): Likewise.
25739         (x86_function_profiler): Likewise.
25741 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
25743         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
25744         similar switch cases.
25745         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
25746         (aarch64_simd_mov_to_<mode>low): Delete.
25747         (aarch64_simd_mov_to_<mode>high): Delete.
25748         (move_lo_quad_<mode>): Add w<-r alternative.
25749         (aarch64_simd_move_hi_quad_<mode>): Likewise.
25750         (aarch64_simd_mov_from_*): Update type attribute.
25751         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
25752         statement.
25754 2013-05-13  Jan Hubicka  <jh@suse.cz>
25756         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
25757         * config/i386/i386.c (ix86_compute_frame_layout,
25758         ix86_expand_epilogue, emit_i387_cw_initialization,
25759         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
25760         ix86_local_alignment): Fix use of size/speed predicates.
25762 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
25764         PR tree-optimization/45216
25765         PR tree-optimization/57157
25766         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
25767         the (-Y) & (B - 1) variant if OP is |.
25768         * expmed.c (expand_shift_1): For rotations by const0_rtx just
25769         return shifted.  Use (-op1) & (prec - 1) as other_amount
25770         instead of prec - op1.
25772 2013-05-13  Martin Jambor  <mjambor@suse.cz>
25774         PR middle-end/42371
25775         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
25776         (ipa_constant_data): New type.
25777         (ipa_jump_func): Use ipa_constant_data to hold information about
25778         constant jump functions.
25779         (ipa_get_jf_constant): Adjust to jump function type changes.
25780         (ipa_get_jf_constant_rdesc): New function.
25781         (ipa_param_descriptor): New field controlled_uses.
25782         (ipa_get_controlled_uses): New function.
25783         (ipa_set_controlled_uses): Likewise.
25784         * ipa-ref.h (ipa_find_reference): Declare.
25785         * ipa-prop.c (ipa_cst_ref_desc): New type.
25786         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
25787         changes.
25788         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
25789         New parameter cs.  Adjust all callers.
25790         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
25791         (remove_described_reference): New function.
25792         (jfunc_rdesc_usable): Likewise.
25793         (try_make_edge_direct_simple_call): Decrement controlled use count,
25794         attempt to remove reference if it hits zero.
25795         (combine_controlled_uses_counters): New function.
25796         (propagate_controlled_uses): Likewise.
25797         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
25798         (ipa_edge_duplication_hook): Duplicate reference descriptions.
25799         (ipa_print_node_params): Print described use counter.
25800         (ipa_write_jump_function): Adjust to jump function type changes.
25801         (ipa_read_jump_function): New parameter CS, pass it to
25802         ipa_set_jf_constant.  Adjust caller.
25803         (ipa_write_node_info): Stream controlled use count
25804         (ipa_read_node_info): Likewise.
25805         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
25806         asserting.
25807         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
25808         count.  Remove cloning-added reference if it reaches zero.
25809         * ipa-ref.c (ipa_find_reference): New function.
25811 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25813         * config/i386/i386.c (processor_target_table): Modified default
25814         alignment values for AMD BD and BT architectures.
25816 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
25818         * tree-vect-generic.c (uniform_vector_p): Move ...
25819         * tree.c (uniform_vector_p): ... here.
25820         * tree.h (uniform_vector_p): Declare it.
25821         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
25822         into a scalar.
25824 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
25826         PR tree-optimization/57230
25827         * tree-ssa-strlen.c (handle_char_store): Record length for
25828         array store from STRING_CST.
25830         PR tree-optimization/57230
25831         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
25832         check.
25834 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
25836         * config/epiphany/epiphany.c (epiphany_init): Check size of
25837         NUM_MODES_FOR_MODE_SWITCHING.
25838         (epiphany_expand_prologue):
25839         Remove CONFIG_REGNUM initial value handling code.
25840         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
25841         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
25842         (emit_set_fp_mode, epiphany_mode_after): Likewise.
25843         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
25844         Don't return 1 for FP_MODE_NONE.
25845         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
25846         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
25847         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
25848         * config/epiphany/epiphany.md (save_config): New pattern.
25850 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
25852         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
25854 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
25856         * config/i386/i386.md (memory): Handle sseishft1.
25857         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
25858         (*vec_extractv2di_1): Ditto.
25860 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
25862         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
25863         saved registers.
25865 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25867         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
25868         Add mthumb/march=armv7-a multilib.
25869         Add mthumb/march=armv7-r multilib.
25870         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
25872 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
25874         * config/v850/t-rtems: Add more multilibs.
25876 2013-05-10  Richard Biener  <rguenther@suse.de>
25878         PR tree-optimization/57214
25879         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
25880         not propagate from SSA names that occur in abnormal PHI nodes.
25882 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
25884         * stor-layout.c (element_precision): New function.
25885         * machmode.h (element_precision): Declare it.
25886         * tree.c (build_minus_one_cst): New function.
25887         (element_precision): Likewise.
25888         * tree.h (build_minus_one_cst): Declare new function.
25889         (element_precision): Likewise.
25890         * fold-const.c (operand_equal_p): Use element_precision.
25891         (fold_binary_loc): Handle vector types.
25892         * convert.c (convert_to_integer): Use element_precision.
25893         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
25894         separately.
25896 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
25898         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
25899         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
25900         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
25901         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25902         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
25903         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
25904         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
25905         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25906         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
25907         (Uuw8): New constraints.
25908         (Usb4): Move into alphabetical order.
25909         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
25910         (sd8_operand, ub8_operand, uw8_operand): New predicates.
25911         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
25912         previously unnamed patterns.
25913         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
25914         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
25915         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
25916         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
25917         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
25918         of specific lengths.
25920 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
25922         * config/i386/i386.md (rotateinv): New code attr.
25923         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25924         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25925         roll $31, %eax, etc.
25927         PR tree-optimization/45216
25928         PR tree-optimization/57157
25929         * tree-ssa-forwprop.c (simplify_rotate): New function.
25930         (ssa_forward_propagate_and_combine): Call it.
25932 2013-05-10  Richard Biener  <rguenther@suse.de>
25934         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
25935         disable peeling when we version for aliasing.
25936         (vector_alignment_reachable_p): Honor explicit user alignment.
25937         (vect_supportable_dr_alignment): Likewise.
25938         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
25939         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
25940         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
25941         then peeling to arrange for the cost-model check to come first.
25943 2013-05-10  Alan Modra  <amodra@gmail.com>
25945         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
25946         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
25947         * configure: Regenerate.
25949 2013-05-10  Alan Modra  <amodra@gmail.com>
25951         PR target/55033
25952         * varasm.c (default_elf_select_section): Move !DECL_P check..
25953         (get_named_section): ..to here before calling get_section_name.
25954         Adjust assertion.
25955         (default_section_type_flags): Add DECL_P check.
25956         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
25957         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
25959 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
25961         * config/epiphany/epiphany.c (epiphany_expand_prologue):
25962         When using gen_stack_adjust_str with a register offset, add a
25963         REG_FRAME_RELATED_EXPR note.
25965 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
25967         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
25968         (*vec_extractv4si_zext_mem): Ditto.
25969         (*vec_extractv2di): Add 0->x and x->x alternatives.
25970         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
25971         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
25973 2013-05-09  Jason Merrill  <jason@redhat.com>
25975         N3639 C++1y VLA support
25976         * gimplify.c (gimplify_vla_decl): Don't touch an existing
25977         DECL_VALUE_EXPR.
25979         * tree.c (build_constructor_va): New.
25980         * tree.h: Declare it.
25982 2013-05-09  Martin Jambor  <mjambor@suse.cz>
25984         PR lto/57084
25985         * gimple-fold.c (canonicalize_constructor_val): Call
25986         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
25988 2013-05-09  Jan Hubicka  <jh@suse.cz>
25989             Richard Biener  <rguenther@suse.de>
25991         PR lto/54095
25992         * symtab.c (symtab_make_decl_local): Do not add private names.
25994 2013-05-09  Jan Hubicka  <jh@suse.cz>
25996         PR lto/54095
25997         * symtab.c (insert_to_assembler_name_hash): Handle clones.
25998         (unlink_from_assembler_name_hash): Likewise.
25999         (symtab_prevail_in_asm_name_hash, symtab_register_node,
26000         symtab_unregister_node, symtab_initialize_asm_name_hash,
26001         change_decl_assembler_name): Update.
26003 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
26005         * config/aarch64/aarch64.md: New movtf split.
26006         (*movtf_aarch64): Update.
26007         (aarch64_movdi_tilow): Handle TF modes and rename to
26008         aarch64_movdi_<mode>low.
26009         (aarch64_movdi_tihigh): Handle TF modes and rename to
26010         aarch64_movdi_<mode>high
26011         (aarch64_movtihigh_di): Handle TF modes and rename to
26012         aarch64_mov<mode>high_di
26013         (aarch64_movtilow_di): Handle TF modes and rename to
26014         aarch64_mov<mode>low_di
26015         (aarch64_movtilow_tilow): Remove spurious whitespace.
26016         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
26017         splits.
26018         (aarch64_print_operand): Update.
26020 2013-05-09  Alan Modra  <amodra@gmail.com>
26022         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
26023         powerpc64le.
26024         * configure: Regenerate.
26026 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
26028         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
26029         splitter preparation statements.
26030         * config/i386/sse.md (*vec_extract* splitters): Ditto.
26031         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
26032         adjust_address_nv.
26034 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26036         * gimple-ssa-strength-reduction.c (count_candidates): Change
26037         return value to int.
26038         (analyze_candidates_and_replace): Change type of length to int.
26040 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
26042         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
26043         (*vec_extract<mode>): Use VI12_128 mode iterator.
26044         (*vec_extract<mode>_mem): Ditto.
26045         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
26046         attribute.
26048 2013-05-08  Diego Novillo  <dnovillo@google.com>
26050         PR bootstrap/54659
26052         Revert:
26053         2012-08-17  Diego Novillo  <dnovillo@google.com>
26055         PR bootstrap/54281
26056         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
26057         * config.in: Regenerate.
26058         * configure: Regenerate.
26059         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
26061 2013-05-08  Jan Hubicka  <jh@suse.cz>
26063         PR lto/54095
26064         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
26065         * cgraph.h (symtab_node_base): Add unique_name.
26066         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26067         input_overwrite_node, input_varpool_node): Stream unique_name.
26068         * cgraphclones.c (cgraph_create_virtual_clone,
26069         cgraph_function_versioning): Set unique_name.
26070         * ipa.c (function_and_variable_visibility): Set unique_name.
26072 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26074         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
26075         (alloc_cand_and_find_basis): Restrict conditional candidate
26076         processing to CAND_MULTs.
26078 2013-05-08  Jan Hubicka  <jh@suse.cz>
26080         PR lto/54095
26081         lto-symtab.c (lto_symtab_symbol_p): New function.
26082         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
26083         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
26084         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
26085         Skip static symbols.
26087 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
26089         PR tree-optimization/57200
26090         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
26091         Only call inform if the preceding warning_at returns true.
26093 2013-05-07  Han Shen  <shenhan@google.com>
26095         * cfgexpand.c (record_or_union_type_has_array_p): New function.
26096         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
26097         * common.opt (fstack-protector-strong): New option.
26098         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
26099         * doc/invoke.texi (Optimization Options): Document
26100         "-fstack-protector-strong".
26101         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
26103 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
26105         * config/mips/mips.c (mips_machine_reorg2): Return 0.
26107 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
26109         * ira.c (update_equiv_regs): Add insn having equiv memory even if
26110         it is not lhs of the insn.
26111         (setup_reg_equiv): Remove insn having equiv memory which it is not
26112         lhs of the insn.
26113         * lra-constraints.c (process_address): Try to improve generation
26114         code for address base + disp.
26115         (lra_constraints): Make correct the code for checking insn setting
26116         up backward equivalence.  Remove insn only if it is in the init
26117         insn list.
26118         * lra-eliminations.c (update_reg_eliminate): Change return value.
26119         (lra_eliminate): Use the result.
26121 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
26123         * config/i386/sse.md (ssescalarnummask): New mode attribute.
26124         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
26125         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
26126         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
26127         register target operands.
26128         (*vec_extractv8hi_sse2): New pattern.
26129         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
26130         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
26131         (*vec_extract<mode>_mem): New insn and split pattern.
26133 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
26135         * config/arm/arm.c (arm_asan_shadow_offset): New function.
26136         (TARGET_ASAN_SHADOW_OFFSET): Define.
26137         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
26138         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
26140 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26142         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
26143         (incr_vec_index): Return -1 if increment not found.
26144         (create_add_on_incoming_edge): Assert if increment not found.
26145         (record_increment): Limit number of increments recorded.
26146         (all_phi_incrs_profitable): Return false if an increment not found.
26147         (replace_profitable_candidates): Don't process increments that were
26148         not recorded.
26149         (analyze_candidates_and_replace): Limit size of incr_vec.
26151 2013-05-07  Richard Biener  <rguenther@suse.de>
26153         * calls.c (special_function_p): setjmp-like functions are leaf.
26154         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
26155         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
26157 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
26159         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
26160         (aarch64_simd_mov<mode>): New expander.
26161         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
26162         (aarch64_simd_mov_to_<mode>high): Likewise.
26163         (aarch64_simd_mov_from_<mode>low): Likewise.
26164         (aarch64_simd_mov_from_<mode>high): Likewise.
26165         (aarch64_dup_lane<mode>): Update.
26166         (aarch64_dup_lanedi): New instruction pattern.
26167         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
26168         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
26170 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26172         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
26173         (replace_mult_candidate): Remove unnecessary argument; remove
26174         unnecessary parameter from call to introduce_cast_before_cand.
26175         (replace_unconditional_candidate): Remove unnecessary parameter
26176         from call to replace_mult_candidate.
26177         (replace_conditional_candidate): Likewise.
26178         (insert_initializers): Use make_temp_ssa_name.
26179         (introduce_cast_before_cand): Remove unnecessary argument; use
26180         make_temp_ssa_name.
26181         (replace_one_candidate): Remove unnecessary argument; remove
26182         unnecessary parameter from calls to introduce_cast_before_cand.
26183         (replace_profitable_candidates): Remove unnecessary parameters
26184         from calls to replace_one_candidate.
26186 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26188         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
26189         phi def as possibly hiding a basis for a CAND_ADD whose operands
26190         have been commuted in the analysis.
26191         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
26193 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26195         * config/aarch64/aarch64.md
26196         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
26197         shift value between 0-4.
26199 2013-05-07  Richard Biener  <rguenther@suse.de>
26201         * double-int.h (rshift): New overload.
26202         * double-int.c (rshift): New function.
26203         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
26204         (create_reference_ops_from_ref): Remove.
26205         (vn_reference_insert): Use shared ops for constructing the
26206         reference and copy it.
26208 2013-05-07  Richard Biener  <rguenther@suse.de>
26210         PR middle-end/57190
26211         * tree-eh.c (sink_clobbers): Properly propagate
26212         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26214 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
26216         PR tree-optimization/57149
26217         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
26218         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
26219         collect_phi_def_edges, execute_late_warn_uninitialized): Use
26220         uninit_undefined_value_p instead of ssa_undefined_value_p.
26222         PR debug/57184
26223         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
26224         for modifier == EXPAND_INITIALIZER.
26226 2013-05-07  Anton Blanchard  <anton@samba.org>
26228         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
26229         for powerpc64 little endian.
26230         * configure: Regenerate.
26232 2013-05-06  Graham Stott  <grahams@btinternet.com>
26234         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
26235         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
26236         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
26237         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
26239 2013-05-06  Graham Stott  <grahams@btinternet.com>
26241         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
26242         codes which allow non-lvalues.
26244 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
26246         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
26247         components are all 1s.
26248         (integer_minus_onep): New function.
26249         * tree.h (integer_minus_onep): Declare it.
26250         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
26251         integer_minus_onep instead of integer_all_onesp.
26253 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26255         PR target/52933
26256         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
26257         variations of these patterns.
26259 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
26261         * config/i386/i386.md (isa): Add x64_sse4 member.
26262         (enabled): Handle x64_sse4.
26263         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
26264         instruction for 64bit SSE4_1 targets.  Update insn attributes.
26265         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
26266         instruction for SSE4_1 targets.  Update insn attributes.
26267         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26268         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
26269         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
26270         const_1 selector.
26271         (*vec_extractv4si): Rename from *sse4_1_pextrd.
26272         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
26273         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
26275 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26277         PR target/57108
26278         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
26280 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
26282         * final.c (do_assembler_dialects): Don't handle curly braces and
26283         vertical bar escaped by % as dialect delimiters.
26284         (output_asm_insn): Print curly braces and vertical bar if escaped
26285         by % and ASSEMBLER_DIALECT defined.
26286         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
26287         * doc/tm.texi: Regenerated.
26289 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
26291         * config/mips/mips.c: Include tree-pass.h.
26292         (mips_reorg): Split in pre- and post-dbr_schedule parts.
26293         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
26294         (pass_mips_machine_reorg2): New machine specific pass.
26295         (insert_pass_mips_machine_reorg2): New pass plugin definition.
26296         (mips_option_override): Register the new pass.
26297         * rtl.h (cleanup_barriers): Remove prototype.
26298         (dbr_schedule): Likewise.
26299         * jump.c (cleanup_barriers): Make static.
26300         * reorg.c (dbr_schedule): Likewise.
26302 2013-05-06  Richard Biener  <rguenther@suse.de>
26304         PR tree-optimization/57185
26305         * tree-parloops.c (add_field_for_reduction): Handle anonymous
26306         SSA names properly.
26308 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
26310         PR target/57106
26311         * config/i386/i386.c (add_parameter_dependencies): Add dependence
26312         between "first_arg" and "insn", not "last" and "insn".
26314 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26316         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
26317         (find_candidates_in_block): Re-enable slsr_process_phi.
26318         (create_phi_basis): Fix double counting of candidate adjustment.
26320 2013-05-06  Richard Biener  <rguenther@suse.de>
26322         PR middle-end/57147
26323         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
26324         the edge is also fallthru, preserve it and just clear the
26325         abnormal flag.
26326         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
26327         also complex, preserve that and just clear the fallthru flag.
26328         * tree-inline.c (update_ssa_across_abnormal_edges): Also
26329         update virtual operands.
26331 2013-05-06  Alan Modra  <amodra@gmail.com>
26333         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
26334         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
26335         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
26336         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
26337         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26338         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
26340 2013-05-06  Alan Modra  <amodra@gmail.com>
26342         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
26343         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
26344         (DEFAULT_ASM_ENDIAN): Define.
26345         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26346         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
26347         Update -K PIC clause from sysv4.h.
26348         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
26349         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
26351 2013-05-06  Alan Modra  <amodra@gmail.com>
26353         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
26354         twice for little-endian.
26355         (ashrdi3_no_power, ashrdi3): Support little-endian.
26357 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26359         PR target/55303
26360         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
26361         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
26362         related expanders.
26363         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
26364         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
26365         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
26366         New predicates.
26368 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
26369             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26371         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
26372         * config/pa/pa.opt: Make mbig-switch a no-op.
26373         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
26374         (CASE_VECTOR_MODE): Always return SImode.
26375         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
26376         for the !TARGET_BIG_SWITCH case.
26377         * config/pa/pa-linux.h: Likewise.
26378         * config/pa/pa-openbsd.h: Likewise.
26379         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
26380         * config/pa/pa.md (short_jump): Remove define_insn.
26381         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
26382         (casesi0): Remove define_insn.
26383         (type): Remove btable_branch.
26384         (pa_combine_type): Likewise.
26385         (in_nullified_branch_delay): Likewise.
26386         (in_call_delay): Likewise.
26387         (define_delay): Likewise.
26388         (define_insn_reservation "Z3"): Likewise.
26389         (define_insn_reservation "Z4"): Likewise.
26390         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
26391         (pa_adjust_insn_length): Remove adjustment for btable branches.
26392         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
26393         and mno-big-switch
26395 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
26397         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26398         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
26399         Add m->r,x alternatives.
26400         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
26401         splitters using SWI48x mode iterator.
26402         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
26403         TARGET_64BIT.  Add m->x alternative.
26404         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
26405         Add o->x alternative.  Enable for TARGET_SSE.
26406         (sse_storeq): Remove expander.
26407         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
26408         with memory input operand.
26409         (*vec_extractv2di_1 splitter): New.
26410         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
26411         * config/i386/i386.md (ssevecmodelower): New mode attribute.
26413 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
26415         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
26416         (INT_LOWPART): Delete.
26417         (extract_MB): Adjust.
26418         (extract_ME): Adjust.
26419         (print_operand): Adjust.
26421 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
26423         * config/rs6000/predicates.md (reg_or_add_cint_operand,
26424         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26425         (reg_or_logical_cint_operand, easy_fp_constant,
26426         logical_const_operand): Delete "CONST_DOUBLE" case.
26427         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
26428         "HOST_BITS_PER_WIDE_INT == 64" test.
26429         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
26430         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
26431         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
26432         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
26433         test.
26434         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
26435         CONST_DOUBLE DImode/VOIDmode case.
26436         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
26437         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
26438         CONST_DOUBLE VOIDmode case.
26439         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26440         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
26441         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
26442         Delete CONST_DOUBLE case.
26443         (splitters for mov FMOVE64 const_double): Delete
26444         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
26445         "HOST_BITS_PER_WIDE_INT >= 64" test.
26446         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
26447         case.
26448         (mov DI const_double): Delete.
26450 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
26452         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
26453         on op shows all bits zero in mode of a lowpart subreg, return zero.
26455 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
26457         PR target/57150
26458         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
26459         to save TFmode registers and DImode to save TImode registers for
26460         caller save operations.
26461         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
26462         mark being partially clobbered since they only use the first
26463         double word.
26465         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
26466         and TDmode only use the upper 64-bits of each VSX register.
26468 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26470         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
26471         (find_candidates_in_block): Disable slsr_process_phi.
26473 2013-05-03  Guozhi Wei  <carrot@google.com>
26475         * coverage.c (coverage_obj_init): Move the construction of gcov
26476         constructor to ...
26477         (build_init_ctor): ... here.
26479 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26481         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
26482         (slsr_cand_d): Redefine def_phi.
26483         (stride_status, phi_adjust_status, count_phis_status): New enums.
26484         (find_phi_def): New.
26485         (find_basis_for_base_expr): New.
26486         (find_basis_for_candidate): Handle hidden bases.
26487         (alloc_cand_and_find_basis): Handle phi candidates.
26488         (slsr_process_phi): New.
26489         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
26490         (create_mul_imm_cand): Likewise.
26491         (create_add_ssa_cand): Exclude phi base candidates.
26492         (create_add_imm_cand): Likewise.
26493         (slsr_process_cast): Likewise.
26494         (slsr_process_copy): Likewise.
26495         (find_candidates_in_block): Handle phi candidates.
26496         (dump_candidate): Likewise.
26497         (unconditional_cands): Delete.
26498         (unconditional_cands_with_known_stride_p): Delete.
26499         (phi_dependent_cand_p): New.
26500         (cand_increment): Handle phi-dependent candidates.
26501         (replace_dependent): Delete.
26502         (replace_mult_candidate): New.
26503         (replace_unconditional_candidate): New.
26504         (incr_vec_index): Move to avoid forward reference.
26505         (create_add_on_incoming_edge): New.
26506         (create_phi_basis): New.
26507         (replace_dependents): Delete.
26508         (replace_conditional_candidate): New.
26509         (phi_add_costs): New.
26510         (replace_uncond_cands_and_profitable_phis): New.
26511         (record_increment): Handle phi adjustments.
26512         (record_phi_increments): New.
26513         (record_increments): Handle phi adjustments.
26514         (phi_incr_cost): New.
26515         (lowest_cost_path): Handle phis.
26516         (total_savings): Likewise.
26517         (analyze_increments): Likewise.
26518         (ncd_with_phi): New.
26519         (ncd_of_cand_and_phis): New.
26520         (nearest_common_dominator_for_cands): Handle phi increments.
26521         (all_phi_incrs_profitable): New.
26522         (replace_profitable_candidates): Handle phi-dependent candidates.
26523         (analyze_candidates_and_replace): Likewise.
26525 2013-05-03  Teresa Johnson  <tejohnson@google.com>
26527         PR bootstrap/57154
26528         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
26529         do not exceed REG_BR_PROB_BASE.
26531 2013-05-03  Jeff Law  <law@redhat.com>
26533         PR tree-optimization/57144
26534         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
26535         operand of the condition will bit into the new type when eliminating
26536         a cast feeding a condition.
26538 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
26540         PR rtl-optimization/57130
26541         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
26542         of COMPARE as in_code to the recursive call if needed.
26544 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
26546         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
26547         (enabled): Handle new members.
26548         * config/i386/sse.md (*vec_concatv2si): Merge from
26549         *vec_concatv2si_sse2 and vec_concatv2si_sse.
26550         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
26552 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
26554         PR tree-optimization/57027
26555         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
26556         for fnms opportunity, check we got the prerequisite kind
26557         of tree / gimple before using accessor functions.
26559 2013-05-03  Richard Biener  <rguenther@suse.de>
26561         * double-int.h (lshift): New overload without precision
26562         and arith argument.
26563         (operator *=, operator +=, operator -=): Move ...
26564         * double-int.c (operator *=, operator +=, operator -=): ... here
26565         and implement more efficiently.
26566         (mul_double_with_sign): Remove.
26567         (lshift_double): Adjust to take unsinged shift argument, push
26568         dispatching code to callers.
26569         (mul_double_wide_with_sign): Add early out for callers that
26570         are not interested in high parts or overflow.
26571         (lshift): New function.
26572         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
26573         dispatch code here.
26574         (lrotate, rrotate): Use logical shifts.
26575         * expr.c (get_inner_reference): Use lshift.
26576         * fixed-value.c (do_fixed_divide): Likewise.
26577         * tree-dfa.c (get_ref_base_and_extent): Likewise.
26578         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26579         (indirect_refs_may_alias_p): Likewise.
26580         (stmt_kills_ref_p_1): Likewise.
26582 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
26584         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
26586 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
26588         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
26589         scalar form of FABD instruction.
26591 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
26593         * lra-constraints.c (process_alt_operands): Add checking alt
26594         number to choose the best alternative.
26596 2013-05-02  Richard Biener  <rguenther@suse.de>
26598         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
26599         bitmap and its handling.
26600         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
26602 2013-05-02  Richard Biener  <rguenther@suse.de>
26604         PR middle-end/57140
26605         * tree-inline.c (copy_loops): Properly handle removed loops.
26606         (copy_cfg_body): Mark destination loops for fixup if source
26607         loops needed fixup.
26609 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
26611         PR target/56732
26612         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
26613         generating simple_return for naked functions.
26615 2013-05-02  Martin Jambor  <mjambor@suse.cz>
26617         PR middle-end/56988
26618         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
26619         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
26620         flags match.
26621         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
26622         ipa_agg_replacement_value structures.
26623         (known_aggs_to_agg_replacement_list): Likewise.
26624         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
26625         (read_agg_replacement_chain): Likewise.
26626         (ipcp_transform_function): Also check that by_ref flags match.
26628 2013-05-02  Richard Biener  <rguenther@suse.de>
26630         * graphds.h (struct graph): Add obstack member.
26631         * graphds.c (new_graph): Initialize obstack and allocate
26632         vertices from it.
26633         (add_edge): Allocate edge from the obstack.
26634         (free_graph): Free the obstack instead of all edges and vertices.
26636 2013-05-02  Teresa Johnson  <tejohnson@google.com>
26638         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
26639         divides.
26640         * cfg.c (update_bb_profile_for_threading): Ditto.
26641         * tree-inline.c (copy_bb): Ditto.
26642         (copy_edges_for_bb): Ditto.
26643         (initialize_cfun): Ditto.
26644         (copy_cfg_body): Ditto.
26645         (expand_call_inline): Ditto.
26646         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
26647         (estimate_node_size_and_time): Ditto.
26648         (inline_merge_summary): Ditto.
26649         * cgraphclones.c (cgraph_clone_edge): Ditto.
26650         (cgraph_clone_node): Ditto.
26651         * sched-rgn.c (compute_dom_prob_ps): Ditto.
26652         (compute_trg_info): Ditto.
26654 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
26656         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
26657         S reg when fp attribute set.
26658         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
26660 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
26662         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
26663         New pattern.
26664         (*and_one_cmplsi3_compare0_uxtw): Likewise.
26665         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
26666         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
26668 2013-05-02  Richard Biener  <rguenther@suse.de>
26670         * tree-scalar-evolution.c (scev_info_hasher): Remove.
26671         (struct instantiate_cache_entry): New type.
26672         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
26673         (struct instantiate_cache_type): New type.
26674         (set_instantiated_value, get_instantiated_value): Remove.
26675         (get_instantiated_value_entry): New function.
26676         (instantiate_scev_name): Use the new cache and adjust.
26677         (instantiate_scev_poly): Adjust.
26678         (instantiate_scev_binary): Likewise.
26679         (instantiate_array_ref): Likewise.
26680         (instantiate_scev_convert): Likewise.
26681         (instantiate_scev_not): Likewise.
26682         (instantiate_scev_3): Likewise.
26683         (instantiate_scev_2): Likewise.
26684         (instantiate_scev_r): Likewise.
26685         (instantiate_scev): Likewise.
26686         (resolve_mixers): Likewise.
26688 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
26690         PR target/57091
26691         * lra-constraints.c (best_small_class_operands_num): Remove.
26692         (process_alt_operands): Remove small_class_operands_num.  Take
26693         small classes operands into losers and only if the operand is not
26694         matched.  Modify debugging output.
26695         (curr_insn_transform): Remove best_small_class_operands_num.
26696         Print insn name.
26698 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26700         * config/aarch64/aarch64-builtins.c
26701         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
26702         * config/aarch64/aarch64-simd-builtins.def
26703         (reduc_splus_): Add new modes.
26704         (reduc_uplus_): New.
26705         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
26706         (reduc_uplus_v4sf): Likewise.
26707         (reduc_splus_v4sf): Likewise.
26708         (aarch64_addv<mode>): Likewise.
26709         (reduc_uplus_<mode>): Likewise.
26710         (reduc_splus_<mode>): Likewise.
26711         (aarch64_addvv2di): Likewise.
26712         (reduc_uplus_v2di): Likewise.
26713         (reduc_splus_v2di): Likewise.
26714         (aarch64_addvv2si): Likewise.
26715         (reduc_uplus_v2si): Likewise.
26716         (reduc_splus_v2si): Likewise.
26717         (reduc_<sur>plus_<mode>): New.
26718         (reduc_<sur>plus_v2di): Likewise.
26719         (reduc_<sur>plus_v2si): Likewise.
26720         (reduc_<sur>plus_v4sf): Likewise.
26721         (aarch64_addpv4sf): Likewise.
26722         * config/aarch64/arm_neon.h
26723         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
26724         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
26725         add UNSPEC_SADDV, UNSPEC_UADDV.
26726         (SUADDV): New.
26727         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
26729 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26731         * config/aarch64/arm_neon.h
26732         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
26734 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26736         * config/aarch64/aarch64-builtins
26737         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
26739 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26741         * config/aarch64/aarch64-simd-builtins.def
26742         (reduc_smax_): New.
26743         (reduc_smin_): Likewise.
26744         (reduc_umax_): Likewise.
26745         (reduc_umin_): Likewise.
26746         (reduc_smax_nan_): Likewise.
26747         (reduc_smin_nan_): Likewise.
26748         (fmax): Remove.
26749         (fmin): Likewise.
26750         (smax): Update for V2SF, V4SF and V2DF modes.
26751         (smin): Likewise.
26752         (smax_nan): New.
26753         (smin_nan): Likewise.
26754         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
26755         (<su><maxmin><mode>3): ...This, refactor.
26756         (s<maxmin><mode>3): New.
26757         (<maxmin_uns><mode>3): Likewise.
26758         (reduc_<maxmin_uns>_<mode>): Refactor.
26759         (reduc_<maxmin_uns>_v4sf): Likewise.
26760         (reduc_<maxmin_uns>_v2si): Likewise.
26761         (aarch64_<fmaxmin><mode>: Remove.
26762         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
26763         new builtin names.
26764         (vmin<q>_f<32,64>): Likewise.
26765         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26766         (FMAXMIN): New.
26767         (su): Add mappings for smax, smin, umax, umin.
26768         (maxmin): New.
26769         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26770         (FMAXMIN): Rename as...
26771         (FMAXMIN_UNS): ...This.
26772         (maxminv): Remove.
26773         (fmaxminv): Likewise.
26774         (fmaxmin): Likewise.
26775         (maxmin_uns): New.
26776         (maxmin_uns_op): Likewise.
26778 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26780         * config/aarch64/arm_neon.h
26781         (vac<ge, gt><sd>_f<32, 64>): Rename to...
26782         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
26783         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
26785 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26787         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
26788         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
26790 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26792         * config/aarch64/aarch64-simd.md
26793         (vcond<mode>_internal): Handle special cases for constant masks.
26794         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
26795         (vcondu<mode><mode>): Likewise.
26796         (vcond<v_cmp_result><mode>): New.
26798 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26800         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
26801         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
26802         * config/aarch64/aarch64-simd-builtins.def
26803         (cmeq): Update to BUILTIN_VALLDI.
26804         (cmgt): Likewise.
26805         (cmge): Likewise.
26806         (cmle): Likewise.
26807         (cmlt): Likewise.
26808         * config/aarch64/arm_neon.h
26809         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
26810         to builtins or C as appropriate.
26812 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26814         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
26815         (cmgeu): ...This.
26816         (cmhi): Rename to...
26817         (cmgtu): ...This.
26818         * config/aarch64/aarch64-simd.md
26819         (simd_mode): Add SF.
26820         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
26821         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
26822         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
26823         (cstore<mode>_neg): ...This.
26824         * config/aarch64/iterators.md
26825         (VALLF): new.
26826         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
26827         (COMPARISONS): New.
26828         (UCOMPARISONS): Likewise.
26829         (optab): Add missing comparisons.
26830         (n_optab): New.
26831         (cmp_1): Likewise.
26832         (cmp_2): Likewise.
26833         (CMP): Likewise.
26834         (cmp): Remove.
26835         (VCMP_S): Likewise.
26836         (VCMP_U): Likewise.
26837         (V_cmp_result): Add DF, SF modes.
26838         (v_cmp_result): Likewise.
26839         (v): Likewise.
26840         (vmtype): Likewise.
26841         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
26843 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
26845         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
26846         define_insn to define_insn_and_split.
26847         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
26848         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
26849         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
26850         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
26851         (thumb2_negscc): Likewise.
26853 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
26855         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
26857 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
26859         * config/arm/thumb2.md: Remove trailing whitespaces.
26861 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26863         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
26864         Use gen_int_mode rather than GEN_INT.
26866 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
26868         * value-prof.c (stream_in_histogram_value): Remove the strayed
26869         debug_gimple_stmt.
26871 2013-04-30  Richard Biener  <rguenther@suse.de>
26873         PR middle-end/57122
26874         * cfghooks.c (split_edge): Properly check for the loop latch edge.
26876 2013-04-30  Richard Biener  <rguenther@suse.de>
26878         PR middle-end/57107
26879         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
26881 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
26883         PR rtl-optimization/56957
26884         PR rtl-optimization/57105
26885         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
26886         variable.  Use just INSN_UID for determining whether an insn
26887         should be only disconnected from the insn stream.
26888         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
26890 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
26892         PR tree-optimization/57104
26893         * tsan.c (instrument_expr): Don't instrument accesses to
26894         DECL_HARD_REGISTER VAR_DECLs.
26896 2013-04-30  Richard Biener  <rguenther@suse.de>
26898         * function.h (loops_for_fn): New inline function.
26899         (set_loops_for_fn): Likewise.
26900         * cfgloop.h (place_new_loop): Add struct function parameter.
26901         (get_loop): Likewise.
26902         (get_loops): Likewise.
26903         (number_of_loops): Likewise.
26904         (fel_next): Adjust.
26905         (fel_init): Likewise.
26906         * cfg.c (get_loop_copy): Adjust.
26907         * cfgloop.c (flow_loops_dump): Likewise.
26908         (record_loop_exits): Likewise.
26909         (verify_loop_structure): Likewise.
26910         * cfgloopanal.c (mark_irreducible_loops): Likewise.
26911         (estimate_reg_pressure_cost): Likewise.
26912         (mark_loop_exit_edges): Likewise.
26913         * cfgloopmanip.c (place_new_loop): Likewise.
26914         (add_loop): Likewise.
26915         (duplicate_loop): Likewise.
26916         * graph.c (draw_cfg_nodes): Likewise.
26917         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
26918         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
26919         (extract_affine_chrec): Likewise.
26920         (build_scop_iteration_domain): Likewise.
26921         * graphite.c (graphite_initialize): Likewise.
26922         * ira-build.c (create_loop_tree_nodes): Likewise.
26923         (more_one_region_p): Likewise.
26924         (rebuild_regno_allocno_maps): Likewise.
26925         (mark_loops_for_removal): Likewise.
26926         (mark_all_loops_for_removal): Likewise.
26927         (remove_unnecessary_regions): Likewise.
26928         (ira_build): Likewise.
26929         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
26930         * loop-init.c (fix_loop_structure): Likewise.
26931         (gate_rtl_move_loop_invariants): Likewise.
26932         (gate_rtl_unswitch): Likewise.
26933         (gate_rtl_unroll_and_peel_loops): Likewise.
26934         (rtl_doloop): Likewise.
26935         * lto-streamer-in.c (input_cfg): Likewise.
26936         * lto-streamer-out.c (output_cfg): Likewise.
26937         * modulo-sched.c (sms_schedule): Likewise.
26938         * predict.c (tree_estimate_probability): Likewise.
26939         (tree_estimate_probability_driver): Likewise.
26940         (estimate_loops): Likewise.
26941         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
26942         (move_sese_region_to_fn): Likewise.
26943         (debug_loop_num): Likewise.
26944         * tree-chrec.c (chrec_evaluate): Likewise.
26945         (hide_evolution_in_other_loops_than_loop): Likewise.
26946         (chrec_component_in_loop_num): Likewise.
26947         (reset_evolution_in_loop): Likewise.
26948         (evolution_function_is_invariant_rec_p): Likewise.
26949         * tree-if-conv.c (main_tree_if_conversion): Likewise.
26950         * tree-inline.c (copy_loops): Likewise.
26951         (copy_cfg_body): Likewise.
26952         (tree_function_versioning): Likewise.
26953         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
26954         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26955         Likewise.
26956         (add_to_evolution_1): Likewise.
26957         (scev_const_prop): Likewise.
26958         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
26959         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
26960         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
26961         (tree_ssa_lim_initialize): Likewise.
26962         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
26963         (verify_loop_closed_ssa): Likewise.
26964         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
26965         (tree_ssa_loop_im): Likewise.
26966         (tree_ssa_loop_unswitch): Likewise.
26967         (tree_vectorize): Likewise.
26968         (check_data_deps): Likewise.
26969         (tree_ssa_loop_ivcanon): Likewise.
26970         (tree_ssa_loop_bounds): Likewise.
26971         (tree_complete_unroll): Likewise.
26972         (tree_complete_unroll_inner): Likewise.
26973         (tree_parallelize_loops): Likewise.
26974         (tree_ssa_loop_prefetch): Likewise.
26975         (tree_ssa_loop_ivopts): Likewise.
26976         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
26977         * tree-vectorizer.c (vectorize_loops): Likewise.
26979 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
26981         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
26982         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
26983         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
26984         with EABI_LINK_SPEC.
26986 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
26988         PR target/44578
26989         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
26990         alternative.
26992 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
26994         PR target/57097
26995         * lra-constraints.c (process_alt_operands): Discourage a bit more
26996         using memory for pseudos.  Print cost dump for alternatives.
26997         Modify cost values for conflicts with early clobbers.
26998         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
27000 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27002         PR target/57098
27003         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
27005 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
27007         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
27008         from/to S register.
27009         (movdi_aarch64): Support LDR/STR from/to D register.
27011 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
27013         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
27014         or higher by default.
27016 2013-04-29  Richard Biener  <rguenther@suse.de>
27018         PR middle-end/57075
27019         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
27020         even if not adding abnormal edges for calls that can make
27021         abnormal gotos.
27023 2013-04-29  Richard Biener  <rguenther@suse.de>
27025         PR middle-end/57103
27026         * tree-cfg.c (move_stmt_op): Fix condition under which to update
27027         TREE_BLOCK.
27028         (move_stmt_r): Remove redundant checking.
27030 2013-04-29  Teresa Johnson  <tejohnson@google.com>
27032         PR bootstrap/57077
27033         * basic-block.h (apply_scale): New function.
27034         (apply_probability): Use apply_scale.
27035         * gimple-streamer-in.c (input_bb): Ditto.
27036         * lto-streamer-in.c (input_cfg): Ditto.
27037         * lto-cgraph.c (merge_profile_summaries): Ditto.
27038         * tree-optimize.c (execute_fixup_cfg): Ditto.
27039         * tree-inline.c (copy_bb): Update comment to use apply_scale.
27040         (copy_edges_for_bb): Ditto.
27041         (copy_cfg_body): Ditto.
27043 2013-04-29  Tom de Vries  <tom@codesourcery.com>
27045         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
27046         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
27047         (tail_merge_optimize): Handle current_loops == NULL.
27049 2013-04-26  Jeff Law  <law@redhat.com>
27051         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
27052         (simplify_cond_using_ranges): Generalize code to simplify
27053         COND_EXPRs where one argument is a constant and the other
27054         is an SSA_NAME created by an integral type conversion.
27056 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27058         * config/arm/arm.md (store_minmaxsi): Use only when
27059         optimize_insn_for_size_p.
27061 2013-04-29  Christian Bruel  <christian.bruel@st.com>
27063         PR target/57108
27064         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
27066 2013-04-29  Richard Biener  <rguenther@suse.de>
27068         PR middle-end/57089
27069         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
27070         loop tree make sure to schedule a fixup for the child as well.
27071         (expand_omp_for_generic): Properly add loops.
27072         (expand_omp_for_static_nochunk): Likewise.
27073         (expand_omp_for_static_chunk): Likewise.
27074         (expand_omp_for): For the degenerate case fixup loops.
27075         (expand_omp_sections): Fix default bb placement in loops.
27076         (expand_omp_atomic_pipeline): Properly add loops.
27078 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27080         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
27082 2013-04-29  Tom de Vries  <tom@codesourcery.com>
27084         * tree-ssa-tail-merge.c: Update header comment.
27086 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27088         * config/aarch64/arm_neon.h
27089         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
27090         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
27091         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
27092         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
27093         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
27094         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
27095         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
27096         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
27098 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27100         * config/aarch64/aarch64-simd.md
27101         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
27102         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
27103         fix_trunc, fixuns_trunc.
27104         (ftrunc<VDQF:mode>2): New.
27105         * config/aarch64/iterators.md (optab): Add fix, fixuns.
27106         (fix_trunc_optab): New.
27108 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27110         * config/aarch64/aarch64-builtins.c
27111         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
27112         iceilf, lround, iroundf.
27114 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27116         PR target/54349
27117         * config/i386/i386.h (enum ix86_tune_indices)
27118         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
27119         New, split from X86_TUNE_INTER_UNIT_MOVES.
27120         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
27121         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
27122         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
27123         (TARGET_INTER_UNIT_MOVES): Remove.
27124         * config/i386/i386.c (initial_ix86_tune_features): Update.
27125         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
27126         (ix86_expand_convert_uns_didf_sse): Use
27127         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27128         (ix86_expand_vector_init_one_nonzero): Ditto.
27129         (ix86_expand_vector_init_interleave): Ditto.
27130         (inline_secondary_memory_needed): Return true for moves from SSE class
27131         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
27132         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
27133         * config/i386/constraints.md (Yi, Ym): Depend on
27134         TARGET_INTER_UNIT_MOVES_TO_VEC.
27135         (Yj, Yn): New constraints.
27136         * config/i386/i386.md (*movdi_internal): Change constraints of
27137         operand 1 from Yi to Yj and from Ym to Yn.
27138         (*movsi_internal): Ditto.
27139         (*movdf_internal): Ditto.
27140         (*movsf_internal): Ditto.
27141         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
27142         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27143         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
27144         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
27145         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
27146         * config/i386/sse.md (movdi_to_sse): Ditto.
27147         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
27148         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
27149         TARGET_INTER_UNIT_MOVES.
27150         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
27151         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
27152         instead of TARGET_INTER_UNIT_MOVES.
27153         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
27154         operand 1 from Yi to Yj and from Ym to Yn.
27156 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27158         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
27159         (float_truncate_hi_): Likewise.
27160         (float_extend_lo_): Likewise.
27161         (float_truncate_lo_): Likewise.
27162         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
27163         (aarch64_float_extend_lo_v2df): Likewise.
27164         (vec_unpacks_hi_v4sf): Likewise.
27165         (aarch64_float_truncate_lo_v2sf): Likewise.
27166         (aarch64_float_truncate_hi_v4sf): Likewise.
27167         (vec_pack_trunc_v2df): Likewise.
27168         (vec_pack_trunc_df): Likewise.
27170 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27172         * config/aarch64/aarch64-builtins.c
27173         (aarch64_fold_builtin): Fold float conversions.
27174         * config/aarch64/aarch64-simd-builtins.def
27175         (floatv2si, floatv4si, floatv2di): New.
27176         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
27177         * config/aarch64/aarch64-simd.md
27178         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
27179         * config/aarch64/iterators.md (FLOATUORS): New.
27180         (optab): Add float, floatuns.
27181         (su_optab): Likewise.
27183 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27185         * config/aarch64/aarch64-builtins.c
27186         (aarch64_builtin_vectorized_function): Use new names for
27187         fcvt builtins.
27188         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
27189         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
27190         (fcvtzu): Split as...
27191         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
27192         (fcvtas): Split as...
27193         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
27194         (fcvtau): Split as...
27195         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
27196         (fcvtps): Split as...
27197         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
27198         (fcvtpu): Split as...
27199         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
27200         (fcvtms): Split as...
27201         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
27202         (fcvtmu): Split as...
27203         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
27204         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
27205         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
27206         (lfrintnusf, lfrintnudf): Likewise.
27207         * config/aarch64/aarch64-simd.md
27208         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
27209         define_insn.
27210         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
27211         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
27212         (fcvt_pattern): Likewise.
27214 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27216         * config/aarch64/aarch64-simd.md
27217         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
27218         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
27220 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27222         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
27223         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
27224         (vrnd<a,m,n,p>_f32): Implement using builtins.
27225         (vrnd<i,x><q>_f<32, 64>): New.
27227 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27229         * config/aarch64/aarch64-builtins.c
27230         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
27231         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
27232         (frintz): Rename to...
27233         (btrunc): ...this.
27234         (frintp): Rename to...
27235         (ceil): ...this.
27236         (frintm): Rename to...
27237         (floor): ...this.
27238         (frinti): Rename to...
27239         (nearbyint): ...this.
27240         (frintx): Rename to...
27241         (rint): ...this.
27242         (frinta): Rename to...
27243         (round): ...this.
27244         * config/aarch64/aarch64-simd.md
27245         (aarch64_frint<frint_suffix><mode>): Delete.
27246         (<frint_pattern><mode>2): Convert to insn.
27247         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
27248         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
27249         (frint_pattern): Likewise.
27250         (frint_suffix): Likewise.
27252 2013-04-29  Richard Biener  <rguenther@suse.de>
27254         PR tree-optimization/57081
27255         * loop-init.c: Include tree-flow.h.
27256         (loop_optimizer_finalize): Free number of iteration estimates.
27257         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
27259 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
27261         PR tree-optimization/57083
27262         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
27263         non-singleton shift count range, zero extend low_bound for uns case.
27265         * config/i386/predicates.md (general_vector_operand): New predicate.
27266         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
27267         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
27268         if they aren't nonimmediate operands.  If their original values
27269         satisfy const_vector_equal_evenodd_p, don't shift them.
27270         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
27271         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
27272         if not nonimmediate_operand.
27273         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
27274         instead of register_operand.
27275         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
27277 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27279         * stor-layout.c (finalize_size_functions): Allocate a structure and
27280         reset cfun before dumping the functions.
27282 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
27284         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
27286         PR target/56866
27287         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
27288         use xop_pmacsdqh if uns_p.
27289         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
27290         the immediate rotate count.
27292 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
27294         * rtl.h (struct rtx_def): Add comment for field jump.
27295         (LRA_SUBREG_P): New macro.
27296         * recog.c (register_operand): Check LRA_SUBREG_P.
27297         * lra.c (lra): Add note at the end of RTL code. Align non-empty
27298         stack frame.
27299         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27300         (lra_final_code_change): Skip subreg change for operators.
27301         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27302         if there are no operand changes.
27303         * lra-constraints.c (curr_insn_set): New.
27304         (match_reload): Set LRA_SUBREG_P.
27305         (emit_spill_move): Ditto.
27306         (check_and_process_move): Use curr_insn_set. Process only single
27307         set insns.  Don't initialize sec_mem_p and change_p.
27308         (simplify_operand_subreg): Use LRA_SUBREG_P.
27309         (reg_in_class_p): New function.
27310         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
27311         of #ifdef.  Add code to remove cycling.
27312         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27313         non-null disp.  Reload inner instead of disp when base and index
27314         are null.  Try to put lo_sum into register.
27315         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27316         (check_and_process_move): Move code for move cost check to
27317         simple_move_p.  Remove equiv_substitution.
27318         (simple_move_p): New function.
27319         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
27320         curr_insn_set.  Call check_and_process_move only for single set
27321         insns.  Use the new function.  Move call of check_and_process_move
27322         after operand equiv substitution and address process.
27324 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27326         PR go/57045
27327         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
27328         with nonlocal goto receivers or returns twice calls, ignore
27329         unininitialized values from abnormal edges to nl goto receiver
27330         or returns twice call.
27332 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27334         PR tree-optimization/57051
27335         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
27336         and VEC_RSHIFT_EXPR if shift count is a multiple of element
27337         bitsize.
27339 2013-04-26  Richard Biener  <rguenther@suse.de>
27341         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
27342         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
27343         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
27344         (fixup_loop_arrays_after_move): New function.
27345         (move_sese_region_to_fn): Properly outline the loop tree parts
27346         of the SESE region.
27348 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
27350         * config/i386/i386.md (type, unit): Fix long lines.
27352 2013-04-26  Richard Biener  <rguenther@suse.de>
27354         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
27355         (lto-streamer-out.o): Likewise.
27356         * cfgloop.c (init_loops_structure): Export, add struct function
27357         argument and adjust.
27358         (flow_loops_find): Adjust.
27359         * cfgloop.h (enum loop_estimation): Add EST_LAST.
27360         (init_loops_structure): Declare.
27361         * lto-streamer-in.c: Include cfgloop.h.
27362         (input_cfg): Input the loop tree.
27363         * lto-streamer-out.c: Include cfgloop.h.
27364         (output_cfg): Output the loop tree.
27365         (output_struct_function_base): Do not drop PROP_loops.
27367 2013-03-26  Richard Biener  <rguenther@suse.de>
27369         * tree-cfg.c (execute_build_cfg): Build the loop tree.
27370         (pass_build_cfg): Provide PROP_loops.
27371         (move_sese_region_to_fn): Remove loops that are outlined into fn
27372         for now.
27373         * tree-inline.c: Include cfgloop.h.
27374         (initialize_cfun): Do not drop PROP_loops.
27375         (copy_loops): New function.
27376         (copy_cfg_body): Copy loop structure.
27377         (tree_function_versioning): Initialize destination loop tree.
27378         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
27379         (pass_parallelize_loops): Do IL verification.
27380         * loop-init.c (loop_optimizer_init): Fixup loops if required.
27381         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
27382         the CFG make sure we fixup loops as well.
27383         * tree-ssa-tail-merge.c: Include cfgloop.h.
27384         (replace_block_by): When merging loop latches mark loops for fixup.
27385         * lto-streamer-out.c (output_struct_function_base): Drop
27386         PROP_loops for now.
27387         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
27388         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
27389         * ipa-split.c: Include cfgloop.h.
27390         (split_function): Add the new return block to the loop tree root.
27391         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
27392         whether we have removed the forwarder block.
27393         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
27394         * cfgloop.h (place_new_loop): Declare.
27395         * cfgloopmanip.c (place_new_loop): Export.
27396         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
27397         (tree-switch-conversion.o): Likewise.
27398         (tree-complex.o): Likewise.
27399         (tree-inline.o): Likewise.
27400         (tree-ssa-tailmerge.o): Likewise.
27401         (ipa-split.o): Likewise.
27402         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
27403         (tree-ssa-copy.o): Likewise.
27404         * tree-switch-conversion.c: Include cfgloop.h
27405         (process_switch): If we emit a bit-test cascade, schedule loops
27406         for fixup.
27407         * tree-complex.c: Include cfgloop.h.
27408         (expand_complex_div_wide): Properly add new basic-blocks to loops.
27409         * asan.c: Include cfgloop.h.
27410         (create_cond_insert_point): Properly add new basic-blocks to
27411         loops, schedule loop fixup.
27412         * cfgloop.c (verify_loop_structure): Check that looks are not
27413         marked for fixup.
27414         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
27415         to loops.
27416         (expand_omp_for_generic): Likewise.
27417         (expand_omp_sections): Likewise.
27418         (expand_omp_atomic_pipeline): Schedule loops for fixup.
27419         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
27420         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
27421         is initialized, not when loops are present.
27422         * tree-parloops.c (parallelize_loops): Remove checking here.
27423         * passes.c (init_optimization_passes): Schedule a copy-propagation
27424         pass before complete unrolling of inner loops.
27426 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27428         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
27429         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
27430         (colorize_init): Add argument to _WIN32 version.
27431         * toplev.c: Include diagnostic-color.h.
27432         (process_options): Default to -fdiagnostics-color=auto if
27433         GCC_COLORS env var is in the environment.
27434         * common.opt (fdiagnostics-color=): Add Var and Init.
27435         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
27436         env var is in the environment, the default is auto rather than never.
27438         * diagnostic.h (file_name_as_prefix): Add context argument.
27439         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
27440         the string as locus.
27441         * langhooks.c (lhd_print_error_function): Adjust caller.
27443 2013-04-25  Lawrence Crowl  <crowl@google.com>
27445         * var-tracking.c (shared_hash_def::htab):
27446         Change type to hash_table.  Update dependent calls and types.
27448 2013-04-25  Lawrence Crowl  <crowl@google.com>
27450         * Makefile.in: Update as needed below.
27452         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
27453         Move declaration to after the type's method definitons.
27455         * attribs.c (htab_t scoped_attributes::attribute_hash):
27456         Change type to hash_table.  Update dependent calls and types.
27458         * bitmap.c (htab_t bitmap_desc_hash):
27459         Change type to hash_table.  Update dependent calls and types.
27461         * cselib.c (htab_t cselib_hash_table):
27462         Change type to hash_table.  Update dependent calls and types.
27464         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
27465         (hash_string_slot_node): Move implementation into lto-streamer.h
27466         struct string_slot_hasher.
27467         (eq_string_slot_node): Likewise.
27469         * data-streamer-out.c: Update output_block::string_hash_table
27470         dependent calls and types.
27472         * dwarf2cfi.c (htab_t trace_index):
27473         Change type to hash_table.  Update dependent calls and types.
27475         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
27476         Change type to hash_table.  Update dependent calls and types.
27477         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
27478         (htab_t optimize_external_refs::map): Likewise.
27479         (htab_t output_comp_unit::extern_map): Likewise.
27480         (htab_t output_comdat_type_unit::extern_map): Likewise.
27481         (htab_t output_macinfo::macinfo_htab): Likewise.
27482         (htab_t optimize_location_lists::htab): Likewise.
27483         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
27485         * except.c (htab_t ehspec_hash_type):
27486         Change type to hash_table.  Update dependent calls and types.
27487         (assign_filter_values::ttypes): Likewise.
27488         (assign_filter_values::ehspec): Likewise.
27489         (sjlj_assign_call_site_values::ar_hash): Likewise.
27490         (convert_to_eh_region_ranges::ar_hash): Likewise.
27492         * gcse.c (htab_t pre_ldst_table):
27493         Change type to hash_table.  Update dependent calls and types.
27495         * ggc-common.c (htab_t saving_htab):
27496         Change type to hash_table.  Update dependent calls and types.
27497         (htab_t loc_hash): Likewise.
27498         (htab_t ptr_hash): Likewise.
27499         (call_count): Rename ggc_call_count.
27500         (call_alloc): Rename ggc_call_alloc.
27501         (loc_descriptor): Rename make_loc_descriptor.
27502         (add_statistics): Rename ggc_add_statistics.
27504         * ggc-common.c (saving_htab):
27505         Change type to hash_table.  Update dependent calls and types.
27507         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
27508         (push_gimplify_context): Likewise.
27509         (pop_gimplify_context): Likewise.
27510         (struct gimple_temp_hash_elt): Added.
27511         (struct gimplify_hasher): Likewise.
27512         (struct gimplify_ctx.temp_htab):
27513         Change type to hash_table.  Update dependent calls and types.
27515         * gimple-fold.c: Include gimplify-ctx.h.
27517         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
27518         Change type to hash_table.  Update dependent calls and types.
27519         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
27520         avoid potential global name collision.
27522         * gimplify.c: Include gimplify-ctx.h.
27523         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
27524         (htab_t gimplify_ctx::temp_htab):
27525         Update dependent calls and types for new type hash_table.
27526         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
27527         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
27529         * gimplify-ctx.h: New.
27530         (struct gimple_temp_hash_elt): Move from gimplify.c.
27531         (class gimplify_hasher): New.
27532         (struct gimplify_ctx): Move from gimple.h.
27533         (htab_t gimplify_ctx::temp_htab):
27534         Change type to hash_table.  Update dependent calls and types.
27536         * graphite-clast-to-gimple.c: Include graphite-htab.h.
27537         (htab_t ivs_params::newivs_index):
27538         Change type to hash_table.  Update dependent calls and types.
27539         (htab_t ivs_params::params_index): Likewise.
27540         (htab_t print_generated_program::params_index): Likewise.
27541         (htab_t gloog::newivs_index): Likewise.
27542         (htab_t gloog::params_index): Likewise.
27544         * graphite.c: Include graphite-htab.h.
27545         4htab_t graphite_transform_loops::bb_pbb_mapping):
27546         Change type to hash_table.  Update dependent calls and types.
27548         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
27549         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
27550         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
27552         * graphite-dependences.c: Include graphite-htab.h.
27553         (loop_is_parallel_p): Change hash table type of parameter.
27555         * graphite-htab.h: New.
27556         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
27557         (extern find_pbb_via_hash): Move from graphite-poly.h.
27558         (extern loop_is_parallel_p): Move from graphite-poly.h.
27559         (extern get_loop_body_pbbs): Move from graphite-poly.h.
27561         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
27562         (extern loop_is_parallel_p): Move to graphite-htab.h.
27563         (extern get_loop_body_pbbs): Move to graphite-htab.h.
27565         * haifa-sched.c (htab_t delay_htab):
27566         Change type to hash_table.  Update dependent calls and types.
27567         (htab_t delay_htab_i2): Likewise.
27569         * ira-color.c (htab_t allocno_hard_regs_htab):
27570         Change type to hash_table.  Update dependent calls and types.
27572         * ira-costs.c (htab_t cost_classes_htab):
27573         Change type to hash_table.  Update dependent calls and types.
27575         * loop-invariant.c (htab_t merge_identical_invariants::eq):
27576         Change type to hash_table.  Update dependent calls and types.
27578         * loop-iv.c (htab_t bivs):
27579         Change type to hash_table.  Update dependent calls and types.
27581         * loop-unroll.c (htab_t opt_info::insns_to_split):
27582         Change type to hash_table.  Update dependent calls and types.
27583         (htab_t opt_info::insns_with_var_to_expand): Likewise.
27585         * lto-streamer.h (struct string_slot): Move from data-streamer.h
27586         (struct string_slot_hasher): New.
27587         (htab_t output_block::string_hash_table):
27588         Change type to hash_table.  Update dependent calls and types.
27590         * lto-streamer-in.c (freeing_string_slot_hasher): New.
27591         (htab_t file_name_hash_table):
27592         Change type to hash_table.  Update dependent calls and types.
27594         * lto-streamer-out.c: Update output_block::string_hash_table dependent
27595         calls and types.
27597         * lto-streamer.c (htab_t tree_htab):
27598         Change type to hash_table.  Update dependent calls and types.
27600         * omp-low.c: Include gimplify-ctx.h.
27602         * passes.c (htab_t name_to_pass_map):
27603         Change type to hash_table.  Update dependent calls and types.
27604         (pass_traverse): Rename to passes_pass_traverse.
27606         * plugin.c (htab_t event_tab):
27607         Change type to hash_table.  Update dependent calls and types.
27609         * postreload-gcse.c (htab_t expr_table):
27610         Change type to hash_table.  Update dependent calls and types.
27611         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
27613         * sese.c (debug_rename_map_1): Make extern.
27614         (htab_t copy_bb_and_scalar_dependences::rename_map):
27615         Change type to hash_table.  Update dependent calls and types.
27617         * sese.h (extern debug_rename_map): Move to .c file.
27619         * store-motion.c (htab_t store_motion_mems_table):
27620         Change type to hash_table.  Update dependent calls and types.
27622         * trans-mem.c (htab_t tm_new_mem_hash):
27623         Change type to hash_table.  Update dependent calls and types.
27625         * tree-browser.c (htab_t TB_up_ht):
27626         Change type to hash_table.  Update dependent calls and types.
27628         * tree-cfg.c (htab_t discriminator_per_locus):
27629         Change type to hash_table.  Update dependent calls and types.
27631         * tree-complex.c: Include tree-hasher.h
27632         (htab_t complex_variable_components):
27633         Change type to hash_table.  Update dependent calls and types.
27635         * tree-eh.c (htab_t finally_tree):
27636         Change type to hash_table.  Update dependent calls and types.
27638         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
27639         struct int_tree_hasher.
27640         (extern int_tree_map_eq): Likewise.
27641         (uid_decl_map_hash): Removed.
27642         (extern decl_tree_map_eq): Likewise.
27644         * tree-hasher.h: New.
27645         (struct int_tree_hasher): New.
27646         (typedef int_tree_htab_type): New.
27648         * tree-inline.c: Include gimplify-ctx.h.
27650         * tree-mudflap.c: Include gimplify-ctx.h.
27652         * tree-parloops.c: Include tree-hasher.h.
27653         (htab_t eliminate_local_variables_stmt::decl_address):
27654         Change type to hash_table.  Update dependent calls and types.
27655         (htab_t separate_decls_in_region::decl_copies): Likewise.
27657         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
27658         Change type to hash_table.  Update dependent calls and types.
27660         * tree-sra.c (candidates):
27661         Change type to hash_table.  Update dependent calls and types.
27663         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
27664         in tree-flow.h.
27665         (int_tree_map_hash): Likewise.
27667         * tree-ssa-dom.c (htab_t avail_exprs):
27668         Change type to hash_table.  Update dependent calls and types.
27670         * tree-ssa-live.c (var_map_base_init::tree_to_index):
27671         Change type to hash_table.  Update dependent calls and types.
27673         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
27674         Change type to hash_table.  Update dependent calls and types.
27676         * tree-ssa-phiopt.c (seen_ssa_names):
27677         Change type to hash_table.  Update dependent calls and types.
27679         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
27680         Change type to hash_table.  Update dependent calls and types.
27682         * tree-ssa-uncprop.c (equiv):
27683         Change type to hash_table.  Update dependent calls and types.
27685 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
27687         PR rtl-optimization/57003
27688         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
27689         call note_stores with kill_clobbered_value callback again after
27690         killing regs_invalidated_by_call.
27692 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27694         * config/aarch64/aarch64-simd.md
27695         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
27696         (aarch64_simd_bsl<mode>): Likewise.
27697         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
27699 2013-04-25  Marek Polacek  <polacek@redhat.com>
27701         PR tree-optimization/57066
27702         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
27704 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27706         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
27708 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27710         * config/aarch64/aarch64-builtins.c
27711         (aarch64_fold_builtin): New.
27712         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
27713         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
27714         * config/aarch64/aarch64-simd-builtins.def (abs): New.
27715         * config/aarch64/arm_neon.h
27716         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
27718 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27719             Tejas Belagod  <tejas.belagod@arm.com>
27721         * config/aarch64/aarch64-builtins.c
27722         (aarch64_gimple_fold_builtin): New.
27723         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
27724         * config/aarch64/aarch64-simd-builtins.def (addv): New.
27725         * config/aarch64/aarch64-simd.md (addpv4sf): New.
27726         (addvv4sf): Update.
27727         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
27729 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27731         * config/aarch64/aarch64.md
27732         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
27734 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27736         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
27737         (*ngcsi_uxtw): New pattern.
27739 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27740             Julian Brown  <julian@codesourcery.com>
27742         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
27743         (TB_DREG): Add T_V4HF.
27744         (v4hf_UP): New macro.
27745         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27746         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27747         Handle initialisation of V4HF. Adjust initialisation of reinterpret
27748         built-ins.
27749         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27750         (arm_vector_mode_supported_p): Handle V4HF.
27751         (arm_mangle_map): Handle V4HFmode.
27752         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
27753         * config/arm/arm_neon_builtins.def: Add entries for
27754         vcvtv4hfv4sf, vcvtv4sfv4hf.
27755         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
27756         (neon_vcvtv4hfv4sf): Likewise.
27757         * config/arm/neon-gen.ml: Handle half-precision floating point
27758         features.
27759         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
27760         * config/arm/arm_neon.h: Regenerate.
27761         * config/arm/neon.ml (type elts): Add F16.
27762         (type vectype): Add T_float16x4, T_floatHF.
27763         (type vecmode): Add V4HF.
27764         (type features): Add Requires_FP_bit feature.
27765         (elt_width): Handle F16.
27766         (elt_class): Likewise.
27767         (elt_of_class_width): Likewise.
27768         (mode_of_elt): Refactor.
27769         (type_for_elt): Handle F16, fix error messages.
27770         (vectype_size): Handle T_float16x4.
27771         (vcvt_sh): New function.
27772         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
27773         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
27774         (string_of_mode): Handle V4HF.
27775         * doc/arm-neon-intrinsics.texi: Regenerate.
27777 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27779         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
27780         format specifier in 'X' case.
27782 2013-04-25  Alan Modra  <amodra@gmail.com>
27784         PR target/57052
27785         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
27786         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
27787         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
27788         Repeat for many other rotate/shift and mask patterns using subregs.
27789         Name lshiftrt insns.
27790         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
27791         on WORDS_BIG_ENDIAN.
27793 2013-04-25  Alan Modra  <amodra@gmail.com>
27795         * config.gcc: Support little-endian powerpc-linux targets.
27796         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
27797         (LINK_OS_LINUX_SPEC): Define.
27798         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
27799         Preserve MASK_LITTLE_ENDIAN.
27800         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
27801         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
27802         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
27803         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
27804         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
27805         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
27806         Correct fp word order for little-endian.  Don't shift toc entries
27807         smaller than a word for little-endian.
27808         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
27809         (bswapdi2 splits): Correct low-part subreg for little-endian.
27810         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
27811         low/high where such is correct only for be.
27812         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
27813         little-endian for -mcall-aixdesc.
27815 2013-04-25  Alan Modra  <amodra@gmail.com>
27817         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27818         replace_equiv_address_nv.
27820 2013-04-25  Alan Modra  <amodra@gmail.com>
27822         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
27824 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27826         Revert:
27827         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27828         * rtl.h (struct rtx_def): ...
27830 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27832         PR rtl-optimizations/57046
27833         * lra-constraints (split_reg): Set up lra_risky_transformations_p
27834         for multi-reg splits.
27836 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
27838         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
27840 2013-04-24  Sterling Augustine  <saugustine@google.com>
27842         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
27843         (comp_dir_string, debug_str_dwo_section): New.
27844         (DEBUG_STR_DWO_SECTION): Rename to ...
27845         (DEBUG_DWO_STR_SECTION): ... this.
27846         (DEBUG_NORM_STR_SECTION): Delete.
27847         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
27848         (DEBUG_STR_DWO_SECTION_FLAGS): New.
27849         (find_AT_string): Move most logic to ...
27850         (find_AT_string_in_table): ... here.  New.
27851         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
27852         add_skeleton_AT_string.  Delete logic.
27853         (output_skeleton_debug_sections): Remove call to
27854         add_top_level_skeleton_die_attrs.
27855         (add_comp_dir_attribute): Move logic to comp_dir_string.
27856         (dwarf2out_init): Initialize debug_str_dwo_section.
27857         (output_indirect_string): Call find_string_form.
27858         (output_indirect_strings): Rewrite.
27859         (prune_unused_types): Empty skeleton_debug_str_hash.
27860         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
27861         (dwarf2out_finish):  Call output_indirect_strings.
27863 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
27865         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
27867 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27869         * rtl.h (struct rtx_def): Add comment for field jump.
27870         (LRA_SUBREG_P): New macro.
27871         * recog.c (register_operand): Check LRA_SUBREG_P.
27872         * lra.c (lra): Add note at the end of RTL code. Align non-empty
27873         stack frame.
27874         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27875         (lra_final_code_change): Skip subreg change for operators.
27876         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27877         if there are no operand changes.
27878         * lra-constraints.c (curr_insn_set): New.
27879         (match_reload): Set LRA_SUBREG_P.
27880         (emit_spill_move): Ditto.
27881         (check_and_process_move): Use curr_insn_set. Process only single
27882         set insns.  Don't initialize sec_mem_p and change_p.
27883         (simplify_operand_subreg): Use LRA_SUBREG_P.
27884         (reg_in_class_p): New function.
27885         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
27886         of #ifdef.  Add code to remove cycling.
27887         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27888         non-null disp.  Reload inner instead of disp when base and index
27889         are null.  Try to put lo_sum into register.
27890         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27891         (check_and_process_move): Move code for move cost check to
27892         simple_move_p.  Remove equiv_substitution.
27893         (simple_move_p): New function.
27894         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
27895         curr_insn_set.  Call check_and_process_move only for single set
27896         insns.  Use the new function.  Move call of check_and_process_move
27897         after operand equiv substitution and address process.
27899 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
27901         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
27902         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
27903         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
27905 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
27907         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
27909 2013-04-24  Marek Polacek  <polacek@redhat.com>
27911         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
27912         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
27913         (select_loops_exit_conditions): Likewise.
27914         (number_of_iterations_for_all_loops): Likewise.
27915         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
27916         (scev_analysis): Likewise.
27918 2013-04-02  Catherine Moore  <clm@codesourcery.com>
27919             Chao-ying Fu  <fu@mips.com>
27921         * config/mips/micromips.md (jraddiusp): New pattern.
27922         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
27923         instruction if possible.
27925 2013-04-24  Alan Modra  <amodra@gmail.com>
27927         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
27929 2013-04-24  Julian Brown  <julian@codesourcery.com>
27930             Chung-Lin Tang  <cltang@codesourcery.com>
27932         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
27933         dependency behavior in enumeration type DIE generation. Add TODO note
27934         to comments about future DW_FORM_sdata/udata re-work of related code.
27936 2013-04-23  Lawrence Crowl  <crowl@google.com>
27938         * Makefile.in: Update as needed below.
27940         * hash-table.h (class hash_table):
27941         Correct many methods with parameter types compare_type to the correct
27942         value_type.  (Correct code was unlikely to notice the change.)
27943         (hash_table::elements_with_deleted) New.
27944         (class hashtable::iterator): New.
27945         (hashtable::begin()): New.
27946         (hashtable::end()): New.
27947         (FOR_EACH_HASH_TABLE_ELEMENT): New.
27949         * statistics.c (statistics_hashes):
27950         Change type to hash_table.  Update dependent calls and types.
27952         * tree-into-ssa.c (var_infos):
27953         Change type to hash_table.  Update dependent calls and types.
27955         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
27956         Change type to hash_table.  Update dependent calls and types.
27958         * tree-ssa-loop-im.c (struct mem_ref.refs):
27959         Change type to hash_table.  Update dependent calls and types.
27961         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
27962         Change type to hash_table.  Update dependent calls and types.
27964         * tree-ssa-sccvn.c (vn_tables_s::nary):
27965         Change type to hash_table.  Update dependent calls and types.
27966         (vn_tables_s::phis): Likewise.
27967         (vn_tables_s::references): Likewise.
27969         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
27970         (vn_reference_eq): Update parameter and return types.
27972         * tree-ssa-structalias.c (pointer_equiv_class_table):
27973         Change type to hash_table.  Update dependent calls and types.
27974         (location_equiv_class_table): Likewise.
27976         * tree-vect-data-refs.c: Consequential changes for making
27977         peeling a hash_table.
27979         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
27980         (destroy_loop_vec_info): Dependent hash_table update.
27982         * tree-vectorizer.h (peeling_htab):
27983         Change type to hash_table.  Update dependent calls and types.
27985 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
27987         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
27988         to check the register content is equal or not.
27989         * lra-constraints.c (match_reload): Use lra_assign_reg_val
27990         to assign register content record.
27991         * lra-eliminations.c (update_reg_eliminate): Use
27992         lra_update_reg_val_offset to update register content offset.
27993         * lra-int.h (struct lra_reg): Add offset member.
27994         (lra_reg_val_equal_p): New static inline function.
27995         (lra_update_reg_val_offset): New static inline function.
27996         (lra_assign_reg_val): New static inline function.
27997         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
27998         to assign register content record.
27999         (initialize_lra_reg_info_element): Initial offset to zero.
28001 2013-04-23  Catherine Moore  <clm@codesourcery.com>
28003         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
28004         operands.  Record compression.
28006 2013-04-23  Xinliang David Li  <davidxl@google.com>
28008         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
28010 2013-04-23  Richard Biener  <rguenther@suse.de>
28012         PR middle-end/57036
28013         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
28014         parameter, only add abnormal goto edges from the copied body
28015         if the call could perform abnormal gotos.
28016         (copy_cfg_body): Adjust.
28018 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
28020         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
28022 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
28024         * coretypes.h (gimple_stmt_iterator): Add struct to make
28025         compatible with C.
28027 2013-04-23  Richard Biener  <rguenther@suse.de>
28029         PR tree-optimization/57026
28030         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
28031         from SSA names occuring in abnormal PHI nodes.
28033 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28035         * lto/lto.c (print_lto_report_1): Fix LTO report names.
28037 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28039         * lto/lto.c (print_lto_report_1): Declare early.
28040         (read_cgraph_and_symbols): Call print_lto_report_1 early.
28042 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28044         * common.opt (-flto-report-wpa): Add.
28045         * doc/invoke.texi (-flto-report-wpa): Add.
28046         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
28047         (lto_main): dito.
28049 2013-04-22  Xinliang David Li  <davidxl@google.com>
28051         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
28052         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
28053         * Makefile.in: New dependency
28055             David Daney <ddaney.cavm@gmail.com>
28057         * configure.ac (gcc_cv_as_micromips_support):  Use the
28058         --fatal-warnings option.
28059         * configure: Regenerate.
28061 2013-04-22  Marek Polacek  <polacek@redhat.com>
28063         PR sanitizer/56990
28064         * tsan.c (instrument_expr): Don't instrument expression
28065         in case its size is zero.
28067 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
28069         PR target/57032
28070         Revert:
28071         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
28073         * config/alpha/alpha.c (TARGET_LRA_P): New define.
28075 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28077         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
28078         (gimple_stmt_iterator): New typedef.
28079         * gimple.h (gimple_stmt_iterator): Rename to...
28080         (gimple_stmt_iterator_d): ... This.
28081         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
28082         trees be valid for GIMPLE and GENERIC.
28083         (TARGET_GIMPLE_FOLD_BUILTIN): New.
28084         * gimple-fold.c (gimple_fold_call): Call target hook
28085         gimple_fold_builtin.
28086         * hooks.c (hook_bool_gsiptr_false): New.
28087         * hooks.h (hook_bool_gsiptr_false): New.
28088         * target.def (fold_stmt): New.
28089         * doc/tm.texi: Regenerate.
28091 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
28093         PR target/57018
28094         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
28095         a set sp if no stack realignment.
28097 2013-04-22  Nick Clifton  <nickc@redhat.com>
28099         * config.gcc (tilegx-linux): Extend extra_objs rather than
28100         overwriting it.
28101         (tilepro-linux): Likewise.
28103 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28105         * config/aarch64/aarch64-builtins.c
28106         (CF): Remove.
28107         (CF0, CF1, CF2, CF3, CF4, CF10): New.
28108         (VAR<1-12>): Add MAP parameter.
28109         (BUILTIN_*): Likewise.
28110         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
28111         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
28112         (aarch64_ushl_n<mode>): Likewise.
28113         (aarch64_sshr_n<mode>): Likewise.
28114         (aarch64_ushr_n<mode>): Likewise.
28115         (aarch64_<maxmin><mode>): Likewise.
28116         (aarch64_sqrt<mode>): Likewise.
28117         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
28118         (vshr<q>_n_*): Likewise.
28120 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28122         * config/aarch64/aarch64-builtins.c
28123         (aarch64_simd_builtin_type_mode): Handle SF types.
28124         (sf_UP): Define.
28125         (BUILTIN_GPF): Define.
28126         (aarch64_init_simd_builtins): Handle SF types.
28127         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
28128         (frecps): Likewise.
28129         (frecpx): Likewise.
28130         * config/aarch64/aarch64-simd.md
28131         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
28132         (aarch64_frecpe<mode>): New.
28133         (aarch64_frecps<mode>): Likewise.
28134         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
28135         (v8type): Add frecp<esx>.
28136         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
28137         (aarch64_frecps<mode>): Likewise.
28138         * config/aarch64/iterators.md (FRECP): New.
28139         (frecp_suffix): Likewise.
28140         * config/aarch64/arm_neon.h
28141         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
28143 2013-04-22  Christian Bruel  <christian.bruel@st.com>
28145         PR target/56995
28146         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
28147         (REG_CLASS_NAMES): Idem.
28148         (REG_CLASS_CONTENTS): Idem.
28149         (REGCLASS_HAS_FP_REG): Idem.
28150         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
28151         (sh_conditional_register_usage): Idem.
28153 2013-04-21  Jeff Law  <law@redhat.com>
28155         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
28156         (ssa_forward_propagate_and_combine): Use it.
28158 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28160         * lra.c: Update the flow chart diagram.
28162 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28164         PR rtl-optimization/56847
28165         * lra-constraints.c (process_alt_operands): Discourage alternative
28166         with non-matche doffsettable memory constraint fro memory with
28167         known offset.
28169 2013-04-19  Richard Biener  <rguenther@suse.de>
28171         PR tree-optimization/56982
28172         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
28173         function.
28174         * gimplify.c (gimplify_call_expr): Notice special calls.
28175         (gimplify_modify_expr): Likewise.
28176         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
28177         abnormal control flow receivers.
28178         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
28179         in the same way as cfun->has_nonlocal_labels.
28180         (gimple_purge_dead_abnormal_call_edges): Likewise.
28181         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
28182         receivers start a basic-block.
28184 2013-04-19  Richard Biener  <rguenther@suse.de>
28186         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
28187         member ...
28188         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
28189         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
28190         (SLP_TREE_LOAD_PERMUTATION): Add.
28191         (vect_transform_slp_perm_load): Adjust prototype.
28192         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
28193         (vect_free_slp_instance): Likewise.
28194         (vect_create_new_slp_node): Likewise.
28195         (vect_supported_slp_permutation_p): Remove.
28196         (vect_slp_rearrange_stmts): Adjust.
28197         (vect_supported_load_permutation_p): Likewise.  Inline
28198         vect_supported_slp_permutation_p here.
28199         (vect_analyze_slp_instance): Compute load permutations per
28200         slp node instead of per instance.
28201         (vect_get_slp_defs): Adjust.
28202         (vect_transform_slp_perm_load): Likewise.
28203         (vect_schedule_slp_instance): Remove redundant code.
28204         (vect_schedule_slp): Remove hack for PR56270, add it ...
28205         * tree-vect-stmts.c (vectorizable_load): ... here, do not
28206         CSE loads for SLP.  Adjust.
28208 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
28210         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
28211         spelling in two comments.
28213 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
28215         PR target/56797
28216         * config/arm/arm.c (load_multiple_sequence): Require SP
28217         as base register for loads if SP is in the register list.
28219 2013-04-19  Martin Jambor  <mjambor@suse.cz>
28221         PR tree-optimization/56718
28222         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
28223         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
28224         and made public.  Adjusted all callers.
28225         (ipa_intraprocedural_devirtualization): New function.
28226         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
28227         (ipa_intraprocedural_devirtualization): Likewise.
28228         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
28230 2013-04-19  Richard Biener  <rguenther@suse.de>
28232         PR tree-optimization/57000
28233         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
28235 2013-04-19  Terry Guo  <terry.guo@arm.com>
28237         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
28238         Replace with ...
28239         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
28240         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
28241         (cortex_m4_fmacs): Use new reservations.
28242         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
28244 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
28246         PR rtl-optimization/56999
28247         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
28248         related code.
28249         (lra_coalesce): Remove split_origin_bitmap and related code.
28250         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
28251         ranges if necessary.
28253 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
28255         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
28256         New array.
28257         (ix86_expand_call): Remove clobbered_registers array and use
28258         x86_64_ms_sysv_extra_clobbered_registers instead.
28259         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
28260         Declare here.
28261         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
28262         predicate.
28263         * config/i386/i386.md (*call_rex64_ms_sysv): Use
28264         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
28265         (*call_value_rex64_ms_sysv): Ditto.
28267 2013-04-18  Cary Coutant  <ccoutant@google.com>
28269         * dwarf2out.c (output_pubnames): Check die_perennial_p of
28270         parent instead of die_mark.
28272 2013-04-18  Diego Novillo  <dnovillo@google.com>
28274         * gimple.c (create_gimple_tmp): New.
28275         (get_expr_type): New.
28276         (build_assign): New.
28277         (build_type_cast): New.
28278         * gimple.h (enum ssa_mode): Define.
28279         (gimple_seq_set_location): New.
28280         * asan.c (build_check_stmt): Change some gimple_build_* calls
28281         to use build_assign and build_type_cast.
28283 2013-04-18  Richard Biener  <rguenther@suse.de>
28285         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28286         handle negative step.  Remove redundant checks.
28287         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
28288         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
28289         for negative step and grouped loads fail to vectorize.
28291 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
28293         * emit-rtl.c (reset_insn_used_flags): New function.
28294         (reset_all_used_flags): Use it.
28295         (verify_insn_sharing): New function.
28296         (verify_rtl_sharing): Fix verification for SEQUENCEs.
28298 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
28300         PR tree-optimization/56984
28301         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
28302         and (x >> M) >= N don't register any assertion if N << M is the
28303         minimum value.
28305 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
28307         * lower-subreg.c (resolve_simple_move): If called self-recursive,
28308         do not delete_insn insns that have not yet been emitted, only
28309         unlink them with remove_insn.
28310         * df-scan.c (df_insn_delete): Revert r197492.
28312 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
28314         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
28315         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
28317 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
28319         * config/arm/arm.md (movsicc_insn): Convert define_insn into
28320         define_insn_and_split.
28321         (and_scc,ior_scc,negscc): Likewise.
28322         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
28324 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
28326         * config/arm/arm.c (use_return_insn): Return 0 for targets that
28327         can benefit from using a sequence of LDRD instructions in epilogue
28328         instead of a single LDM instruction.
28330 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28332         PR 45688
28333         * doc/extend.texi: Fix typo.
28335 2013-04-17  Richard Biener  <rguenther@suse.de>
28337         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
28338         (vect_build_slp_tree): ... here.
28339         (vect_build_slp_tree_1): Compute which stmts of the SLP group
28340         match.  Remove special-casing of mismatched complex loads.
28341         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
28342         re-try the match with swapped commutative operands.
28343         (vect_supported_load_permutation_p): Remove special-casing of
28344         mismatched complex loads.
28345         (vect_analyze_slp_instance): Adjust.
28347 2013-04-17  Richard Biener  <rguenther@suse.de>
28349         PR rtl-optimization/56921
28350         * cfgloop.h (struct loop): Add simple_loop_desc member.
28351         (struct niter_desc): Mark with GTY(()).
28352         (simple_loop_desc): Do not use aux field but simple_loop_desc.
28353         * loop-iv.c (get_simple_loop_desc): Likewise.
28354         (free_simple_loop_desc): Likewise.
28356         Revert
28357         2013-04-16  Richard Biener  <rguenther@suse.de>
28359         PR rtl-optimization/56921
28360         * loop-init.c (pass_rtl_move_loop_invariants): Add
28361         TODO_do_not_ggc_collect to todo_flags_finish.
28362         (pass_rtl_unswitch): Same.
28363         (pass_rtl_unroll_and_peel_loops): Same.
28364         (pass_rtl_doloop): Same.
28366 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
28368         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
28369         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
28370         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
28371         references.
28372         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
28373         * tree-streamer.c (record_common_node): Adjust reference in comment.
28375 2013-04-17  Terry Guo  <terry.guo@arm.com>
28377         * config/arm/cortex-m4.md: Add a new bypass.
28379 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28381         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
28382         New pattern.
28383         (*subs_<optab><mode>_multp2): New pattern.
28384         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28385         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28387 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28389         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
28390         (*subs_mul_imm_<mode>): New pattern.
28392 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
28394         PR target/56948
28395         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
28396         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
28397         (vsx_movti_32bit): Change j->wa to O->wa.
28399 2013-04-16  Richard Biener  <rguenther@suse.de>
28401         PR rtl-optimization/56921
28402         * loop-init.c (pass_rtl_move_loop_invariants): Add
28403         TODO_do_not_ggc_collect to todo_flags_finish.
28404         (pass_rtl_unswitch): Same.
28405         (pass_rtl_unroll_and_peel_loops): Same.
28406         (pass_rtl_doloop): Same.
28408 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
28410         * config/arm/arm.c (emit_multi_reg_push): New declaration
28411         for an existing function.
28412         (arm_emit_strd_push): New function.
28413         (arm_expand_prologue): Used here.
28414         (arm_emit_ldrd_pop): New function.
28415         (arm_expand_epilogue): Used here.
28416         (arm_get_frame_offsets): Update condition.
28417         (arm_emit_multi_reg_pop): Add a special case for load of a single
28418         register with writeback.
28420 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
28422         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
28423         description.
28425 2013-04-16  Richard Biener  <rguenther@suse.de>
28427         PR tree-optimization/56756
28428         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
28429         (first_mem_ref_loc): New.
28430         (execute_sm): Place the load temporarily before a previous
28431         access instead of in the latch edge to ensure its SSA dependencies
28432         are defined at points dominating the load.
28434 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
28436         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
28437         correct fix by moving header and footer insn to the footer of
28438         the merged basic block.  Clear BB_END of the merged-away block.
28440         PR middle-end/43631
28441         * emit-rtl.c (make_note_raw): New function.
28442         (link_insn_into_chain): New static inline function.
28443         (add_insn): Use it.
28444         (add_insn_before, add_insn_after): Factor insn chain linking code...
28445         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
28446         using link_insn_into_chain.
28447         (note_outside_basic_block_p): New helper function for emit_note_after
28448         and emit_note_before.
28449         (emit_note_after): Use nobb variant of add_insn_after if the note
28450         should not be contained in a basic block.
28451         (emit_note_before): Use nobb variant of add_insn_before if the note
28452         should not be contained in a basic block.
28453         (emit_note_copy): Use make_note_raw.
28454         (emit_note): Likewise.
28455         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
28456         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
28457         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
28458         the moved barrier the tail of the basic block it follows.
28459         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
28461 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
28463         PR tree-optimization/56962
28464         * gimple-ssa-strength-reduction.c (record_increment): Only set
28465         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
28466         either rhs1 or rhs2 is equal to c->base_expr.
28468 2013-04-15  Richard Biener  <rguenther@suse.de>
28470         PR tree-optimization/56933
28471         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
28472         member.
28473         (GROUP_READ_WRITE_DEPENDENCE): Remove.
28474         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
28475         * tree-vect-data-refs.c (vect_analyze_group_access): Move
28476         dependence check ...
28477         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
28478         ... here.
28479         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
28480         GROUP_READ_WRITE_DEPENDENCE.
28482 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28484         * emit-rtl.c (reset_all_used_flags): New function.
28485         (verify_rtl_sharing): Call reset_all_used_flags before and after
28486         performing the checks.
28488 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28490         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
28491         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
28492         * config/arm/constraints.md (De): New constraint.
28493         * config/arm/neon.md (anddi3_neon): Delete.
28494         (neon_vand<mode>): Expand to standard anddi3 pattern.
28495         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
28496         Move earlier in the file.
28497         (neon_inv_logic_op2): Likewise.
28498         (arm_anddi_operand_neon): New predicate.
28500 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28502         * configure.ac (gcc_cv_ld_as_needed): Set
28503         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
28504         Use -z ignore, -z record on *-*-solaris2*.
28505         (HAVE_LD_AS_NEEDED): Update comment.
28506         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
28507         * configure: Regenerate.
28508         * config.in: Regenerate.
28509         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
28510         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
28511         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
28512         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
28513         equivalents.  Fix markup.
28514         * doc/tm.texi: Regenerate.
28516 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
28518         * config/i386/i386.opt: New option mstack-protector-guard=.
28519         * config/i386/i386-opts.h: Add enum stack_protector_guard.
28520         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
28521         TARGET_SSP_TLS_GUARD.
28522         * config/i386/i386.c (ix86_option_override_internal): Set
28523         ix86_stack_protector_guard.
28524         * config/i386/i386.md (stack_protect_set): Enable for
28525         TARGET_SSP_TLS_GUARD only.
28526         (stack_protect_set_<mode>): Ditto.
28527         (stack_protect_test): Ditto.
28528         (stack_protect_test_<mode>): Ditto.
28529         * doc/invoke.texi (i386 Option): Document.
28531 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
28533         PR target/56890
28534         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
28535         (S_MODES): Set H_MODE bit.
28536         (SF_MODES): Set only S_MODE and SF_MODE bits.
28537         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
28538         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
28539         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
28540         <MODE_FLOAT>: Likewise.
28542 2013-04-15  Joey Ye  <joey.ye@arm.com>
28544         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
28546 2013-04-15  Joey Ye  <joey.ye@arm.com>
28548         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
28549         for real far jump.
28550         (thumb_far_jump_used_p): Count instruction size and set
28551         far_jump_used.
28553 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
28555         * reorg.c (fill_simple_delay_slots): Reindent block of code.
28556         * resource.c (mark_target_live_regs): Reformat conditional block.
28558 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
28560         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
28561         notes, they are emitted only just before final.
28562         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
28564 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
28566         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
28567         * cfgrtl.c (delete_insn): Call it here instead.
28568         * lra-spills.c (lra_final_code_change): Use delete_insn.
28569         * haifa-sched.c (sched_remove_insn): Likewise.
28570         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
28571         returning to the nop pool.
28572         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
28573         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
28575 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
28577         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
28578         * doc/tm.texi: Regenerated.
28580 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
28582         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
28583         QImode checks.
28585 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
28587         * df-core.c (df_find_def): Compare register numbers.
28588         (df_find_use): Likewise.
28590 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
28592         PR target/56903
28593         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
28594         lra_in_progress for return.
28596 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
28598         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
28599         define_insn into define_insn_and_split and emit movsicc patterns.
28601 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
28603         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
28605 2013-04-12  Richard Biener  <rguenther@suse.de>
28607         * tree-pass.h (TODO_do_not_ggc_collect): New.
28608         * passes.c (execute_one_ipa_transform_pass): Honor
28609         TODO_do_not_ggc_collect.
28610         (execute_one_pass): Likewise.
28612         Revert
28613         2013-04-10  Richard Biener  <rguenther@suse.de>
28615         * passes.c (init_optimization_passes): Remove reload pass.
28616         * ira.c (do_reload): Merge into ...
28617         (ira): ... this.
28618         (rest_of_handle_reload): Remove.
28619         (pass_reload): Likewise.
28620         * config/i386/i386.c (ix86_option_override): Refer to ira instead
28621         of reload for vzeroupper pass placement.
28623 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
28625         PR tree-optimization/56918
28626         PR tree-optimization/56920
28627         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
28628         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
28629         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
28630         use wide_mul_with_sign method.
28632 2013-04-12  Richard Biener  <rguenther@suse.de>
28634         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
28635         not be considered a gimple constant.
28637 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
28639         * fold-const.c (const_binop): Handle vector shifts by a scalar.
28640         (fold_binary_loc): Call const_binop also for mixed vector-scalar
28641         operations.
28643 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28644             Jakub Jelinek  <jakub@redhat.com>
28646         * opts.c: Include diagnostic-color.h.
28647         (common_handle_option): Handle OPT_fdiagnostics_color_.
28648         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
28649         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
28650         (diagnostic-color.o): New.
28651         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
28652         (diagnostic_color_rule): New enum.
28653         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
28654         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
28655         the location string.
28656         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
28657         either NULL, or color kind.
28658         * diagnostic-color.c: New file.
28659         * diagnostic-color.h: New file.
28660         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
28661         arguments.
28662         * doc/invoke.texi (-fdiagnostics-color): Document.
28663         * pretty-print.h (pp_show_color): Define.
28664         (struct pretty_print_info): Add show_color field.
28665         * diagnostic.c: Include diagnostic-color.h.
28666         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
28667         macros.  Colorize error:, warning: etc. strings and also the location
28668         string.
28669         (diagnostic_show_locus): Colorize the caret line.
28670         * pretty-print.c: Include diagnostic-color.h.
28671         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
28672         inside of %< %> quotes or quoted through q format modifier.
28674 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28676         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
28678 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28680         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
28681         code in CC_NZ mode.
28682         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
28683         pattern.
28685 2013-04-11  Marek Polacek  <polacek@redhat.com>
28687         PR tree-optimization/48184
28688         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
28690 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
28692         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
28693         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
28694         (skip_simple_arithmetic): Tidy up.
28695         * tree.h (skip_simple_constant_arithmetic): Declare.
28697 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28699         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
28701 2013-04-11  Richard Biener  <rguenther@suse.de>
28703         * tree-vect-loop.c (get_initial_def_for_induction): Properly
28704         generate vector constants.
28706 2013-04-11  Richard Biener  <rguenther@suse.de>
28708         PR tree-optimization/56878
28709         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
28710         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
28711         New function.
28712         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28713         Prefer to align the DR with the most invariant base address.
28715 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28717         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
28718         comment.
28720 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
28722         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
28723         floating-point vector comparisons against 0.
28725 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
28727         PR tree-optimization/56899
28728         * fold-const.c (extract_muldiv_1): Apply distributive law
28729         only if TYPE_OVERFLOW_WRAPS (ctype).
28731 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
28733         PR target/56124
28734         * ira-costs.c (scan_one_insn): Check whether the source rtx of
28735         loading has side effect.
28737 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
28739         * config/sparc/sparc.c: Include tree-pass.h.
28740         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
28741         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
28742         head of file.  Change return type.  Split off gate function.
28743         (sparc_gate_work_around_errata): New function.
28744         (pass_work_around_errata): New pass definition.
28745         (insert_pass_work_around_errata) New pass insert definition to
28746         insert pass_work_around_errata just after delayed-branch scheduling.
28747         (sparc_option_override): Insert the pass.
28748         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
28750 2013-04-10  David S. Miller  <davem@davemloft.net>
28752         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
28753         or -mcpu=hypersparc.
28755         * target.def (cstore_mode): New hook.
28756         * target.h: Include insn-codes.h
28757         * targhooks.c: Likewise.
28758         (default_cstore_mode): New function.
28759         * targhooks.h: Declare it.
28760         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
28761         * doc/tm.texi: Rebuild.
28762         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
28763         target hook, rather than inspecting the insn_data.
28764         * config/sparc/sparc.c (sparc_cstore_mode): New function.
28765         (TARGET_CSTORE_MODE): Redefine.
28766         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
28767         result patterns.
28768         * config/sparc/predicates.md (cstore_result_operand): New special
28769         predicate.
28770         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
28771         Use it for operand 0.
28772         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
28773         (*snesi_special): Likewise.
28774         (*snesi_zero): Likewise.
28775         (*seqsi_zero): Likewise.
28776         (*sltu_insn): Likewise.
28777         (*sgeu_insn): Likewise.
28778         (*seqdi_special): Make operand 0 and comparison operation be of
28779         DImode.
28780         (*snedi_special): Likewise.
28781         (*snedi_special_vis3): Likewise.
28782         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
28783         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
28784         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
28785         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
28786         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
28787         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
28788         (*sltu_extend_sp64): Likewise.
28789         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
28790         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
28791         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
28792         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
28793         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
28795 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
28797         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
28798         (aarch64_start_file): Use the new function.
28800 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28801             Jason Merrill  <jason@redhat.com>
28803         * common.opt: Add -gdwarf.
28804         * opts.c (common_handle_option): Handle it.
28805         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
28807 2013-04-10  Richard Biener  <rguenther@suse.de>
28809         * passes.c (execute_todo): Do not call ggc_collect conditional here.
28810         (execute_one_ipa_transform_pass): But unconditionally here.
28811         (execute_one_pass): And here.
28812         (init_optimization_passes): Remove reload pass.
28813         * tree-pass.h (TODO_ggc_collect): Remove.
28814         (pass_reload): Likewise.
28815         * ira.c (do_reload): Merge into ...
28816         (ira): ... this.
28817         (rest_of_handle_reload): Remove.
28818         (pass_reload): Likewise.
28819         * config/i386/i386.c (ix86_option_override): Refer to ira instead
28820         of reload for vzeroupper pass placement.
28821         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
28822         and todo_flags_finish of all passes.
28824 2013-04-10  Richard Biener  <rguenther@suse.de>
28826         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
28827         first_const_oprnd field, rename first_def_type to first_op_type.
28828         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
28829         (vect_get_and_check_slp_defs): Always use the type of the
28830         operand.  Allow mixed vect_external_def, vect_constant_def types.
28831         (vect_get_constant_vectors): Handle mixed vect_external_def,
28832         vect_constant_def types.
28834 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
28836         PR tree-optimization/55524
28837         * tree-ssa-math-opts.c
28838         (convert_mult_to_fma): Don't use an fms construct
28839         when we don't have an fms operation, but fnma, and it looks
28840         likely that we'll be able to use the latter.
28842 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
28844         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
28845         function.
28846         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
28847         inline fail caused by overwritable functions.
28849 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
28851         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
28852         unnecessary bits in the constant power of two case.
28854 2013-04-10  Richard Biener  <rguenther@suse.de>
28856         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
28857         broken code swapping operands.
28858         (vect_build_slp_tree): Do not compute load permutations here.
28859         (vect_analyze_slp_instance): Compute load permutations here,
28860         after building the SLP tree.
28862 2013-04-09  Christian Bruel  <christian.bruel@st.com>
28864         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
28865         of next/prev_real_insn.
28867 2013-04-09  Jan Hubicka  <jh@suse.cz>
28869         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
28870         Drop aliased parameter.
28871         (function_and_variable_visibility): Do not handle alias pairs.
28872         * cgraph.c (varpool_externally_visible_p): Update prototype.
28873         * varpool.c (varpool_add_new_variable): Update.
28875 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28877         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
28879 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
28881         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
28883         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
28885 2013-04-09  Marek Polacek  <polacek@redhat.com>
28887         PR tree-optimization/48762
28888         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
28890 2013-04-09  Richard Biener  <rguenther@suse.de>
28892         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
28893         dealing with cost.
28894         (vect_build_slp_tree): Likewise.
28895         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
28896         calculating the cost of a SLP instance.
28897         (vect_analyze_slp_instance): Use it from here, after building
28898         the SLP tree.
28900 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
28902         PR middle-end/56883
28903         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
28904         expand_omp_for_static_chunk): Use simple_p = true in
28905         force_gimple_operand_gsi calls when assigning to addressable decls.
28907 2013-04-09  Jeff Law  <law@redhat.com>
28909         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
28910         when the boolean was created by converting a wider object which
28911         had a boolean range.
28913 2013-04-09  Richard Biener  <rguenther@suse.de>
28915         * tree-vectorizer.h (slp_void_p): Remove.
28916         (slp_tree): Typedef before _slp_tree declaration.
28917         (struct _slp_tree): Use a vector of slp_tree as children.
28918         (vect_get_place_in_interleaving_chain): Remove.
28919         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
28920         Move ...
28921         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
28922         and make static.
28923         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
28924         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
28925         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
28926         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
28927         Use slp_node instead of slp_void_p and adjust.
28929 2013-04-09  Richard Biener  <rguenther@suse.de>
28931         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
28932         work that is not necessary.
28934 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
28936         PR tree-optimization/56854
28937         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
28938         forward into clobber stmts if it would change MEM_REF lhs into
28939         non-MEM_REF.
28941 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
28943         * tree.c (type_hash_lookup, type_hash_add): Make static.
28944         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
28946 2013-04-09  Richard Biener  <rguenther@suse.de>
28948         * tree.h (unsave_expr_now): Remove.
28949         * tree-inline.c (mark_local_for_remap_r): Remove.
28950         (unsave_expr_1): Likewise.
28951         (unsave_r): Likewise.
28952         (unsave_expr_now): Likewise.
28953         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
28954         (propagate_tree_value): Likewise.
28956 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
28958         * doc/rtl.texi (sequence): Rewrite documentation to match the
28959         current use of SEQUENCE rtl objects.
28960         * rtl.def (SEQUENCE): Likewise.
28962         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
28963         Update documentation.
28964         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
28965         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
28967         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
28969 2013-04-08  Teresa Johnson  <tejohnson@google.com>
28971         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
28972         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
28973         methods.
28974         (estimate_edge_size_and_time): Add comment to suggest using rounding
28975         methods.
28976         (estimate_node_size_and_time): Ditto.
28977         (remap_edge_change_prob): Use helper rounding divide methods.
28978         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
28979         (gimple_mod_pow2_value_transform): Ditto.
28980         (gimple_mod_subtract_transform): Ditto.
28981         (gimple_ic_transform): Ditto.
28982         (gimple_stringops_transform): Ditto.
28983         * stmt.c (conditional_probability): Ditto.
28984         (emit_case_dispatch_table): Ditto.
28985         * lto-cgraph.c (merge_profile_summaries): Ditto.
28986         * tree-optimize.c (execute_fixup_cfg): Ditto.
28987         * cfgcleanup.c (try_forward_edges): Ditto.
28988         * cfgloopmanip.c (scale_loop_profile): Ditto.
28989         (loopify): Ditto.
28990         (duplicate_loop_to_header_edge): Ditto.
28991         (lv_adjust_loop_entry_edge): Ditto.
28992         * tree-vect-loop.c (vect_transform_loop): Ditto.
28993         * profile.c (compute_branch_probabilities): Ditto.
28994         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
28995         * lto-streamer-in.c (input_cfg): Ditto.
28996         * gimple-streamer-in.c (input_bb): Ditto.
28997         * ipa-cp.c (update_profiling_info): Ditto.
28998         (update_specialized_profile): Ditto.
28999         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
29000         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
29001         rounding methods.
29002         * sched-rgn.c (compute_dom_prob_ps): Ditto.
29003         (compute_trg_info): Ditto.
29004         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
29005         (purge_dead_edges): Ditto.
29006         * loop-unswitch.c (unswitch_loop): Ditto.
29007         * cgraphclones.c (cgraph_clone_edge): Ditto.
29008         (cgraph_clone_node): Ditto.
29009         * tree-inline.c (copy_bb): Ditto.
29010         (copy_edges_for_bb): Ditto.
29011         (initialize_cfun): Ditto.
29012         (copy_cfg_body): Ditto.
29013         (expand_call_inline): Ditto.
29015 2013-04-08  Kai Tietz  <ktietz@redhat.com>
29017         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
29018         TARGET_CYGWIN64 by TARGET_64BIT.
29020 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29022         * config/epiphany/epiphany.md (GPR_1): New constant.
29023         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
29024         * config/epiphany/epiphany.c (gen_compare_reg):
29025         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
29026         is already in place.
29027         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
29028         Don't require being called during rtl expansion; If y operlaps r0,
29029         return 0.
29030         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
29031         (epiphany_expand_epilogue): Likewise.
29033         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
29034         Don't use CC_FPmode for ORDERED / UNORDERED.
29035         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
29037         * config/epiphany/constraints.md (CnL): New constraint.
29038         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
29039         * config/epiphany/predicates.md (add_operand): Allow 1024.
29041         * config/epiphany/epiphany.md (logical_op): New code iterator.
29042         (op_mnc): New code attribute.
29043         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
29044         (mov_f+1, mov_f+2): New peephole2 patterns.
29046         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
29047         (cstoresi4): Also allow re-use of zero result when doing a NE
29048         comparison to a non-zero operand.
29049         Use (clobber (scratch)) for first insn if the gpr output is not needed.
29051         * config/epiphany/epiphany.md (<insn_opname>v2si3):
29052         Use gen_addsi3_i / gen_subsi3_i.
29054 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
29056         PR c++/34949
29057         PR c++/50243
29058         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
29059         contain anything but clobbers, at most one __builtin_stack_restore,
29060         optionally debug stmts and final resx, and if it has at least one
29061         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
29062         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
29063         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
29064         which isn't defaut definition, remove them.
29065         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
29066         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
29067         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
29068         with MEM_REF LHS with SSA_NAME address.
29070 2013-04-08  Jeff Law  <law@redhat.com>
29072         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
29074 2013-04-08  Richard Biener  <rguenther@suse.de>
29076         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
29077         extra newline.
29078         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
29079         determined vector type.
29080         (vect_analyze_data_refs): Likewise.
29081         (vect_get_new_vect_var): Adjust.
29082         (vect_create_destination_var): Preserve SSA name versions.
29083         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
29084         not dump anything here.
29086 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29088         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
29089         Add member lr_slot_known.
29090         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
29091         if necessary.
29092         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
29093         Remove code that sets lr_slot_offset according to what a previous
29094         version of epiphany_emit_save_restore used to do.
29095         (epiphany_emit_save_restore): When doing an lr save or restore,
29096         set/verify lr_slot_known and lr_slot_offset.
29098 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
29100         PR target/54338
29101         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
29102         in ALL_REGS.
29104 2013-04-08  Richard Biener  <rguenther@suse.de>
29106         * alias.c (find_base_term): Fix thinko in previous change.
29108 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
29110         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
29111         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
29112         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
29113         if possible to compute val.
29114         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
29115         For QImode integers don't require anything about precision.  Use
29116         const_with_all_bytes_same to find out if the constant doesn't have
29117         repeated bytes in it.
29119 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29121         * config/s390/s390.c (s390_expand_insv): Only accept insertions
29122         within mode size.
29124 2013-04-08  Marek Polacek  <polacek@redhat.com>
29126         PR rtl-optimization/48182
29127         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
29128         value to 1.
29130 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29132         PR target/55487
29133         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
29134         nuses, make sure we have a label.
29136 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29138         PR target/56843
29139         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
29140         (rs6000_emit_swdiv_low_precision): Remove.
29141         (rs6000_emit_swdiv): Rewrite to handle between one and four
29142         iterations of Newton-Raphson generally; modify required number of
29143         iterations for some cases.
29144         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
29146 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
29148         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
29149         set-but-unused variable.
29151         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
29152         basic blocks of released function bodies garbage-collectable.
29154         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
29155         (struct rtl_opt_pass): Add TODO_df_finish.
29157         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
29159 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29161         * config/arm/constraints.md (q): New constraint.
29162         * config/arm/ldrdstrd.md: New file.
29163         * config/arm/arm.md (ldrdstrd.md) New include.
29164         (arm_movdi): Use "q" instead of "r" constraint
29165         for double-word memory access.
29166         (movdf_soft_insn): Likewise.
29167         * config/arm/vfp.md (movdi_vfp): Likewise.
29168         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
29169         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
29170         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
29171         (mem_ok_for_ldrd_strd): Likewise.
29172         (output_move_double): Update assertion.
29174 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29176         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
29178 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29180         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
29181         define_insn_and_split.
29182         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
29184 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29186         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
29187         define_insn_and_split.
29188         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
29189         (shiftsi3_compare): New pattern.
29190         (rrx): New pattern.
29191         * config/arm/unspecs.md (UNSPEC_RRX): New.
29193 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29195         * config/arm/arm.md (negdi_extendsidi): New pattern.
29196         (negdi_zero_extendsidi): Likewise.
29198 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29200         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
29201         define_insn_and_split.
29202         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
29203         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
29205 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29207         * config/arm/arm.md (arm_subdi3): Convert define_insn into
29208         define_insn_and_split.
29209         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
29210         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
29212 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29214         * config/arm/arm.md (subsi3_carryin): New pattern.
29215         (subsi3_carryin_const): Likewise.
29216         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
29217         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
29219 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29221         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
29223 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29225         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
29226         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
29228 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29230         * config/arm/arm.c (arm_expand_builtin): Change fcode
29231         type to unsigned int.
29233 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29235         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
29237 2013-04-04  Ian Lance Taylor  <iant@google.com>
29239         * doc/standards.texi (Standards): The Go frontend supports the Go 1
29240         language standard.
29242 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
29244         PR middle-end/56729
29245         * df-scan.c (df_insn_delete): Disable failing assert.
29247 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29249         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
29250         New function prototype.
29251         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
29252         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
29253         (arm_builtin_vectorized_function): New function.
29255 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29257         * config/arm/arm_neon_builtins.def: New file.
29258         * config/arm/arm.c (neon_builtin_data): Move contents to
29259         arm_neon_builtins.def.
29260         (enum arm_builtins): Include neon builtin definitions.
29261         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
29262         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
29264 2013-04-04  Marek Polacek  <polacek@redhat.com>
29266         PR tree-optimization/48186
29267         * predict.c (maybe_hot_frequency_p): Return false if
29268         HOT_BB_FREQUENCY_FRACTION is 0.
29269         (cgraph_maybe_hot_edge_p): Likewise.
29271 2013-04-04  Richard Biener  <rguenther@suse.de>
29273         PR tree-optimization/56826
29274         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
29275         more accurately.
29277 2013-04-04  Richard Biener  <rguenther@suse.de>
29279         PR tree-optimization/56213
29280         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
29281         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
29283 2013-04-04  Richard Biener  <rguenther@suse.de>
29285         PR tree-optimization/56837
29286         * tree-loop-distribution.c (classify_partition): For non-zero
29287         values require that the value has the same precision as its
29288         mode to be useful as memset value.
29290 2013-04-03  Nick Clifton  <nickc@redhat.com>
29292         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
29293         (fmssf4): Use fmsf.s on E3V5 architectures.
29294         (fnmasf4): Use fnmaf.s on E3V5 architectures.
29295         (fnmssf4): Use fnmsf.s on E3V5 architectures.
29297 2013-04-03  Jeff Law  <law@redhat.com>
29299         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
29300         (lra-eliminations.o): Likewise.
29302 2013-04-03  Teresa Johnson  <tejohnson@google.com>
29304         * gcov-io.c (compute_working_sets): Moved most of body of old
29305         compute_working_sets here from profile.c.
29306         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
29307         (gcov_working_set_t): Moved typedef here from basic-block.h
29308         (compute_working_set): Declare.
29309         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
29310         (get_working_sets): Renamed from compute_working_set,
29311         replace most of body with call to new compute_working_sets.
29312         (get_exec_counts): Replace call to compute_working_sets
29313         to get_working_sets.
29314         * profile.h (get_working_sets): Renamed from compute_working_set.
29315         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
29316         to get_working_sets.
29317         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
29318         * gcov-dump.c (dump_working_sets): New function.
29320 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
29322         * hwint.c (sext_hwi, zext_hwi): New functions.
29323         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
29324         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
29325         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
29326         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
29327         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
29328         (sext_hwi, zext_hwi): New functions.
29330 2013-04-03  Jeff Law  <law@redhat.com>
29332         PR tree-optimization/56799
29333         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
29334         back test for widening conversion erroneously dropped in prior change.
29336 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29338         PR target/56809
29339         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
29340         instead of next_real_insn.
29342 2013-04-03  Marek Polacek  <polacek@redhat.com>
29344         PR sanitizer/55702
29345         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
29347 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29349         PR target/56809
29350         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
29351         next_real_insn.
29352         (thumb1_output_casesi): Likewise.
29353         (thumb2_output_casesi): Likewise.
29355 2013-04-03  Richard Biener  <rguenther@suse.de>
29357         PR tree-optimization/56817
29358         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
29359         Split out ...
29360         (tree_unroll_loops_completely_1): ... new function to manually
29361         walk the loop tree, properly defering outer loops of unrolled
29362         loops to later iterations.
29364 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29366         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
29367         (vectorizable_load): Likewise.
29368         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
29369         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
29371 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29373         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
29374         BIT_FIELD_REF.
29376 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29378         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
29380 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
29382         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
29384 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29386         PR tree-optimization/56790
29387         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
29388         folding.
29390 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29392         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
29393         Handle VEC_MERGE.
29394         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
29395         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
29396         equal arguments.
29398 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
29400         PR c/19449
29401         * tree.h (force_folding_builtin_constant_p): New decl.
29402         * builtins.c (force_folding_builtin_constant_p): New variable.
29403         (fold_builtin_constant_p): Fold immediately also if
29404         force_folding_builtin_constant_p.
29406 2013-04-03  Richard Biener  <rguenther@suse.de>
29408         PR tree-optimization/56812
29409         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
29410         DRs of the same interleaving chain are independent.
29412 2013-04-02  Jason Merrill  <jason@redhat.com>
29414         * gdbinit.in (pbb): Use debug fn.
29416 2013-04-02  Lawrence Crowl  <crowl@google.com>
29418         * sese.h (struct ivtype_map_elt_s): Remove unused.
29419         (extern debug_ivtype_map): Remove unused.
29420         (extern eq_ivtype_map_elts): Remove unused.
29421         * sese.c (debug_ivtype_map): Removed unused.
29422         (debug_ivtype_map_1): Removed unused.
29423         (debug_ivtype_elt): Remove unused.
29424         (eq_ivtype_map_elts): Remove unused.
29426 2013-04-02  Kai Tietz  <ktietz@redhat.com>
29428         PR target/52790
29429         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
29430         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
29431         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
29432         function.
29433         (legitimize_pe_coff_symbol): Likewise.
29434         (is_imported_p): New helper-function.
29435         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
29436         for Windows x64 targets.
29437         (ix86_expand_prologue): Optimize for pe-coff targets.
29438         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
29439         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
29440         medium/large code-model.
29441         (legitimize_pic_address): Likewise.
29442         (legitimize_tls_address): Likewise.
29443         (ix86_expand_call): Likewise.
29444         (x86_output_mi_thunk): Likewise.
29445         (get_dllimport_decl): Add new beimport argument.
29446         (construct_plt_address): Don't assert for x64 pe-coff targets.
29447         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
29448         targets.
29449         (SYMBOL_FLAG_STUBVAR): New macro.
29450         (SYMBOL_REF_STUBVAR_P): Likewise.
29451         * config/i386/winnt.c (stub_list): New structure.
29452         (stub_head): New local variable.
29453         (i386_pe_record_stub): New function.
29454         (i386_pe_file_end): Emit refptr-stubs.
29456 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
29458         PR rtl-optimization/56745
29459         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
29460         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
29462         PR c++/34949
29463         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
29464         and both of them are MEM_REFs, just compare first argument for
29465         equality and attempt to deal even with differing offsets.
29467         PR c++/34949
29468         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
29469         of gimple_clobber_p to be MEM_REF.
29470         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
29471         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
29472         after gimplification.
29473         * asan.c (get_mem_ref_of_assignment): Don't instrument
29474         gimple_clobber_p stmts.
29475         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
29476         gimple_clobber_p stmt if they have MEM_REF lhs and
29477         are dead because of another gimple_clobber_p stmt.
29478         * tree-ssa-live.c (clear_unused_block_pointer): Treat
29479         gimple_clobber_p stmts like debug stmts.
29480         (remove_unused_locals): Remove clobbers with MEM_REF lhs
29481         that refer to unused VAR_DECLs or uninitialized values.
29482         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
29483         gimple_clobber_p stmts if they refer to removed parameters.
29484         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
29485         formatting.
29487 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
29489         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
29490         using SWI48 mode attribute.
29492 2013-04-02  Wei Mi  <wmi@google.com>
29494         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
29495         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
29496         *<rotate_insn><mode>3_mask in i386.md.
29498 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
29500         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
29502 2013-04-02  Richard Biener  <rguenther@suse.de>
29504         PR tree-optimization/56778
29505         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29506         Runtime alias tests are not supported for gather loads.
29507         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
29508         stmts referenced from SSA operands before updating SSA form.
29510 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
29511             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29513         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
29514         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
29515         * config/arm/cortex-a53.md: New file.
29516         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
29517         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
29518         * config/arm/arm.c (arm_issue_rate): Likewise.
29519         * config/arm/arm-tune.md: Regenerate
29520         * config/arm/arm-tables.opt: Regenerate.
29521         * config/arm/arm-cores.def: Add cortex-a53.
29523 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
29525         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
29526         non-static link.
29528 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
29530         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
29531         scalar load/store operations using B/H registers.
29532         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
29534 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
29536         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
29537         scalar move.
29538         * config/aarch64/aarch64.c
29539         (aarch64_simd_scalar_immediate_valid_for_move): New.
29540         * config/aarch64/aarch64-protos.h
29541         (aarch64_simd_scalar_immediate_valid_for_move): New.
29542         * config/aarch64/constraints.md (Dh, Dq): New.
29543         * config/aarch64/iterators.md (hq): New.
29545 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
29547         * reorg.c (get_branch_condition): Deal with conditional returns.
29548         (fill_simple_delay_slots): Remove dead code dealing with jumps.
29550 2013-04-01  Wei Mi  <wmi@google.com>
29552         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
29553         Truncate operand 2 using %b asm operand modifier.
29554         (*<shift_insn><mode>3_mask): Ditto.
29555         (*<rotate_insn><mode>3_mask): Ditto.
29557 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
29559         PR middle-end/56798
29560         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
29562 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
29564         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
29565         of next_real_insn.
29566         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
29568 2013-03-30  Lawrence Crowl  <crowl@google.com>
29570         * dse.c (clear_alias_sets): Remove never set.
29571         (disqualified_clear_alias_sets): Remove never set.
29572         (clear_alias_mode_pool): Remove never set.
29573         (dse_step0): Remove condition that is never true.
29574         (canon_address): Remove condition that is never true.
29575         (dse_step7): Remove condition that is never true.
29576         (rest_of_handle_dse): Remove condition that is never true.
29577         (rest_of_handle_dse::did_global): Remove never read from above.
29578         (dse_step2_spill): Remove never called from above.
29579         (dse_step5_spill): Remove never called from above.
29581 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
29583         * doc/md.texi (Standard Names) <casesi>: Update documentation for
29584         JUMP_TABLE_DATA changes.
29585         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
29586         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
29587         (Insns) <jump_table_data>: New entry.
29588         * doc/tm.texi: Regenerate.
29590         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
29592         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
29593         for table jump at the end of a basic block using tablejump_p.
29594         * targhooks.c (default_invalid_within_doloop): Likewise.
29595         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
29596         target hook implementation that is identical to the default hook.
29597         (rs6000_invalid_within_doloop): Remove.
29599         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
29600         unused variable from tablejump_p call.
29602         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
29603         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
29604         (INSN_DELETED_P): Likewise.
29605         (emit_jump_table_data): New prototype.
29606         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
29607         after 4th as unused.
29608         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
29609         * sched-vis.c (print_insn): Likewise.
29610         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
29611         insn for compatibility with back ends that use next_active_insn to
29612         identify jump table data.
29613         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
29614         (remove_insn): Likewise.
29615         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
29616         to be emitted.
29617         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
29618         (emit_jump_table_data): New function.
29620         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
29621         basic block, a JUMP_TABLE_DATA never is.
29622         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
29623         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
29624         off from code handling real insns.
29625         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
29626         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
29627         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
29628         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
29629         is not a NONDEBUG_INSN_P.
29630         * ira-costs.c (scan_one_insn): Likewise.
29631         * jump.c (mark_all_labels): Likewise.
29632         (mark_jump_label_1): Likewise.
29633         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
29634         * lra.c (get_insn_freq): Expect all insns reaching here to be in
29635         a basic block.
29636         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
29637         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
29638         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
29639         JUMP_TABLE_DATA_P insns.
29640         (calculate_elim_costs_all_insns): Likewise.
29641         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
29642         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
29643         (delete_output_reload): Code style fixups.
29644         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
29645         insn flags on this non-insn.
29646         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
29647         as scheduling barriers, for pre-change compatibility.
29648         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
29649         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
29651         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
29652         redundant JUMP_TABLE_DATA_P test.
29653         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
29654         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
29655         (frv_for_each_packet): Likewise.
29656         * config/i386/i386.c (min_insn_size): Likewise.
29657         (ix86_avoid_jump_mispredicts): Likewise.
29658         * config/m32r/m32r.c (m32r_is_insn): Likewise.
29659         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
29660         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
29661         (mips16_insn_length): Robustify.
29662         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
29663         (mips16_split_long_branches): Likewise.
29664         * config/pa/pa.c (pa_combine_instructions): Likewise.
29665         * config/rs6000/rs6000.c (get_next_active_insn): Treat
29666         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
29667         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
29668         as contributing to pool range lengths.
29669         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
29670         Remove redundant JUMP_TABLE_DATA_P test.
29671         (sh_loop_align): Likewise.
29672         (split_branches): Likewise.
29673         (sh_insn_length_adjustment): Likewise.
29674         * config/spu/spu.c (get_branch_target): Likewise.
29676 2013-03-29  Jan Hubicka  <jh@suse.cz>
29678         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
29679         gcov streaming; stream hot bb threshold to ltrans.
29680         * predict.c (get_hot_bb_threshold): Break out from ....
29681         (maybe_hot_count_p): ... here.
29682         (set_hot_bb_threshold): New function.
29683         * lto-section-in.c (lto_section_name): Add profile.
29684         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
29685         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
29686         and data-streamer.h
29687         (histogram_entry): New structure.
29688         (histogram, histogram_pool): New global vars.
29689         (histogram_hash): New structure.
29690         (histogram_hash::hash): New method.
29691         (histogram_hash::equal): Likewise.
29692         (account_time_size): New function.
29693         (cmp_counts): New function.
29694         (dump_histogram): New function.
29695         (ipa_profile_generate_summary): New function.
29696         (ipa_profile_write_summary): New function.
29697         (ipa_profile_read_summary): New function.
29698         (ipa_profile): Decide on threshold.
29699         (pass_ipa_profile): Add ipa_profile_write_summary and
29700         ipa_profile_read_summary.
29701         * Makefile.in (ipa.o): Update dependencies.
29702         * lto-streamer.h (LTO_section_ipa_profile): New section.
29704 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
29706         * tree.h (VAR_P): New.
29708 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
29710         PR lto/56777
29711         * doc/invoke.texi ([-fwhole-program]): Fix typo.
29713 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
29715         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
29716         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29717         (control_flow_insn_p): Likewise.
29718         * cfgrtl.c (duplicate_insn_chain): Likewise.
29719         * final.c (get_attr_length_1): Likewise.
29720         (shorten_branches): Likewise.
29721         (final_scan_insn): Likewise.
29722         * function.c (instantiate_virtual_regs): Likewise.
29723         * gcse.c (insert_insn_end_basic_block): Likewise.
29724         * ira-costs.c (scan_one_insn): Likewise.
29725         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
29726         * lra.c (check_rtl): Likewise.
29727         * reload1.c (elimination_costs_in_insn): Likewise.
29728         * reorg.c (follow_jumps): Likewise.
29730         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
29731         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29732         (thumb_far_jump_used_p): Likewise.
29733         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
29734         (workaround_speculation): Likewise.
29735         (add_sched_insns_for_speculation): Likewise.
29736         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
29737         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
29738         (frv_for_each_packet): Likewise.
29739         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
29740         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
29741         (final_emit_insn_group_barriers): Likewise.
29742         * config/m32r/m32r.c (m32r_is_insn): Likewise.
29743         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
29744         (mips16_insn_length): Likewise.
29745         * config/pa/pa.c (pa_reorg): Likewise.
29746         (pa_combine_instructions): Likewise.
29747         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
29748         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
29749         (sh_reorg): Likewise.
29750         (split_branches): Likewise.
29751         * config/spu/spu.c (get_branch_target): Likewise.
29753         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
29754         JUMP_TABLE_DATA_P.
29756 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
29758         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
29759         Fix declaration name.
29761 2013-03-28  Lawrence Crowl  <crowl@google.com>
29763         * graphds.h (struct graph.indicies): Remove unused.
29764         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
29765         (SCOP_ORIGINAL_PDDRS): Remove unused.
29766         * sese.h (extern insert_loop_close_phis): Removed unused.
29767         (extern insert_guard_phis): Removed unused.
29768         (extern ivtype_map_elt_info): Removed unused.
29769         (new_ivtype_map_elt): Removed unused.
29770         * sese.c (ivtype_map_elt_info): Removed unused.
29772 2013-03-28  Lawrence Crowl  <crowl@google.com>
29774         * Makefile.in: Add several missing include dependences.
29775         (DUMPFILE_H): New.
29776         (test-dump.o): New.  This object is not added to any executable,
29777         but is present for ad-hoc testing.
29778         * bitmap.c
29779         (debug (const bitmap_head_def &)): New.
29780         (debug (const bitmap_head_def *)): New.
29781         * bitmap.h
29782         (extern debug (const bitmap_head_def &)): New.
29783         (extern debug (const bitmap_head_def *)): New.
29784         * cfg.c
29785         (debug (edge_def &)): New.
29786         (debug (edge_def *)): New.
29787         * cfghooks.c
29788         (debug (basic_block_def &)): New.
29789         (debug (basic_block_def *)): New.
29790         * dumpfile.h
29791         (dump_node (const_tree, int, FILE *)): Correct source file.
29792         * dwarf2out.c
29793         (debug (die_struct &)): New.
29794         (debug (die_struct *)): New.
29795         * dwarf2out.h
29796         (extern debug (die_struct &)): New.
29797         (extern debug (die_struct *)): New.
29798         * gimple-pretty-print.c
29799         (debug (gimple_statement_d &)): New.
29800         (debug (gimple_statement_d *)): New.
29801         * gimple-pretty-print.h
29802         (extern debug (gimple_statement_d &)): New.
29803         (extern debug (gimple_statement_d *)): New.
29804         * ira-build.c
29805         (debug (ira_allocno_copy &)): New.
29806         (debug (ira_allocno_copy *)): New.
29807         (debug (ira_allocno &)): New.
29808         (debug (ira_allocno *)): New.
29809         * ira-int.h
29810         (extern debug (ira_allocno_copy &)): New.
29811         (extern debug (ira_allocno_copy *)): New.
29812         (extern debug (ira_allocno &)): New.
29813         (extern debug (ira_allocno *)): New.
29814         * ira-lives.c
29815         (debug (live_range &)): New.
29816         (debug (live_range *)): New.
29817         * lra-int.h
29818         (debug (lra_live_range &)): New.
29819         (debug (lra_live_range *)): New.
29820         * lra-lives.c
29821         (debug (lra_live_range &)): New.
29822         (debug (lra_live_range *)): New.
29823         * omega.c
29824         (debug (omega_pb_d &)): New.
29825         (debug (omega_pb_d *)): New.
29826         * omega.h
29827         (extern debug (omega_pb_d &)): New.
29828         (extern debug (omega_pb_d *)): New.
29829         * print-rtl.c
29830         (debug (const rtx_def &)): New.
29831         (debug (const rtx_def *)): New.
29832         * print-tree.c
29833         (debug_tree (tree): Move within file.
29834         (debug_raw (const tree_node &)): New.
29835         (debug_raw (const tree_node *)): New.
29836         (dump_tree_via_hooks (const tree_node *, int)): New.
29837         (debug (const tree_node &)): New.
29838         (debug (const tree_node *)): New.
29839         (debug_verbose (const tree_node &)): New.
29840         (debug_verbose (const tree_node *)): New.
29841         (debug_head (const tree_node &)): New.
29842         (debug_head (const tree_node *)): New.
29843         (debug_body (const tree_node &)): New.
29844         (debug_body (const tree_node *)): New.
29845         (debug_vec_tree (tree): Move and reimplement in terms of dump.
29846         (debug (vec<tree, va_gc> &)): New.
29847         (debug (vec<tree, va_gc> *)): New.
29848         * rtl.h
29849         (extern debug (const rtx_def &)): New.
29850         (extern debug (const rtx_def *)): New.
29851         * sbitmap.c
29852         (debug_raw (simple_bitmap_def &)): New.
29853         (debug_raw (simple_bitmap_def *)): New.
29854         (debug (simple_bitmap_def &)): New.
29855         (debug (simple_bitmap_def *)): New.
29856         * sbitmap.h
29857         (extern debug (simple_bitmap_def &)): New.
29858         (extern debug (simple_bitmap_def *)): New.
29859         (extern debug_raw (simple_bitmap_def &)): New.
29860         (extern debug_raw (simple_bitmap_def *)): New.
29861         * sel-sched-dump.c
29862         (debug (vinsn_def &)): New.
29863         (debug (vinsn_def *)): New.
29864         (debug_verbose (vinsn_def &)): New.
29865         (debug_verbose (vinsn_def *)): New.
29866         (debug (expr_def &)): New.
29867         (debug (expr_def *)): New.
29868         (debug_verbose (expr_def &)): New.
29869         (debug_verbose (expr_def *)): New.
29870         (debug (vec<rtx> &)): New.
29871         (debug (vec<rtx> *)): New.
29872         * sel-sched-dump.h
29873         (extern debug (vinsn_def &)): New.
29874         (extern debug (vinsn_def *)): New.
29875         (extern debug_verbose (vinsn_def &)): New.
29876         (extern debug_verbose (vinsn_def *)): New.
29877         (extern debug (expr_def &)): New.
29878         (extern debug (expr_def *)): New.
29879         (extern debug_verbose (expr_def &)): New.
29880         (extern debug_verbose (expr_def *)): New.
29881         (extern debug (vec<rtx> &)): New.
29882         (extern debug (vec<rtx> *)): New.
29883         * sel-sched-ir.h
29884         (_list_iter_cond_expr): Make inline instead of static.
29885         * sreal.c
29886         (debug (sreal &)): New.
29887         (debug (sreal *)): New.
29888         * sreal.h
29889         (extern debug (sreal &)): New.
29890         (extern debug (sreal *)): New.
29891         * tree.h
29892         (extern debug_raw (const tree_node &)): New.
29893         (extern debug_raw (const tree_node *)): New.
29894         (extern debug (const tree_node &)): New.
29895         (extern debug (const tree_node *)): New.
29896         (extern debug_verbose (const tree_node &)): New.
29897         (extern debug_verbose (const tree_node *)): New.
29898         (extern debug_head (const tree_node &)): New.
29899         (extern debug_head (const tree_node *)): New.
29900         (extern debug_body (const tree_node &)): New.
29901         (extern debug_body (const tree_node *)): New.
29902         (extern debug (vec<tree, va_gc> &)): New.
29903         (extern debug (vec<tree, va_gc> *)): New.
29904         * tree-cfg.c
29905         (debug (struct loop &)): New.
29906         (debug (struct loop *)): New.
29907         (debug_verbose (struct loop &)): New.
29908         (debug_verbose (struct loop *)): New.
29909         * tree-dump.c: Add header dependence.
29910         * tree-flow.h
29911         (extern debug (struct loop &)): New.
29912         (extern debug (struct loop *)): New.
29913         (extern debug_verbose (struct loop &)): New.
29914         (extern debug_verbose (struct loop *)): New.
29915         * tree-data-ref.c
29916         (debug (data_reference &)): New.
29917         (debug (data_reference *)): New.
29918         (debug (vec<data_reference_p> &)): New.
29919         (debug (vec<data_reference_p> *)): New.
29920         (debug (vec<ddr_p> &)): New.
29921         (debug (vec<ddr_p> *)): New.
29922         * tree-data-ref.h
29923         (extern debug (data_reference &)): New.
29924         (extern debug (data_reference *)): New.
29925         (extern debug (vec<data_reference_p> &)): New.
29926         (extern debug (vec<data_reference_p> *)): New.
29927         (extern debug (vec<ddr_p> &)): New.
29928         (extern debug (vec<ddr_p> *)): New.
29929         * tree-ssa-alias.c
29930         (debug (pt_solution &)): New.
29931         (debug (pt_solution *)): New.
29932         * tree-ssa-alias.h
29933         (extern debug (pt_solution &)): New.
29934         (extern debug (pt_solution *)): New.
29935         * tree-ssa-alias.c
29936         (debug (_var_map &)): New.
29937         (debug (_var_map *)): New.
29938         (debug (tree_live_info_d &)): New.
29939         (debug (tree_live_info_d *)): New.
29940         * tree-ssa-alias.h
29941         (extern debug (_var_map &)): New.
29942         (extern debug (_var_map *)): New.
29943         (extern debug (tree_live_info_d &)): New.
29944         (extern debug (tree_live_info_d *)): New.
29946 2013-03-28  Jan Hubicka  <jh@suse.cz>
29948         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
29950 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
29952         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
29953         record only when desired or required.
29955 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
29957         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
29958         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
29960 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29962         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
29963         (*andsi3_compare0_uxtw): New pattern.
29964         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
29965         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
29967 2013-03-28  Jan Hubicka  <jh@suse.cz>
29969         * data-streamer-in.c (streamer_read_gcov_count): New function.
29970         * gimple-streamer-out.c: Include value-prof.h.
29971         (output_gimple_stmt): Output histogram.
29972         (output_bb): Use streamer_write_gcov_count.
29973         * value-prof.c: Include data-streamer.h
29974         (dump_histogram_value): Add HIST_TYPE_MAX.
29975         (stream_out_histogram_value): New function.
29976         (stream_in_histogram_value): New function.
29977         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
29978         (stream_out_histogram_value, stream_in_histogram_value): Declare.
29979         * data-streamer-out.c (streamer_write_gcov_count): New function.
29980         (streamer_write_gcov_count_stream): New function.
29981         * lto-cgraph.c (lto_output_edge): Update counter streaming.
29982         (lto_output_node): Likewise.
29983         (input_node, input_edge): Likewise.
29984         * lto-streamer-out.c (output_cfg): Update streaming.
29985         * lto-streamer-in.c (input_cfg): Likewise.
29986         * data-streamer.h (streamer_write_gcov_count,
29987         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
29988         * gimple-streamer-in.c: Include value-prof.h
29989         (input_gimple_stmt): Input histograms.
29990         (input_bb): Update profile streaming.
29992 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
29994         * genmodes.c (emit_max_int): New function.
29995         (emit_insn_modes_h): Added call to emit_max_function.
29996         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
29997         Added doc.
29998         * machmode.def: Fixed comment.
30000 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
30002         * combine.c (try_combine): Removed useless assert.
30003         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
30005 2013-03-28  Marek Polacek  <polacek@redhat.com>
30006             Richard Biener  <rguenther@suse.de>
30008         PR tree-optimization/56695
30009         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
30010         build signed result of a vector comparison.
30011         * tree-cfg.c (verify_gimple_comparison): Check that a result
30012         of a vector comparison has signed type.
30014 2013-03-28  Richard Biener  <rguenther@suse.de>
30016         PR tree-optimization/37021
30017         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
30018         do not restrict gaps between groups.
30019         * tree-vect-stmts.c (vectorizable_load): Properly account for
30020         a gap between groups.
30022 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30024         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
30025         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
30026         is not enabled.
30028 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
30030         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
30031         * doc/extend.texi (Named Address Spaces): Ditto.
30032         (Variable Attributes): Ditto.
30034 2013-03-27  Kai Tietz  <ktietz@redhat.com>
30036         * config.build: Add support for cygwin x64 target.
30037         * config.gcc: Likewise.
30038         * config.host: Likewise.
30039         * configure.ac: Likewise
30040         * configure: Regenerated.
30042 2013-03-27  Kai Tietz  <ktietz@redhat.com>
30044         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
30045         * config/i386/t-cygwin-w64: New file.
30046         * config/i386/cygwin-w64.h: New file.
30047         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
30048         and add support for x64-cygwin target.
30049         (CPP_SPEC): Likewise.
30050         (CXX_WRAP_SPEC_LIST): Undefine before define.
30051         (LIBGCJ_SONAME): Use 15 as version.
30053 2013-03-27  Richard Biener  <rguenther@suse.de>
30055         PR tree-optimization/56716
30056         * tree-ssa-structalias.c (perform_var_substitution): Adjust
30057         dumping for ref nodes.
30059 2013-03-27  Martin Jambor  <mjambor@suse.cz>
30061         PR tree-optimization/55334
30062         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
30063         restricted pointers to arrays.
30065 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30067         * Makefile.in (.SUFFIXES): Add .cc.
30068         (.c.o): Apply same recipe for implicit rule .cc.o.
30070 2013-03-27  Richard Biener  <rguenther@suse.de>
30072         PR tree-optimization/37021
30073         * tree-vect-data-refs.c (vect_check_strided_load): Allow
30074         REALPART/IMAGPART_EXPRs around the supported refs.
30075         * tree-ssa-structalias.c (find_func_aliases): Assume that
30076         floating-point values are not used to transfer pointers.
30078 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30080         * target.def (TARGET_HAS_IFUNC_P): New target hook.
30081         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
30082         * doc/tm.texi: Regenerate.
30083         * targhooks.h (default_has_ifunc_p): New.
30084         * targhooks.c (default_has_ifunc_p): Ditto.
30085         * config/linux-protos.h: New file.
30086         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
30087         hook for linux which disables support of indirect functions in android.
30088         * config/linux-android.c: New file.
30089         * config/t-linux-android.c: Ditto.
30090         * config.gcc: Added new object file linux-android.o.
30091         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
30092         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
30093         * varasm.c (do_assemble_alias): Likewise.
30094         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
30095         doesn't support indirect functions.
30096         * configure: Regenerate.
30098 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
30100         PR target/56102
30101         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
30102         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
30103         mult-word mode.
30105 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30107         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
30109 2013-03-27  Terry Guo  <terry.guo@arm.com>
30111         * config/arm/arm-cores.def: Added core cortex-r7.
30112         * config/arm/arm-tune.md: Regenerated.
30113         * config/arm/arm-tables.opt: Regenerated.
30114         * doc/invoke.texi: Added entry for core cortex-r7.
30116 2013-03-27  Walter Lee  <walt@tilera.com>
30118         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
30119         double-decrement of next_scratch_regno.
30121 2013-03-27  Walter Lee  <walt@tilera.com>
30123         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
30124         input operands.
30125         (insn_v1mulus): Ditto.
30126         (insn_v2muls): Ditto.
30128 2013-03-27  Walter Lee  <walt@tilera.com>
30130         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
30131         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
30133 2013-03-27  Walter Lee  <walt@tilera.com>
30135         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
30136         (*sibcall_value): Ditto.
30138 2013-03-27  Walter Lee  <walt@tilera.com>
30140         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
30141         (insn_mnz_v8qi): ... this ...
30142         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
30143         vector equivalent.
30144         (insn_v<n>mnz): Replaced by ...
30145         (insn_v1mnz): ... this ...
30146         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
30147         equivalent.
30148         (insn_mz_<mode>): Replaced by ...
30149         (insn_mz_v8qi): ... this ...
30150         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
30151         vector equivalent.
30152         (insn_v<n>mz): Replaced by ...
30153         (insn_v1mz): ... this ...
30154         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
30155         equivalent.
30157 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30159         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
30161 2013-03-26  Roland McGrath  <mcgrathr@google.com>
30163         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
30164         than fprintf with a non-constant, non-format string.
30166 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
30168         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
30169         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
30170         operand 0 predicate.
30171         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
30172         attribute.  Use general_x64nomem_operand as operand 1 predicate.
30173         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
30174         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
30175         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
30176         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
30177         (mov<mode>_insv_1): Remove expander.  Merge insn with
30178         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
30179         Use general_x64nomem_operand as operand 1 predicate.
30180         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
30181         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
30182         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
30183         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
30184         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
30185         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
30186         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
30187         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
30188         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
30189         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
30190         (general_x64nomem_operand): Ditto.
30192 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30194         * config/rtems.opt: Add -pthread option.
30196 2013-03-26  Richard Biener  <rguenther@suse.de>
30198         * alias.c (find_base_term): Avoid redundant and not used recursion.
30199         (base_alias_check): Get the initial base term from the caller.
30200         (true_dependence_1): Compute and pass base terms to base_alias_check.
30201         (write_dependence_p): Likewise.
30202         (may_alias_p): Likewise.
30204 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
30206         * config/aarch64/aarch64.c (aarch64_classify_address): Support
30207         PC-relative load in SI modes and above only.
30209 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
30211         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
30212         * config/arm/iwmmxt.md (WCGR0): Update.
30213         (WCGR1, WCGR2, WCGR3): Likewise.
30215 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
30217         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
30218         Use x64 and nox64 isa attributes.
30220 2013-03-26  Richard Biener  <rguenther@suse.de>
30222         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
30223         alignment computations and rely on get_object_alignment_1
30224         for the !TYPE_P case.
30225         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
30227 2013-03-26  Walter Lee  <walt@tilera.com>
30229         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
30230         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
30232 2013-03-25  Jeff Law  <law@redhat.com>
30234         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
30235         check for INTEGRAL_TYPE_P that was missing due to checking in
30236         wrong version of prior patch.
30238 2013-03-25  Walter Lee  <walt@tilera.com>
30240         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
30241         TILEGX_INSN_SHUFFLEBYTES1.
30242         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
30243         shufflebytes1.
30244         (tilegx_builtins): Ditto.
30245         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
30247 2013-03-25  Walter Lee  <walt@tilera.com>
30249         * config/tilegx/tilegx.md (floatsisf2): New pattern.
30250         (floatunssisf2): New pattern.
30251         (floatsidf2): New pattern.
30252         (floatunssidf2): New pattern.
30254 2013-03-25  Walter Lee  <walt@tilera.com>
30256         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
30257         tests for constraint J, K, N, P.
30259 2013-03-25  Walter Lee  <walt@tilera.com>
30261         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
30262         Use indirect/pcrel encoding.
30263         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
30264         Ditto.
30266 2013-03-25  Steve Ellcey  <sellcey@mips.com>
30268         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
30269         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
30270         * config/mips/mips.c (mips_option_override): Set IMADD default.
30271         * config/mips/mips.h (PTF_AVOID_IMADD): New.
30272         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
30273         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
30274         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
30275         * doc/invoke.texi (-mimadd/-mno-imadd): New.
30277 2013-03-25  Jeff Law  <law@redhat.com>
30279         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
30280         slightly to avoid creating and folding useless trees.  Simplify
30281         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
30283 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
30285         * config/i386/i386.md (*zero_extendsidi2): Merge with
30286         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
30287         * config/i386/predicates.md (x86_64_zext_operand): Rename from
30288         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
30289         targets.  Clarify comment.
30291 2013-03-25  Martin Jambor  <mjambor@suse.cz>
30293         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
30294         pass-through jump functions differently.
30295         (ipa_read_jump_function): Likewise.  Also use setter functions to set
30296         up jump functions.
30298 2013-03-25  Martin Jambor  <mjambor@suse.cz>
30300         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
30301         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
30302         process it.
30303         (ipa_get_indirect_edge_target): New function.
30304         (devirtualization_time_bonus): New parameter known_aggs, pass it to
30305         ipa_get_indirect_edge_target.  Update all callers.
30306         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
30307         ipa_get_indirect_edge_target_1 instead of calling
30308         ipa_get_indirect_edge_target.
30309         (create_specialized_node): Pass aggvlas to
30310         ipcp_discover_new_direct_edges.
30312 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30314         * config/arm/arm.md (f_sels, f_seld): New types.
30315         (*cmov<mode>): New pattern.
30316         * config/arm/predicates.md (arm_vsel_comparison_operator): New
30317         predicate.
30319 2013-03-25  Kai Tietz  <ktietz@redhat.com>
30321         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
30322         POSIX-printf for mingw-hosted  builds.
30324 2013-03-25  Richard Biener  <rguenther@suse.de>
30326         PR middle-end/56694
30327         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
30328         must-not-throw stmt location.
30330 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30332         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
30333         Emit load-acquire versions when acq is true.
30334         (arm_emit_store_exclusive): Add rel parameter.
30335         Emit store-release versions when rel is true.
30336         (arm_split_compare_and_swap): Use acquire-release instructions
30337         instead.
30338         of barriers when appropriate.
30339         (arm_split_atomic_op): Likewise.
30340         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
30341         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
30342         (VUNSPEC_SLX): Likewise.
30343         (VUNSPEC_LDA): Likewise.
30344         (VUNSPEC_STL): Likewise.
30345         * config/arm/sync.md (atomic_load<mode>): New pattern.
30346         (atomic_store<mode>): Likewise.
30347         (arm_load_acquire_exclusive<mode>): Likewise.
30348         (arm_load_acquire_exclusivesi): Likewise.
30349         (arm_load_acquire_exclusivedi): Likewise.
30350         (arm_store_release_exclusive<mode>): Likewise.
30352 2013-03-25  Catherine Moore  <clm@codesourcery.com>
30354         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
30355         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
30356         * config/mip/predicates.md (lwsp_swsp_operand,
30357         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
30358         sb16_operand, db4_operand, db7_operand, ib3_operand,
30359         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
30360         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
30361         andi16_operand): New predicates.
30362         * config/mips/mips.md (compression): New attribute.
30363         (enabled): New attribute.
30364         (length): Consider compression in computing length.
30365         (shift_compression): New code attribute.
30366         (*add<mode>3): New operands. Record compression.
30367         (sub<mode>3): Likewise.
30368         (one_cmpl<mode>2): Likewise.
30369         (*and<mode>3): Likewise.
30370         (*ior<mode>3): Likewise.
30371         (unnamed pattern for xor): Likewise.
30372         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
30373         (*<optab><mode>3): Likewise.
30374         (*mov<mode>_internal: Likewise.
30375         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
30376         (mips_unsigned_immediate_p): New.
30377         (umips_lwsp_swsp_address_p): New.
30378         (m16_based_address_p): New.
30379         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
30380         (mips_unsigned_immediate_p): New prototype.
30381         (lwsp_swsp_address_p): New prototype.
30382         (m16_based_address_p): New prototype.
30383         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
30384         (mips_signed_immediate_p): New function.
30385         (m16_based_address_p): New function.
30386         (lwsp_swsp_address_p): New function.
30387         (mips_print_operand_punctuation): Recognize short delay slot insns
30388         for microMIPS.add<mode>3"
30390 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30392         PR target/56720
30393         * config/arm/iterators.md (v_cmp_result): New mode attribute.
30394         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
30396 2013-03-25  Richard Biener  <rguenther@suse.de>
30398         PR tree-optimization/56689
30399         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
30400         any edge.
30402 2013-03-25  Richard Biener  <rguenther@suse.de>
30404         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
30405         of bitmap.
30406         (memory_references): Likewise.
30407         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
30408         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
30409         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
30410         (gather_mem_refs_in_loops): Fold into ...
30411         (analyze_memory_references): ... this.  Move initialization
30412         to tree_ssa_lim_initialize.
30413         (fill_always_executed_in): Rename to ...
30414         (fill_always_executed_in_1): ... this.
30415         (fill_always_executed_in): Move contains_call computation to
30416         this new function from ...
30417         (tree_ssa_lim_initialize): ... here.
30418         (tree_ssa_lim): Call fill_always_executed_in.
30420 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
30422         * postreload.c (reload_combine): Fix code detecting returns.
30424 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
30426         * function.c (emit_use_return_register_into_block): On cc0 targets,
30427         do not emit the sequence between cc0 setter and user.
30429 2013-03-25  Kai Tietz  <ktietz@redhat.com>
30431         * config/i386/predicates.md (local_symbolic_operand): Interpret
30432         dll-imported symbols as none-local.
30434 2013-03-25  Richard Biener  <rguenther@suse.de>
30436         * tree-ssa-loop-im.c (struct depend): Remove.
30437         (struct lim_aux_data): Make depends a vec of gimples.
30438         (free_lim_aux_data): Adjust.
30439         (add_dependency): Likewise.
30440         (set_level): Likewise.
30442 2013-03-25  Richard Biener  <rguenther@suse.de>
30444         PR middle-end/56434
30445         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
30446         the pointer returned by calls with ECF_MALLOC set.
30448 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
30450         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
30452 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
30454         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
30455         using MMXMODE mode iterator.
30456         (*move<mode>_internal): Merge with *movv2sf_internal and
30457         *movv2sf_internal_rex64 using MMXMODE mode iterator.
30459 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
30461         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
30462         (record_last_mem_set_info): Likewise.
30464         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
30465         of XNEWVEC followed by memset.
30466         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
30468 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
30470         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30471         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
30472         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
30473         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
30474         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
30475         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
30476         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
30477         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
30478         BARRIER_P instead of GET_CODE.
30480 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30482         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
30483         inaccuracy in the probing code.
30485         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
30486         (ctrapdi4): Likewise.
30488 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30490         * calls.c (expand_call): Add missing guard to code handling return
30491         of non-BLKmode structures in MSB.
30492         * function.c (expand_function_end): Likewise.
30494 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30496         * combine.c (try_combine): Adjust comment.  Do not add the set of
30497         insn #0 if the destination indirectly is set or dies in insn #2.
30498         Tidy up code to distribute a new note.
30500 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
30502         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
30503         also for alternatives 16 and 17.
30505 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
30507         * config/i386/sse.md (*mov<mode>_internal): Merge with
30508         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
30509         Emit insn template depending on type attribute.  Use
30510         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30511         movd instead of movq mnemonic for interunit moves.  Rewrite mode
30512         attribute calculation.  Remove unit attribute calculation.
30513         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
30514         Set prefix_data16 attribute for DImode ssemov types.
30515         Use Ym instead of y for SSE-MMX conversion alternatives.
30516         Reorder operand constraints.
30518 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
30520         * df.h (df_insn_delete): Adjust prototype.
30521         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
30522         and let it decide whether mark the basic block dirty.
30523         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
30524         * df-scan.c (df_insn_info_delete): New helper function, split
30525         off from df_insn_delete.
30526         (df_scan_free_bb_info): Use it.
30527         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
30528         Likewise.
30529         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
30530         that the insn is actually an insn and it has a non-NULL basic block.
30531         Do not mark basic block dirty if only deleting a DEBUG_INSN.
30533 2013-03-22  Richard Biener  <rguenther@suse.de>
30535         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
30536         dep_ref members.
30537         (mem_ref_alloc): Do not allocate them.
30538         (refs_independent_p): Do not query or maintain a cache.
30540 2013-03-22  Richard Biener  <rguenther@suse.de>
30542         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
30543         (gather_mem_refs_in_loops): Do not compute it.
30544         (analyze_memory_references): Do not allocate it.
30545         (tree_ssa_lim_finalize): Do not free it.
30546         (for_all_locs_in_loop): Do not query all_refs_in_loop.
30548 2013-03-22  Richard Biener  <rguenther@suse.de>
30550         * is-a.h (as_a): Use gcc_checking_assert.
30552 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
30554         * config/aarch64/aarch64.c (aarch64_print_operand): New
30555         format specifier for printing a constant in hex.
30556         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
30557         format specifier for printing second operand.
30559 2013-03-22  Richard Biener  <rguenther@suse.de>
30561         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
30562         bitmaps.
30563         (gather_mem_refs_in_loops): Perform store accumulation here.
30564         (create_vop_ref_mapping_loop): Remove.
30565         (create_vop_ref_mapping): Likewise.
30566         (analyze_memory_references): Initialize refs_stored_in_loop.
30567         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
30568         (record_indep_loop): Remove.
30569         (record_dep_loop): New function.
30570         (ref_indep_loop_p_1): Adjust to only walk over references
30571         in the loop, not its subloops.
30572         (ref_indep_loop_p): Rename to ...
30573         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
30574         maintaining a more fine-grained cache.
30575         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
30576         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
30578 2013-03-22  Richard Biener  <rguenther@suse.de>
30580         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
30581         (struct mem_ref): Make accesses_in_loop a vec of a vec of
30582         aggregate mem_ref_loc.
30583         (free_mem_ref_locs): Inline into ...
30584         (memref_free): ... this and adjust.
30585         (mem_ref_alloc): Adjust.
30586         (mem_ref_locs_alloc): Remove.
30587         (record_mem_ref_loc): Adjust.
30588         (get_all_locs_in_loop): Rewrite into ...
30589         (for_all_locs_in_loop): ... this iterator.
30590         (rewrite_mem_ref_loc): New functor.
30591         (rewrite_mem_refs): Use for_all_locs_in_loop.
30592         (sm_set_flag_if_changed): New functor.
30593         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
30594         (ref_always_accessed): New functor.
30595         (ref_always_accessed_p): Use for_all_locs_in_loop.
30597 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
30599         * tree-pass.h (PROP_gimple_lvec): New.
30600         * passes.c (dump_properties): Handle PROP_gimple_lvec.
30601         (init_optimization_passes): Move pass_lower_vector.
30602         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
30603         PROP_gimple_lvec.
30604         (pass_lower_vector): Provide PROP_gimple_lvec.
30605         (pass_lower_vector_ssa): Likewise.
30606         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
30608 2013-03-21  Mark Wielaard  <mjw@redhat.com>
30610         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
30612 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
30614         * config/i386/i386.md (*movdi_internal): Disparage slightly
30615         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
30616         conversion alternatives.
30618 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
30620         PR middle-end/48087
30621         * diagnostic.def (DK_WERROR): New kind.
30622         * diagnostic.h (werrorcount): Define.
30623         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
30624         promoted to DK_ERROR, increment DK_WERROR counter instead of
30625         DK_ERROR counter.
30626         * toplev.c (toplev_main): Call print_ignored_options even if
30627         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
30628         even if just werrorcount is non-zero.
30630         PR debug/55608
30631         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
30632         on failure.
30633         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
30634         (string_cst_pool_decl): New function.
30635         (optimize_one_addr_into_implicit_ptr): New function.
30636         (resolve_addr_in_expr): Optimize DWARF location expression
30637         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
30638         which doesn't live in memory, but has DW_AT_location or
30639         DW_AT_const_value, or refers to a string literal, into
30640         DW_OP_GNU_implicit_pointer.
30641         (optimize_location_into_implicit_ptr): New function.
30642         (resolve_addr): If removing DW_AT_location of a variable because
30643         it was DW_OP_addr of address of the variable, but the variable doesn't
30644         live in memory, try to emit const value attribute for the initializer.
30646 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
30648         * tree.h (VECTOR_TYPE_P): New macro.
30649         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
30650         TYPE_MODE): Use it.
30651         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
30652         VEC_COND_EXPR cannot be lvalues.
30653         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
30655 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
30657         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
30658         Restrict the transformation to equal modes.
30660 2013-03-21  Richard Biener  <rguenther@suse.de>
30662         PR tree-optimization/39326
30663         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
30664         (MEM_ANALYZABLE): Adjust.
30665         (record_mem_ref_loc): Move bitmap ops ...
30666         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
30667         unanalyzable refs, do not record locations for it.
30668         (analyze_memory_references): Allocate ref zero as shared
30669         unanalyzable ref.
30670         (refs_independent_p): Do not test for unanalyzed mems here.
30671         (ref_indep_loop_p_1): Special-case disambiguation against
30672         the unanalyzed ref.
30673         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
30675 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
30677         * config/arm/arm-protos.h (tune_params): Add
30678         prefer_neon_for_64bits field.
30679         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
30680         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
30681         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
30682         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
30683         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
30684         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
30685         (arm_option_override): Handle -mneon-for-64bits new option.
30686         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
30687         (prefer_neon_for_64bits): Declare new variable.
30688         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
30689         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
30690         (arch_enabled): Handle new arch types. Remove support for onlya8
30691         and nota8.
30692         (one_cmpldi2): Use new arch names.
30693         (zero_extend<mode>di2, extend<mode>di2): Ditto.
30694         * config/arm/arm.opt (mneon-for-64bits): Add option.
30695         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
30696         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
30697         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
30698         of onlya8.
30699         * doc/invoke.texi (-mneon-for-64bits): Document.
30701 2013-03-21  Richard Biener  <rguenther@suse.de>
30703         PR tree-optimization/39326
30704         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
30705         (sort_bbs_in_loop_postorder_cmp): New function.
30706         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
30708 2013-03-21  Richard Biener  <rguenther@suse.de>
30710         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
30711         (vect_insert_into_interleaving_chain): Likewise.
30712         (vect_drs_dependent_in_basic_block): Inline ...
30713         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
30714         split out from ...
30715         (vect_analyze_data_ref_dependence): ... here.  Simplify.
30716         (vect_check_interleaving): Simplify.
30717         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
30718         (vect_slp_analyze_data_ref_dependences): ... this new function.
30719         (dr_group_sort_cmp): New function.
30720         (vect_analyze_data_ref_accesses): Compute data-reference groups
30721         here instead of in vect_analyze_data_ref_dependence.  Use
30722         a more efficient algorithm.
30723         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
30724         vect_slp_analyze_data_ref_dependences.  Call
30725         vect_analyze_data_ref_accesses earlier.
30726         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
30727         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
30728         (vect_slp_analyze_data_ref_dependences): New prototype.
30730 2013-03-21  Richard Biener  <rguenther@suse.de>
30732         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
30733         ref is stored in the loop.
30734         (find_refs_for_sm): Walk only over all stores.
30735         (store_motion_loop): Allocate from lim_bitmap_obstack.
30736         (store_motion): Likewise.
30738 2013-03-21  Richard Biener  <rguenther@suse.de>
30740         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
30741         Update virtual SSA form.
30743 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30745         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
30746         * configure: Regenerate.
30747         * config.in: Regenerate.
30748         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
30749         if !HAVE_LD_EH_FRAME_CIEV3.
30751 2013-03-21  Richard Biener  <rguenther@suse.de>
30753         * tree-cfg.c (verify_expr_no_block): New function.
30754         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
30755         nor DECL_VALUE_EXPR have locations with associated blocks.
30756         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
30757         (clear_unused_block_pointer): Remove code dealing with
30758         blocks in DECL_DEBUG_EXPR locations.
30760 2013-03-21  Richard Biener  <rguenther@suse.de>
30762         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
30763         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
30764         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
30765         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
30766         instead of DECL_DEBUG_EXPR_IS_FROM.
30767         * gimplify.c (gimplify_modify_expr): Likewise.
30768         * tree-cfg.c (verify_expr_location_1): Likewise.
30769         * tree-complex.c (create_one_component_var): Likewise.
30770         * tree-sra.c (create_access_replacement): Likewise.
30771         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
30772         (clear_unused_block_pointer): Likewise.
30773         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
30774         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
30775         * var-tracking.c (var_debug_decl): Likewise.
30776         (track_expr_p): Likewise.
30777         * tree-inline.c (add_local_variables): Likewise.  Set
30778         DECL_HAS_DEBUG_EXPR_P after copying it.
30779         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
30780         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
30782 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
30784         PR bootstrap/56656
30785         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
30786         * configure: Regenerate.
30787         * config.in: Regenerate.
30788         * config/i386/i386.md (*movdf_internal): Use
30789         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30790         movd instead of movq mnemonic for interunit moves.
30791         (*movdi_internal): Ditto.
30793 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30795         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
30796         (abd<mode>_3): New pattern.
30797         (aba<mode>_3): New pattern.
30798         (fabd<mode>_3): New pattern.
30800 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30802         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
30803         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
30804         occurrence of REGISTER_PREFIX as its empty string.
30806 2013-03-20  Jeff Law  <law@redhat.com>
30808         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
30809         addititional equivalences for equality comparisons between an SSA_NAME
30810         and a constant where the SSA_NAME was set from a widening conversion.
30812 2013-03-20  Walter Lee  <walt@tilera.com>
30814         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
30816 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30818         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
30819         depending on type attribute.
30820         (*movti_internal): Ditto.
30821         (*movtf_internal): Ditto.
30822         (*movxf_internal): Ditto.
30823         (*movdf_internal): Ditto.
30824         (*movsf_internal): Ditto.
30826 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30828         * config/i386/i386.md (*movti_internal): Set prefix attribute to
30829         maybe_vex for sselog1 and ssemov types.
30830         (*movdi_internal): Reorder operand constraints.
30831         (*movsi_internal): Ditto.  Set prefix attribute to
30832         maybe_vex for sselog1 and ssemov types.
30833         (*movtf_internal): Set prefix attribute to maybe_vex
30834         for sselog1 and ssemov types.
30835         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
30836         DImode ssemov types.  Reorder operand constraints.
30837         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
30838         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
30839         attribute for SImode ssemov types.  Reorder operand constraints.
30841 2013-03-20  Martin Jambor  <mjambor@suse.cz>
30843         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
30844         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
30846 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
30848         * config/rs6000/predicates.md (indexed_address, update_address_mem
30849         update_indexed_address_mem): New predicates.
30850         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
30851         attribute for load/store instructions.
30852         * config/rs6000/dfp.md (movsd_store): Likewise.
30853         (movsd_load): Likewise.
30854         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
30855         (unnamed HI->DI extend define_insn): Likewise.
30856         (unnamed SI->DI extend define_insn): Likewise.
30857         (unnamed QI->SI extend define_insn): Likewise.
30858         (unnamed QI->HI extend define_insn): Likewise.
30859         (unnamed HI->SI extend define_insn): Likewise.
30860         (unnamed HI->SI extend define_insn): Likewise.
30861         (extendsfdf2_fpr): Likewise.
30862         (movsi_internal1): Likewise.
30863         (movsi_internal1_single): Likewise.
30864         (movhi_internal): Likewise.
30865         (movqi_internal): Likewise.
30866         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
30867         attribute for load/store instructions.
30868         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
30869         instructions.
30870         (mov<mode>_softfloat): Likewise.
30871         (mov<mode>_hardfloat32): Likewise.
30872         (mov<mode>_hardfloat64): Likewise.
30873         (mov<mode>_softfloat64): Likewise.
30874         (movdi_internal32): Likewise.
30875         (movdi_internal64): Likewise.
30876         (probe_stack_<mode>): Likewise.
30878 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
30880         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
30881         floating point, and decimal floating point to reload iterator.
30883         * config/rs6000/constraints.md (wl constraint): New constraints to
30884         return FLOAT_REGS if certain options are used to reduce the number
30885         of separate patterns that exist in the file.
30886         (wx constraint): Likewise.
30887         (wz constraint): Likewise.
30889         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30890         -mdebug=reg, print wg, wl, wx, and wz constraints.
30891         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30892         Initialize the reload functions for 64-bit binary/decimal floating
30893         point types.
30894         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30895         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30896         create the buffer on the stack to overcome not having a 32-bit
30897         load and store.
30898         (rs6000_emit_move): Likewise.
30899         (rs6000_secondary_memory_needed_rtx): Likewise.
30900         (rs6000_alloc_sdmode_stack_slot): Likewise.
30901         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30902         via xxlxor, just like DFmode 0.0.
30904         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
30905         define as 1 if we are running on a power7 or newer.
30906         (enum r6000_reg_class_enum): Add new constraints.
30908         * config/rs6000/dfp.md (movsd): Delete, combine with binary
30909         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
30910         with other moves by using conditional constraits (wg).  Use LFIWZX
30911         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
30912         (movsd splitter): Likewise.
30913         (movsd_hardfloat): Likewise.
30914         (movsd_softfloat): Likewise.
30916         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
30917         binary and decimal floating point moves.
30918         (fmove_ok): New attributes to combine binary and decimal floating
30919         point moves, and to combine power6x (mfpgpr) moves along normal
30920         floating moves.
30921         (real_value_to_target): Likewise.
30922         (f32_lr): Likewise.
30923         (f32_lm): Likewise.
30924         (f32_li): Likewise.
30925         (f32_sr): Likewise.
30926         (f32_sm): Likewise.
30927         (f32_si): Likewise.
30928         (movsf): Combine binary and decimal floating point moves.  Combine
30929         power6x (mfpgpr) moves with other moves by using conditional
30930         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
30931         (mov<mode> for SFmode/SDmode); Likewise.
30932         (SFmode/SDmode splitters): Likewise.
30933         (movsf_hardfloat): Likewise.
30934         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
30935         (movsf_softfloat): Likewise.
30936         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
30938         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
30939         wx and wz constraints.
30941         * config/rs6000/constraints.md (wg constraint): New constraint to
30942         return FLOAT_REGS if -mmfpgpr (power6x) was used.
30944         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
30945         constraint.
30947         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30948         -mdebug=reg, print wg, wl, wx, and wz constraints.
30949         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30950         Initialize the reload functions for 64-bit binary/decimal floating
30951         point types.
30952         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30953         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30954         create the buffer on the stack to overcome not having a 32-bit
30955         load and store.
30956         (rs6000_emit_move): Likewise.
30957         (rs6000_secondary_memory_needed_rtx): Likewise.
30958         (rs6000_alloc_sdmode_stack_slot): Likewise.
30959         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30960         via xxlxor, just like DFmode 0.0.
30962         * config/rs6000/dfp.md (movdd): Delete, combine with binary
30963         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
30964         with other moves by using conditional constraits (wg).  Use LFIWZX
30965         and STFIWX for loading SDmode on power7.
30966         (movdd splitters): Likewise.
30967         (movdd_hardfloat32): Likewise.
30968         (movdd_softfloat32): Likewise.
30969         (movdd_hardfloat64_mfpgpr): Likewise.
30970         (movdd_hardfloat64): Likewise.
30971         (movdd_softfloat64): Likewise.
30973         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
30974         64-bit binary and decimal floating point moves.
30975         (FMOVE64X): Likewise.
30976         (movdf): Combine 64-bit binary and decimal floating point moves.
30977         Combine power6x (mfpgpr) moves with other moves by using
30978         conditional constraits (wg).
30979         (mov<mode> for DFmode/DDmode): Likewise.
30980         (DFmode/DDmode splitters): Likewise.
30981         (movdf_hardfloat32): Likewise.
30982         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
30983         (movdf_softfloat32): Likewise.
30984         (movdf_hardfloat64_mfpgpr): Likewise.
30985         (movdf_hardfloat64): Likewise.
30986         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
30987         (movdf_softfloat64): Likewise.
30988         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
30989         (reload_<mode>_load): Move to later in the file so they aren't in
30990         the middle of the floating point move insns.
30991         (reload_<mode>_store): Likewise.
30993         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
30994         constraint.
30996         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
30997         constraint if -mdebug=reg.
30998         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
30999         Enable using dd reload support if needed.
31001         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
31002         binary and decimal floating point moves in rs6000.md.
31003         (movtd_internal): Likewise.
31005         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
31006         decimal floating point moves.
31007         (movtf): Likewise.
31008         (movtf_internal): Likewise.
31009         (mov<mode>_internal, TDmode/TFmode): Likewise.
31010         (movtf_softfloat): Likewise.
31011         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
31013         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
31014         movdi_internal64, using wg constraint for move direct operations.
31015         (movdi_internal64): Likewise.
31017         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
31018         MODES_TIEABLE_P for selected modes.  Print the numerical value of
31019         the various virtual registers. Use GPR/FPR first/last values,
31020         instead of hard coding the register numbers.  Print which modes
31021         have reload functions registered.
31022         (rs6000_option_override_internal): If -mdebug=reg, trace the options
31023         settings before/after setting cpu, target and subtarget settings.
31024         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
31025         and for secondary reload failures in rs6000_secondary_reload_inner.
31026         (rs6000_secondary_reload_fail): Likewise.
31027         (rs6000_secondary_reload_inner): Likewise.
31029         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
31030         macros for first/last GPR and FPR registers.
31031         (LAST_GPR_REGNO): Likewise.
31032         (FIRST_FPR_REGNO): Likewise.
31033         (LAST_FPR_REGNO): Likewise.
31035         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
31036         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
31037         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
31038         (vcond<mode><mode>): Likewise.
31039         (vcondu<mode><mode>): Likewise.
31040         (vector_gtu<mode>): Likewise.
31041         (vector_gte<mode>): Likewise.
31042         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
31043         to prevent the compiler from converting DImode operations to TImode.
31044         (ior<mode>3): Likewise.
31045         (and<mode>3): Likewise.
31046         (one_cmpl<mode>2): Likewise.
31047         (nor<mode>3): Likewise.
31048         (andc<mode>3): Likewise.
31050         * config/rs6000/constraints.md (wt constraint): New constraint
31051         that returns VSX_REGS if TImode is allowed in VSX registers.
31053         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
31054         constant under VSX.
31056         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
31057         similar to TImode, but it is restricted to being in the GPRs.
31059         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
31060         TImode to occupy a single VSX register.
31062         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
31063         -mvsx-timode for power7/power8.
31064         (power7 cpu): Likewise.
31065         (power8 cpu): Likewise.
31067         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
31068         sure that TFmode/TDmode take up two registers if they are ever
31069         allowed in the upper VSX registers.
31070         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
31071         registers.
31072         (rs6000_init_hard_regno_mode_ok): Likewise.
31073         (rs6000_debug_reg_global): Add debugging for PTImode and wt
31074         constraint.  Print if LRA is turned on.
31075         (rs6000_option_override_internal): Give an error if -mvsx-timode
31076         and VSX is not enabled.
31077         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
31078         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
31079         to reg+offset addressing.  Use PTImode when checking offset
31080         addresses for validity.
31081         (reg_offset_addressing_ok_p): Likewise.
31082         (rs6000_legitimate_offset_address_p): Likewise.
31083         (rs6000_legitimize_address): Likewise.
31084         (rs6000_legitimize_reload_address): Likewise.
31085         (rs6000_legitimate_address_p): Likewise.
31086         (rs6000_eliminate_indexed_memrefs): Likewise.
31087         (rs6000_emit_move): Likewise.
31088         (rs6000_secondary_reload): Likewise.
31089         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
31090         reloads to fpr registers to continue to use reg+offset addressing,
31091         but 64-bit reloads to altivec registers need reg+reg addressing.
31092         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
31093         it.  Treat LO_SUM like a PLUS operation.
31094         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
31095         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
31096         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
31097         registers to share a register with a smaller sized type, since VSX
31098         puts scalars in the upper 64-bits.
31099         (print_operand): Add support for PTImode.
31100         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
31101         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
31102         registers, but don't have arithmetic support.
31103         (rs6000_memory_move_cost): Add test for VSX.
31104         (rs6000_opt_masks): Add -mvsx-timode.
31106         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
31107         for TImode.
31108         (VSs): Likewise.
31109         (VSr): Use wt constraint for TImode.
31110         (VSv): Drop TImode support.
31111         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
31112         (vsx_movti_64bit): Likewise.
31113         (vsx_movti_32bit): Likewise.
31114         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
31115         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
31116         one '?' on the appropriate output constraint.  Do not allow TImode
31117         logical operations on 32-bit systems.
31118         (vsx_ior<mode>3): Likewise.
31119         (vsx_xor<mode>3): Likewise.
31120         (vsx_one_cmpl<mode>2): Likewise.
31121         (vsx_nor<mode>3): Likewise.
31122         (vsx_andc<mode>3): Likewise.
31123         (vsx_concat_<mode>): Likewise.
31124         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
31126         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
31127         OPTION_MASK_VSX_TIMODE.
31128         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
31129         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
31131         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
31132         (TI2 iterator): New iterator for TImode, PTImode.
31133         (wd mode attribute): Add values for vector types.
31134         (movti_string): Replace TI move operations with operations for TImode
31135         and PTImode.  Add support for TImode being allowed in VSX registers.
31136         (mov<mode>_string, TImode/PTImode): Likewise.
31137         (movti_ppc64): Likewise.
31138         (mov<mode>_ppc64, TImode/PTImode): Likewise.
31139         (TI mode splitters): Likewise.
31141         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
31142         constraint.
31144 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
31146         PR tree-optimization/56355
31147         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
31148         Also handle integers with undefined overflow.
31150 2013-03-20  Catherine Moore  <clm@codesourcery.com>
31151             Maciej W. Rozycki  <macro@codesourcery.com>
31152             Tom de Vries  <tom@codesourcery.com>
31153             Nathan Sidwell  <nathan@codesourcery.com>
31154             Iain Sandoe  <iain@codesourcery.com>
31155             Nathan Froyd  <froydnj@codesourcery.com>
31156             Chao-ying Fu  <fu@mips.com>
31158         * doc/extend.texi: (micromips, nomicromips, nocompression):
31159         Document new function attributes.
31160         * doc/invoke.texi (minterlink-compressed, mmicromips,
31161         m14k, m14ke, m14kec): Document new options.
31162         (minterlink-mips16): Update documentation.
31163         * doc/md.texi (ZC, ZD): Document new constraints.
31164         * configure.ac (gcc_cv_as_micromips): Check if linker
31165         supports the .set micromips directive.
31166         * configure: Regenerate.
31167         * config.in: Regenerate.
31168         * config/mips/mips-tables.opt: Regenerate.
31169         * config/mips/micromips.md: New file.
31170         * constraints.md (ZC, ZD): New constraints.
31171         * config/mips/predicates.md (movep_src_register): New predicate.
31172         (movep_src_operand): New predicate.
31173         (non_volatile_mem_operand): New predicate.
31174         * config/mips/mips.md (multimem): New type.
31175         (length): Differentiate between 17-bit and 18-bit branch offsets.
31176         (MOVEP1, MOVEP2): New mode iterator.
31177         (mov_<load>l): Use ZC constraint.
31178         (mov_<load>r): Likewise.
31179         (mov_<store>l): Likewise.
31180         (mov_<store>r): Likewise.
31181         (*branch_equality<mode>_inverted): Add microMIPS support.
31182         (*branch_equality<mode>): Likewise.
31183         (*jump_absolute): Likewise.
31184         (indirect_jump_<mode>): Likewise.
31185         (tablejump_<mode>): Likewise.
31186         (<optab>_internal): Likewise.
31187         (sibcall_internal): Likewise.
31188         (sibcall_value_internal): Likewise.
31189         (prefetch): Use constraint ZD.
31190         * config/mips/mips.opt (minterlink-compressed): New option.
31191         (minterlink-mips16): Now an alias for minterlink-compressed.
31192         (mmicromips): New option.
31193         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31194         (compare_and_swap_12): Likewise.
31195         (sync_add<mode>): Likewise.
31196         (sync_<optab>_12): Likewise.
31197         (sync_old_<optab>_12): Likewise.
31198         (sync_new_<optab>_12): Likewise.
31199         (sync_nand_12): Likewise.
31200         (sync_old_nand_12): Likewise.
31201         (sync_new_nand_12): Likewise.
31202         (sync_sub<mode>): Likewise.
31203         (sync_old_add<mode>): Likewise.
31204         (sync_old_sub<mode>): Likewise.
31205         (sync_new_add<mode>): Likewise.
31206         (sync_new_sub<mode>): Likewise.
31207         (sync_<optab><mode>): Likewise.
31208         (sync_old_<optab><mode>): Likewise.
31209         (sync_new_<optab><mode>): Likewise.
31210         (sync_nand<mode>): Likewise.
31211         (sync_old_nand<mode>): Likewise.
31212         (sync_new_nand<mode>): Likewise.
31213         (sync_lock_test_and_set<mode>): Likewise.
31214         (test_and_set_12): Likewise.
31215         (atomic_compare_and_swap<mode>): Likewise.
31216         (atomic_exchange<mode>_llsc): Likewise.
31217         (atomic_fetch_add<mode>_llsc): Likewise.
31218         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31219         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31220         (umips_save_restore_pattern_p): Likewise.
31221         (umips_load_store_pair_p): Likewise.
31222         (umips_output_load_store_pair): Likewise.
31223         (umips_movep_target_p): Likewise.
31224         (umips_12bit_offset_address_p): Likewise.
31225         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31226         (mips_base_mips16): Rename this...
31227         (mips_base_compression_flags): ...to this. Update all uses.
31228         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31229         (mips_mips16_decl_p): Delete.
31230         (mips_nomips16_decl_p): Delete.
31231         (mips_get_compress_on_flags): New function.
31232         (mips_get_compress_off_flags): New function.
31233         (mips_get_compress_mode): New function.
31234         (mips_get_compress_on_name): New function.
31235         (mips_get_compress_off_name): New function.
31236         (mips_insert_attributes): Support multiple compression types.
31237         (mips_merge_decl_attributes): Likewise.
31238         (umips_12bit_offset_address_p): New function.
31239         (mips_start_function_definition): Emit .set micromips directive.
31240         (mips_call_may_need_jalx_p): New function.
31241         (mips_function_ok_for_sibcall): Add microMIPS support.
31242         (mips_print_operand_punctuation): Support short delay slots and
31243         compact jumps.
31244         (umips_swm_mask, umips_swm_encoding): New.
31245         (umips_build_save_restore): New function.
31246         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31247         (was_mips16_p): Remove.
31248         (old_compression_mode): New.
31249         (mips_set_compression_mode): New function.
31250         (mips_set_current_function): Add microMIPS support.
31251         (mips_option_override): Likewise.
31252         (umips_save_restore_pattern_p): New function.
31253         (umips_output_save_restore): New function.
31254         (umips_load_store_pair_p_1): New function.
31255         (umips_load_store_pair_p): New function.
31256         (umips_output_load_store_pair_1): New function.
31257         (umips_output_load_store_pair): New function.
31258         (umips_movep_target_p) New function.
31259         (mips_prepare_pch_save): Add microMIPS support.
31260         * config/mips/mips.h (TARGET_COMPRESSION): New.
31261         (TARGET_CPU_CPP_BUILTINS): Update macro
31262         to use new compression flags and to support microMIPS.
31263         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31264         (MIPS_ARCH_FLOAT_SPEC): Likewise.
31265         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31266         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31267         (ASM_SPEC): Support mmicromips and mno-micromips.
31268         (M16STORE_REG_P): New macro.
31269         (MIPS_CALL): Support TARGET_MICROMIPS.
31270         (MICROMIPS_J): New macro.
31271         (mips_base_mips16): Rename this...
31272         (mips_base_compression_flags): ...to this.
31273         (UMIPS_12BIT_OFFSET_P): New macro.
31274         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31275         (MULTILIB_DIRNAMES): Likewise.
31276 2013-03-20  Richard Biener  <rguenther@suse.de>
31278         PR tree-optimization/56661
31279         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
31280         the result does not have to be distinct.
31282 2013-03-20  Richard Biener  <rguenther@suse.de>
31284         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
31285         remap_gimple_op_r.
31287 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31288             Steven Bosscher  <steven@gcc.gnu.org>
31290         PR rtl-optimization/56605
31291         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
31293 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31295         PR bootstrap/56656
31296         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
31297         that require movd instead of movq.
31299 2013-03-20  Richard Biener  <rguenther@suse.de>
31301         * tree-ssa-structalias.c (struct variable_info): Add pointer
31302         to the first field of an aggregate with sub-vars.  Make
31303         this and the pointer to the next subfield its ID.
31304         (vi_next): New function.
31305         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
31306         storedanything_id, integer_id): Increment by one.
31307         (new_var_info, get_call_vi, lookup_call_clobber_vi,
31308         get_call_clobber_vi): Adjust.
31309         (solution_set_expand): Simplify and speedup.
31310         (solution_set_add): Inline into ...
31311         (set_union_with_increment): ... this.  Adjust accordingly.
31312         (do_sd_constraint): Likewise.
31313         (do_ds_constraint): Likewise.
31314         (do_complex_constraint): Simplify.
31315         (build_pred_graph): Adjust.
31316         (solve_graph): Likewise.  Simplify and speedup.
31317         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
31318         get_constraint_for_component_ref, get_constraint_for_1,
31319         first_vi_for_offset, first_or_preceding_vi_for_offset,
31320         create_function_info_for, create_variable_info_for_1,
31321         create_variable_info_for, intra_create_variable_infos): Adjust.
31322         (init_base_vars): Push NULL for ID zero.
31323         (compute_points_to_sets): Adjust.
31325 2013-03-20  Richard Biener  <rguenther@suse.de>
31327         * cfgloop.c (verify_loop_structure): Streamline and avoid
31328         ICEing on corrupt loop tree.
31329         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
31330         loop tree.
31332 2013-03-20  Richard Biener  <rguenther@suse.de>
31334         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
31335         check whether an SSA update is needed.
31337 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
31339         * config/mips/constraints.md (T): Rename to...
31340         (Yf): ...this.
31341         (U): Rename to...
31342         (Yd): ...this.
31343         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
31344         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
31346 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31348         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
31349         (*subsi3_carryin_uxtw): Likewise.
31351 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31353         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
31354         (*rorsi3_insn_uxtw): Likewise.
31356 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31358         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
31359         (*extrsi5_insn_uxtw): Likewise.
31361 2013-03-19  Richard Biener  <rguenther@suse.de>
31363         PR tree-optimization/56273
31364         * passes.c (init_optimization_passes): Move second VRP after DOM.
31366 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
31368         * config/i386/i386.md (*movti_internal): Merge from
31369         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
31370         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
31371         nox64 isa attributes.
31373 2013-03-18  Richard Biener  <rguenther@suse.de>
31375         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
31376         (unite): Likewise.
31377         (merge_node_constraints): Likewise.
31378         (build_succ_graph): Likewise.
31379         (valid_graph_edge): Inline into single caller.
31380         (unify_nodes): Likewise.  Use bitmap_set_bit return value
31381         and cache varinfo.
31382         (scc_visit): Fix formatting and variable use.
31383         (do_sd_constraint): Use gcc_checking_assert.
31384         (do_ds_constraint): Likewise.
31385         (do_complex_constraint): Likewise.
31386         (condense_visit): Likewise.  Cleanup.
31387         (dump_pred_graph): New function.
31388         (perform_var_substitution): Dump the pred-graph before
31389         variable substitution.
31390         (find_equivalent_node): Use gcc_checking_assert.
31391         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
31393 2013-03-18  Richard Biener  <rguenther@suse.de>
31395         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31396         Remove cond_expr_stmt_list argument and do not gimplify the
31397         built expression.
31398         (vect_loop_versioning): Adjust.
31399         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
31400         Cleanup to use less temporaries.
31401         (vect_create_data_ref_ptr): Cleanup.
31403 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
31405         PR tree-optimization/56635
31406         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
31407         require types_compatible_p types.
31409 2013-03-18  Nick Clifton  <nickc@redhat.com>
31411         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
31412         spurious backslash.
31414         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
31415         Add missing line to comment describing function.
31417 2013-03-18  Richard Biener  <rguenther@suse.de>
31419         PR tree-optimization/56210
31420         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31421         Handle string / character search functions.
31422         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
31424 2013-03-18  Richard Biener  <rguenther@suse.de>
31426         PR middle-end/56483
31427         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
31428         and implement properly.
31429         * gimple.h (gimple_cond_single_var_p): Remove.
31431 2013-03-18  Richard Biener  <rguenther@suse.de>
31433         * tree-data-ref.h (find_data_references_in_loop): Declare.
31434         * tree-data-ref.c (get_references_in_stmt): Use a stack
31435         vector pre-allocated in the callers.
31436         (find_data_references_in_stmt): Adjust.
31437         (graphite_find_data_references_in_stmt): Likewise.
31438         (create_rdg_vertices): Likewise.
31439         (find_data_references_in_loop): Export.
31440         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
31441         Compute dependences here...
31442         (vect_analyze_data_refs): ...not here.  When we encounter
31443         a non-vectorizable data reference in basic-block vectorization
31444         truncate the data reference vector.  Do not bother to
31445         fixup data-dependence information for gather loads.
31446         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
31447         of data references, as reported.
31449 2013-03-18  Richard Biener  <rguenther@suse.de>
31451         PR tree-optimization/3713
31452         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
31453         has_constants and expr.
31454         (stmt_has_constants): Properly valueize SSA names when deciding
31455         whether the stmt has constants.
31457 2013-03-18  Richard Biener  <rguenther@suse.de>
31459         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
31460         whole function when there is nothing to do.
31461         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
31462         * tree-vectorizer.c (vectorize_loops): Update virtual and
31463         loop-closed SSA once.
31464         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
31466 2013-03-18  Richard Biener  <rguenther@suse.de>
31468         PR middle-end/56113
31469         * domwalk.c (bb_postorder): New global static.
31470         (cmp_bb_postorder): New function.
31471         (walk_dominator_tree): Replace scheme imposing an order for
31472         visiting dominator sons by one sorting them at the time they
31473         are pushed on the stack.
31475 2013-03-18  Richard Biener  <rguenther@suse.de>
31477         PR tree-optimization/39326
31478         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
31479         (struct mem_ref): Replace mem member with ao_ref typed member.
31480         (MEM_ANALYZABLE): Adjust.
31481         (memref_eq): Likewise.
31482         (mem_ref_alloc): Likewise.
31483         (gather_mem_refs_stmt): Likewise.
31484         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
31485         (execute_sm_if_changed_flag_set): Adjust.
31486         (execute_sm): Likewise.
31487         (ref_always_accessed_p): Likewise.
31488         (refs_independent_p): Likewise.
31489         (can_sm_ref_p): Likewise.
31491 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
31493         PR c/56566
31494         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
31495         return 1 even for !unsignedp.
31497 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
31499         * config/i386/i386.md (isa): Add x64 and nox64.
31500         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
31501         (*pushtf): Enable *roF alternative for x64 isa only.
31502         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
31503         mode attribute of integer alternatives to DImode for TARGET_64BIT.
31504         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
31505         (*movtf_internal): Merge from *movtf_internal_rex64 and
31506         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
31507         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
31508         nox64 isa attributes.
31509         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
31510         nox64 isa attributes.
31511         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
31513 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
31515         * config/alpha/alpha.c (TARGET_LRA_P): New define.
31517 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
31519         PR target/56640
31520         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
31521         class names.  Remove trailing comma after "ALL_REGS".
31523 2013-03-16  Jan Hubicka  <jh@suse.cz>
31525         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
31526         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
31527         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
31528         of cgraph_get_create_node.
31529         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
31531 2013-03-16  Jason Merrill  <jason@redhat.com>
31533         PR debug/49090
31534         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
31535         with DW_AT_default_value.
31537 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
31539         * BASE-VER: Set to 4.9.0.
31541 2013-03-14  Andi Kleen  <ak@linux.intel.com>
31543         PR target/56619
31544         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
31545         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
31546         Document _x* TSX intrinsics.
31548 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
31549             David Holsgrove  <david.holsgrove@xilinx.com>
31551         * configure.ac: Add MicroBlaze TLS support detection.
31552         * configure: Regenerate.
31553         * config/microblaze/microblaze-protos.h
31554         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
31555         symbol_mentioned_p, label_mentioned_p): Add prototypes.
31556         * config/microblaze/microblaze.c (microblaze_address_type): Add
31557         ADDRESS_TLS and tls_reloc address types.
31558         (microblaze_address_info): Add tls_reloc.
31559         (TARGET_HAVE_TLS): Define.
31560         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
31561          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
31562          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
31563         load_tls_operand,  microblaze_call_tls_get_addr,
31564         microblaze_legitimize_tls_address): New functions.
31565         (microblaze_classify_unspec): Handle UNSPEC_TLS.
31566         (get_base_reg): Use microblaze_tls_symbol_p.
31567         (microblaze_classify_address): Handle TLS.
31568         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
31569         label_mentioned_p and microblaze_tls_referenced_p.
31570         (microblaze_legitimize_address): Handle TLS.
31571         (microblaze_address_insns): Handle ADDRESS_TLS.
31572         (pic_address_needs_scratch): Handle TLS.
31573         (print_operand_address): Handle TLS.
31574         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
31575         (microblaze_expand_move): Handle TLS.
31576         (microblaze_legitimate_constant_p): Check
31577         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
31578         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31579         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
31580         (PIC_OFFSET_TABLE_REGNUM): Set.
31581         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
31582         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
31583         (addsi3, movsi_internal2, movdf_internal): Update constraints
31584         * config/microblaze/predicates.md (arith_plus_operand): Define
31585         (move_operand): Redefine as move_src_operand,
31586         check microblaze_tls_referenced_p.
31588 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
31590         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
31591         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
31593 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
31595         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
31596         CC mode for AND.
31598 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
31600         PR tree-optimization/53265
31601         * common.opt (Waggressive-loop-optimizations): New option.
31602         * tree-ssa-loop-niter.c: Include tree-pass.h.
31603         (do_warn_aggressive_loop_optimizations): New function.
31604         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
31605         if number_of_latch_executions returned constant.
31606         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
31607         early.  If number_of_latch_executions returned constant, set
31608         nb_iterations_upper_bound back to it.
31609         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
31610         field.
31611         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
31612         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
31614         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
31615         (MULTILIB_OSDIRNAMES): Set.
31616         * genmultilib: If defaultosdirname doesn't start with :: , set
31617         defaultosdirname2 instead, clear it and emit two . multilib_raw
31618         entries instead of just one.
31620 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
31622         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
31623         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
31624         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
31625         (SUBTARGET_OVERRIDE_OPTIONS): New.
31627 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
31629         PR target/49880
31630         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
31631         (musermode): Convert to Var(TARGET_USERMODE).
31632         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
31633         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
31634         * config/sh/sh.c (sh_option_override): Use
31635         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
31636         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
31637         condition.
31638         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
31639         TARGET_SH4.
31640         (udivsi3_i4_single, divsi3_i4_single): Use
31641         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
31643 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
31645         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
31646         default setting.
31648 2013-03-13  Richard Biener  <rguenther@suse.de>
31650         PR tree-optimization/56608
31651         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
31652         calls when vectorizing basic-blocks.
31654 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
31656         PR plugins/45078
31657         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
31658         tm_file.
31660 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
31662         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
31664 2013-03-11  Jan Hubicka  <jh@suse.cz>
31666         PR lto/56557
31667         * lto-streamer-out.c (output_symbol_p): Skip references from
31668         constructors of external variables.
31670 2013-03-11  Jan Hubicka  <jh@suse.cz>
31672         PR middle-end/56571
31673         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
31674         from pseudos.
31675         * emit-rtl.c (verify_rtx_sharing): Likewise.
31676         (copy_insn_1): Likewise.
31677         * rtl.c (copy_rtx): Likewise.
31679 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
31681         PR target/56591
31682         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
31683         output_operand_lossage message.
31685 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
31687         PR target/56470
31688         * arm.c (shift_op): Validate RTL pattern on the fly.
31689         (arm_print_operand, case 'S'): Don't use shift_operator to validate
31690         the RTL.
31692 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31694         PR target/56347
31695         * config/pa/pa.md (call_value): Check for calls to powf and direct to
31696         new call patterns that clobber %fr12.
31697         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
31698         split and postreload patterns.
31699         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
31700         registers %fr12 and %fr12R as call used.
31702 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
31704         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
31705         (canon_address, record_store, replace_read, check_mem_read_rtx,
31706         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
31707         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
31708         rest_of_handle_dse): Likewise.
31710 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
31712         PR middle-end/56524
31713         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
31714         Add base_optabs.
31715         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
31716         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
31717         (save_optabs_if_changed): Replace with...
31718         (init_tree_optimization_optabs): ...this.
31719         * optabs.c (save_optabs_if_changed): Rename to...
31720         (init_tree_optimization_optabs): ...this.  Take the optimization node
31721         as argument.  Do nothing if the base optabs are already correct.
31722         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
31723         to recompute optabs.
31724         * function.h (function): Remove optabs field.
31725         * function.c (invoke_set_current_function_hook): Call
31726         init_tree_optimization_optabs.  Use the result to initialize
31727         this_fn_optabs.
31729 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
31731         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
31732         if GTMA_HAS_NO_INSTRUMENTATION.
31733         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
31734         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
31735         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
31736         * gimple-pretty-print.c (dump_gimple_transaction): Handle
31737         GTMA_HAS_NO_INSTRUMENTATION.
31739 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
31741         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
31742         libasan_preinit.o.
31744 2013-03-08  Marek Polacek  <polacek@redhat.com>
31745             Jakub Jelinek  <jakub@redhat.com>
31747         PR tree-optimization/56478
31748         * predict.c (is_comparison_with_loop_invariant_p): Change the
31749         type of loop_step to tree.
31750         (predict_loops): Adjust.
31751         (predict_iv_comparison): Perform the computations on double_ints.
31753 2013-03-08  Richard Biener  <rguenther@suse.de>
31755         PR tree-optimization/56570
31756         * tree-cfg.c (verify_expr_location_1): Verify locations for
31757         DECL_DEBUG_EXPR.
31758         * tree-sra.c (create_access_replacement): Strip locations
31759         from DECL_DEBUG_EXPRs.
31761 2013-03-08  Richard Biener  <rguenther@suse.de>
31763         * tree-inline.c (expand_call_inline): Do not associate
31764         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
31765         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
31767 2013-03-08  Richard Biener  <rguenther@suse.de>
31769         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
31770         or block changes with -Og.  Fix for location / block encoding
31771         changes and PHI arguments with locations.
31773 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
31775         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
31776         for all counters.
31777         (struct output_info): Likewise.
31778         (register_overhead): Remove bad gcc_assert.
31779         (bitmap_find_bit): If there is only a single bitmap element, do not
31780         count a miss as a search.
31781         (print_statistics): Update for counter type changes.
31782         (dump_bitmap_statistics): Likewise.  Print headers such that they
31783         are properly lined up with the printed counters.
31785 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
31787         PR tree-optimization/56559
31788         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
31789         check that it has only a single use.
31791 2013-03-07  Richard Biener  <rguenther@suse.de>
31793         * doc/invoke.texi (fwhole-program): Discourage use in combination
31794         with -flto.
31796 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
31798         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
31800         PR tree-optimization/56539
31801         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
31802         instead of GSI_CONTINUE_LINKING as last argument to
31803         force_gimple_operand_gsi.  Adjust function comment.
31805         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
31806         aarch64-cores.def.
31808         PR middle-end/56548
31809         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
31810         promoted mode, convert the result back to the original mode.
31812 2013-03-06  Richard Biener  <rguenther@suse.de>
31814         PR middle-end/56294
31815         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
31816         (insert_updated_phi_nodes_compare_uids): New function.
31817         (update_ssa): Sort symbols_to_rename after UID before
31818         traversing it to insert PHI nodes.
31820 2013-03-06  Richard Biener  <rguenther@suse.de>
31822         PR middle-end/50494
31823         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
31824         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
31826         Revert
31827         2013-02-13  Richard Biener  <rguenther@suse.de>
31829         PR lto/50494
31830         * varasm.c (output_constant_def_1): Get the decl representing
31831         the constant as argument.
31832         (output_constant_def): Wrap output_constant_def_1.
31833         (make_decl_rtl): Use output_constant_def_1 with the decl
31834         representing the constant.
31835         (build_constant_desc): Optionally re-use a decl already
31836         representing the constant.
31837         (tree_output_constant_def): Adjust.
31839 2013-03-06  Joey Ye  <joey.ye@arm.com>
31841         PR lto/50293
31842         * gcc.c (convert_white_space): New function.
31843         (main): Handles white space in function name.
31845 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
31847         PR target/56529
31848         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
31849         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
31850         to SH_DIV_CALL_TABLE for TARGET_SH2.
31851         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
31852         list.
31853         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
31854         call-table options.
31856 2013-03-05  Sterling Augustine  <saugustine@google.com>
31857             Cary Coutant  <ccoutant@google.com>
31859         PR debug/55364
31860         * dwarf2out.c (resolve_addr): Don't call
31861         remove_loc_list_addr_table_entries a second time for the same
31862         expression.
31864 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31866         PR debug/56510
31867         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
31868         (avoid_complex_debug_insns): New function.
31869         (expand_debug_locations): Call it.
31871         PR rtl-optimization/56484
31872         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
31873         lifetimes of hard registers on small register class machines.
31875 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
31877         * config/microblaze/microblaze-protos.h: Rename
31878         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
31879         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
31880         fast_interrupt.
31881         (microblaze_fast_interrupt_function_p): New function.
31882         (microblaze_is_interrupt_handler): Rename to
31883         microblaze_is_interrupt_variant and add fast_interrupt check.
31884         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
31885         (save_restore_insns): Likewise.
31886         (compute_frame_size): Likewise.
31887         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
31888         (microblaze_globalize_label): Likewise.
31889         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
31890         * config/microblaze/microblaze.md: Use wrapper
31891         microblaze_is_interrupt_variant.
31893 2013-03-05  Kai Tietz  <ktietz@redhat.com>
31895         * sdbout.c (sdbout_one_type): Switch to current function's section
31896         supporting cold/hot.
31898 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
31900         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
31901         -mxl-reorder.
31903 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31905         PR middle-end/56461
31906         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
31907         if VALGRIND_GET_VBITS is defined, temporarily make object
31908         memory all defined, and restore previous valgrind addressability
31909         and definability afterwards.  Free this_object at the end.
31911         PR middle-end/56461
31912         * lra.c (lra): Call lra_clear_live_ranges if live_p,
31913         right before calling lra_create_live_ranges, also call it
31914         when clearing live_p.  Only call lra_clear_live_ranges
31915         at the end if live_p.
31917         PR middle-end/56461
31918         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
31920 2013-03-05  Richard Biener  <rguenther@suse.de>
31922         PR tree-optimization/56521
31923         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
31924         value-id.
31926 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
31928         PR c++/55135
31929         * except.h (remove_unreachable_eh_regions): New prototype.
31930         * except.c (remove_eh_handler_splicer): New function, split out
31931         of remove_eh_handler.
31932         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
31933         warning about running it on many EH regions one at a time.
31934         (remove_unreachable_eh_regions_worker): New function, walk the
31935         EH tree in depth-first order and remove non-marked regions.
31936         (remove_unreachable_eh_regions): New function.
31937         * tree-eh.c (mark_reachable_handlers): New function, split out
31938         from remove_unreachable_handlers.
31939         (remove_unreachable_handlers): Use mark_reachable_handlers and
31940         remove_unreachable_eh_regions.
31941         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
31942         and remove_unreachable_eh_regions.
31944 2013-03-05  Richard Biener  <rguenther@suse.de>
31946         PR middle-end/56525
31947         * loop-init.c (fix_loop_structure): Remove loops in two stages,
31948         not freeing them until the end.
31950 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31952         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
31954 2013-03-05  Richard Biener  <rguenther@suse.de>
31956         PR tree-optimization/56270
31957         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
31958         of loads after scheduling an SLP instance.
31960 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31962         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
31963         tic6x.exp.
31964         (check_gcc_parallelize): Run guality.exp as a separate job from
31965         vect.exp with unsorted.exp and $(dg_target_exps) separately from
31966         struct-layout-1.exp with stackalign.exp.
31968         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
31970         PR middle-end/56461
31971         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
31972         load_index sbitmap even if some bit in it isn't set.
31974         PR middle-end/56461
31975         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
31976         (discover_iteration_bound_by_body_walk): Change queues to
31977         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
31978         spelling in comment.  Call safe_push on queues[bound_index] directly.
31979         Release queues[queue_index] in every iteration unconditionally.
31980         Release bounds vector.
31982         PR middle-end/56461
31983         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
31984         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
31985         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
31986         inner_phis vector.
31988 2013-03-05  Richard Biener  <rguenther@suse.de>
31990         PR lto/56515
31991         * tree-inline.c (remap_blocks_to_null): New function.
31992         (expand_call_inline): When expanding a call stmt without
31993         an associated block inline remap all callee blocks to NULL.
31995 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31997         PR rtl-optimization/56494
31998         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
31999         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
32000         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
32002         PR middle-end/56461
32003         * sel-sched-ir.c (free_sched_pools): Release
32004         succs_info_pool.stack[succs_info_pool.max_top] vectors too
32005         if succs_info_pool.max_top isn't -1.
32007         PR bootstrap/56509
32008         * opts.c (opts_obstack, opts_concat): Moved to...
32009         * opts-common.c (opts_obstack, opts_concat): ... here.
32011 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
32013         PR middle-end/56461
32014         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
32016 2013-03-04  Martin Jambor  <mjambor@suse.cz>
32018         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
32019         all appropriate places.
32021 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32023         PR tree-optimization/56424
32024         * ipa-split.c (split_function): Do not set the RSO flag if result is
32025         not by reference and its type is a register type.
32027 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
32029         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
32030         (microblaze_legitimate_pic_operand): Likewise
32031         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
32032         new function microblaze_legitimate_pic_operand
32033         * config/microblaze/microblaze-protos.h
32034         (microblaze_legitimate_pic_operand): Declare.
32036 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32038         * config/microblaze/predicates.md (call_insn_simple_operand):
32039         New predicate for supported rtx code types.
32040         * config/microblaze/microblaze.md (call_internal1): Use
32041         call_insn_simple_operand predicate.
32043 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
32045         PR middle-end/56461
32046         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
32047         partitions.ordered_remove.
32049         PR middle-end/56461
32050         * tree-vect-stmts.c (vectorizable_conversion): Don't call
32051         vec_oprnds0.create (1) for modifier == NONE.
32053         PR middle-end/56461
32054         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
32055         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
32056         vec_oprnds1 right before pushing anything to it for
32057         scalar_shift_arg.
32059         PR middle-end/56461
32060         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
32061         set nbbs to 0 instead of having separate code path.
32062         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
32063         instead of false as last argument if returning NULL.
32065 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
32067         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
32068         the attribute is now called "target" instead of "option".
32069         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
32070         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
32071         attribute/pragma name for TARGET_OPTION_VALID_P and
32072         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
32073         * doc/tm.texi: Regenerated.
32075 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
32077         * config/microblaze/microblaze.c:
32078         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
32079         * config/microblaze/microblaze.h: Add -mxl-reorder to
32080         DRIVER_SELF_SPECS.
32081         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
32082         instructions emitted if TARGET_REORDER.
32083         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
32084         or 0 for -m/-mno case, but initialises as 2 to detect default use case
32085         separately.
32087 2013-03-01  Xinliang David Li  <davidxl@google.com>
32089         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
32090         walk length.
32092 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
32094         PR middle-end/56461
32095         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
32096         vector even when returning true.  Fix up function comment formatting.
32098         PR middle-end/56461
32099         * ira-build.c (ira_loop_nodes_count): New variable.
32100         (create_loop_tree_nodes): Initialize it.
32101         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
32103         PR middle-end/56461
32104         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
32105         method on dr_chain and result_chain.
32106         * tree-vect-stmts.c (vectorizable_store): Only call
32107         result_chain.create if j == 0.
32109         PR middle-end/56461
32110         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
32111         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
32112         before overwriting it.
32114 2013-03-01  Tobias Burnus  <burnus@net-b.de>
32116         * doc/extended.texi (C Extensions): Change order in @menu
32117         to match @node.
32118         (Other MIPS Built-in Functions): Move last MIPS entry before
32119         "picoChip Built-in Functions".
32120         (SH Built-in Functions): Move after RX Built-in Functions.
32121         * doc/gcc.texi (Introduction): Change order in @menu
32122         to match @node.
32123         * doc/md.texi (Constraints): Ditto.
32124         * gty.texi (Type Information): Ditto.
32125         (User-provided marking routines for template types): Make
32126         subsection.
32127         * doc/invoke.texi (AArch64 Options): Move before
32128         "Adapteva Epiphany Options".
32130 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
32131             Jakub Jelinek  <jakub@redhat.com>
32133         PR sanitizer/56454
32134         * asan.c (gate_asan): Lookup no_sanitize_address instead of
32135         no_address_safety_analysis attribute.
32136         * doc/extend.texi (no_address_safety_attribute): Rename to
32137         no_sanitize_address attribute, mention no_address_safety_analysis
32138         attribute as deprecated alias.
32140 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
32142         PR middle-end/56461
32143         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
32144         type to vec<vec<tree> > *.
32145         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
32146         to be vec<tree> instead of vec<tree> *, set vec_defs
32147         to vNULL and call vec_defs.create (number_of_vects), adjust other
32148         uses of vec_defs.
32149         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
32150         vectorizable_condition): Adjust vect_get_slp_defs callers.
32152 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32154         * config/aarch64/aarch64.c
32155         (aarch64_float_const_representable): Remove unused variable.
32157 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32159         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
32161 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32163         * config/aarch64/aarch64-builtins.c
32164         (aarch64_init_simd_builtins): Make static.
32166 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32168         * config/aarch64/aarch64.c
32169         (aarch64_simd_make_constant): Make static.
32171 2013-02-28  Martin Jambor  <mjambor@suse.cz>
32173         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
32174         with no initialization to the RHS of debug statements.
32176 2013-02-28  Martin Jambor  <mjambor@suse.cz>
32178         PR tree-optimization/56294
32179         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
32180         Adjust dumping.
32181         (get_access_replacement): Do not call create_access_replacement.
32182         Assert a replacement exists.
32183         (get_repl_default_def_ssa_name): Create the replacement declaration
32184         itself.
32186 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32188         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
32189         final_end_function.
32191 2013-02-28  Marek Polacek  <polacek@redhat.com>
32193         PR rtl-optimization/56466
32194         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
32195         if we're changing a loop.
32196         (peel_loops_completely): Likewise.
32198 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
32200         PR c++/55813
32201         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
32203 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32205         PR target/56445
32206         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
32207         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
32208         INTX_FTYPE_FX, FX_FTYPE_INTX.
32209         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
32211 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32213         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
32214         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
32215         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
32216         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
32217         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
32218         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
32219         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
32220         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
32221         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
32222         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
32223         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
32224         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
32225         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
32226         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
32227         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
32228         (avrxmega6): Increase max flash segments from 5 to 6.
32229         * config/avr/t-multilib: Regenerate.
32230         * config/avr/avr-tables.opt: Regenerate.
32231         * doc/avr-mmcu.texi: Regenerate.
32233 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32235         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
32236         (avr_device_to_arch): Rename to avr_device_to_ld.
32237         (avr_device_to_as): New prototype.
32238         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
32239         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
32240         * config/avr/driver-avr.c (avr_device_to_as): New.
32241         (avr_device_to_arch): Rename to avr_device_to_ld.
32243 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32245         PR middle-end/56461
32246         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
32247         method on dr_chain and result_chain.
32249         PR middle-end/56461
32250         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
32251         pointer_set_destroy on not_executed_last_iteration.
32253         PR middle-end/56461
32254         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
32256         PR middle-end/56461
32257         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
32258         FOR_EACH_DEFINED_FUNCTION when freeing state.
32260         PR middle-end/56461
32261         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
32262         pool_free.
32263         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
32264         overwriting it.
32266         PR middle-end/56461
32267         * ipa-cp.c (decide_whether_version_node): Call vec_free on
32268         known_aggs[i].items and release known_aggs vector.
32270         PR middle-end/56461
32271         * ipa-reference.c (propagate): Free node_info even for alias nodes.
32273 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32275         * config/microblaze/microblaze.c (microblaze_emit_compare):
32276         Use xor for EQ/NE comparisions.
32277         * config/microblaze/microblaze.md (cstoresf4): Add constraints
32278         (cbranchsf4): Adjust operator to comparison_operator.
32280 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32282         PR middle-end/56461
32283         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
32284         vector.
32285         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
32286         vec_safe_push, always update *slot.
32287         (redirect_edge_var_map_clear): Use vec_free.
32288         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
32289         (free_var_map_entry): Use vec_free.
32290         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
32291         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
32293 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
32295         PR middle-end/45472
32296         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
32297         when the may_trap_p bit of the exprs being merged differs.
32298         Reorder tests for speculativeness in the logical and operator.
32300 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32302         * incpath.c (add_standard_paths): Use reconcat instead of concat
32303         where appropriate and avoid leaking memory.
32305         * opts.h: Include obstack.h.
32306         (opts_concat): New prototype.
32307         (opts_obstack): New declaration.
32308         * opts.c (opts_concat): New function.
32309         (opts_obstack): New variable.
32310         (init_options_struct): Call gcc_init_obstack on opts_obstack.
32311         (finish_options): Use opts_concat instead of concat
32312         and XOBNEWVEC instead of XNEWVEC.
32313         * opts-common.c (generate_canonical_option, decode_cmdline_option,
32314         generate_option): Likewise.
32315         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
32316         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
32318         PR target/56455
32319         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
32320         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
32322 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
32324         PR middle-end/56461
32325         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
32327 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
32329         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
32330         (arm_block_move_unaligned_straight): Likewise.
32331         (arm_adjust_block_mem): Likewise.
32333 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
32335         PR target/48901
32336         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
32337         temp, cond and label.
32338         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
32340         PR target/52500
32341         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
32342         * config/c6x/c6x.h (dbx_register_map): Update declaration.
32344         PR target/52501
32345         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
32346         of prologue/epilogue functions.
32348         PR target/52550
32349         * config/tilegx/tilegx.c (tilegx_expand_prologue):
32350         Remove unused variable cfa_offset.
32351         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
32353         PR target/54639
32354         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
32355         type promotion to unsigned.
32357         PR target/54640
32358         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
32359         for HOST_WIDE_INT of 32 bit / same size as int.
32360         (arm_block_move_unaligned_straight): Likewise.
32361         (arm_adjust_block_mem): Likewise.
32363         PR target/54662
32364         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
32365         ALL_CFLAGS.
32367 2013-02-26  Marek Polacek  <polacek@redhat.com>
32369         PR tree-optimization/56426
32370         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
32372 2013-02-26  Richard Biener  <rguenther@suse.de>
32374         PR target/56444
32375         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
32376         unused variable loops.
32378 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
32380         PR tree-optimization/56448
32381         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
32382         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
32383         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
32384         later operands of the references, or even first operand for
32385         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
32387         PR tree-optimization/56443
32388         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
32389         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
32390         to type_for_mode langhook.
32392 2013-02-25  Matt Turner  <mattst88@gmail.com>
32394         * doc/invoke.texi: Document r4700.
32396 2013-02-25  Richard Biener  <rguenther@suse.de>
32398         PR tree-optimization/56175
32399         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
32400         split out from ...
32401         (simplify_bitwise_binary): ... here.  Also guard the conversion
32402         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
32404 2013-02-25  Catherine Moore  <clm@codesourcery.com>
32406         Revert:
32407         2013-02-24  Catherine Moore  <clm@codesourcery.com>
32408             Maciej W. Rozycki  <macro@codesourcery.com>
32409             Tom de Vries  <tom@codesourcery.com>
32410             Nathan Sidwell  <nathan@codesourcery.com>
32411             Iain Sandoe  <iain@codesourcery.com>
32412             Nathan Froyd  <froydnj@codesourcery.com>
32413             Chao-ying Fu  <fu@mips.com>
32415         * doc/extend.texi: (micromips, nomicromips, nocompression):
32416         Document new function attributes.
32417         * doc/invoke.texi (minterlink-compressed, mmicromips,
32418         m14k, m14ke, m14kec): Document new options.
32419         (minterlink-mips16): Update documentation.
32420         * doc/md.texi (ZC, ZD): Document new constraints.
32421         * configure.ac (gcc_cv_as_micromips): Check if linker
32422         supports the .set micromips directive.
32423         * configure: Regenerate.
32424         * config.in: Regenerate.
32425         * config/mips/mips-tables.opt: Regenerate.
32426         * config/mips/micromips.md: New file.
32427         * constraints.md (ZC, AD): New constraints.
32428         * config/mips/predicates.md (movep_src_register): New predicate.
32429         (movep_src_operand): New predicate.
32430         (non_volatile_mem_operand): New predicate.
32431         * config/mips/mips.md (multimem): New type.
32432         (length): Differentiate between 17-bit and 18-bit branch offsets.
32433         (MOVEP1, MOVEP2): New mode iterator.
32434         (mov_<load>l): Use ZC constraint.
32435         (mov_<load>r): Likewise.
32436         (mov_<store>l): Likewise.
32437         (mov_<store>r): Likewise.
32438         (*branch_equality<mode>_inverted): Add microMIPS support.
32439         (*branch_equality<mode>): Likewise.
32440         (*jump_absolute): Likewise.
32441         (indirect_jump_<mode>): Likewise.
32442         (tablejump_<mode>): Likewise.
32443         (<optab>_internal): Likewise.
32444         (sibcall_internal): Likewise.
32445         (sibcall_value_internal): Likewise.
32446         (prefetch): Use constraint ZD.
32447         * config/mips/mips.opt (minterlink-compressed): New option.
32448         (minterlink-mips16): Now an alias for minterlink-compressed.
32449         (mmicromips): New option.
32450         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32451         (compare_and_swap_12): Likewise.
32452         (sync_add<mode>): Likewise.
32453         (sync_<optab>_12): Likewise.
32454         (sync_old_<optab>_12): Likewise.
32455         (sync_new_<optab>_12): Likewise.
32456         (sync_nand_12): Likewise.
32457         (sync_old_nand_12): Likewise.
32458         (sync_new_nand_12): Likewise.
32459         (sync_sub<mode>): Likewise.
32460         (sync_old_add<mode>): Likewise.
32461         (sync_old_sub<mode>): Likewise.
32462         (sync_new_add<mode>): Likewise.
32463         (sync_new_sub<mode>): Likewise.
32464         (sync_<optab><mode>): Likewise.
32465         (sync_old_<optab><mode>): Likewise.
32466         (sync_new_<optab><mode>): Likewise.
32467         (sync_nand<mode>): Likewise.
32468         (sync_old_nand<mode>): Likewise.
32469         (sync_new_nand<mode>): Likewise.
32470         (sync_lock_test_and_set<mode>): Likewise.
32471         (test_and_set_12): Likewise.
32472         (atomic_compare_and_swap<mode>): Likewise.
32473         (atomic_exchange<mode>_llsc): Likewise.
32474         (atomic_fetch_add<mode>_llsc): Likewise.
32475         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32476         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32477         (umips_save_restore_pattern_p): Likewise.
32478         (umips_load_store_pair_p): Likewise.
32479         (umips_output_load_store_pair): Likewise.
32480         (umips_movep_target_p): Likewise.
32481         (umips_12bit_offset_address_p): Likewise.
32482         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32483         (mips_base_mips16): Rename this...
32484         (mips_base_compression_flags): ...to this. Update all uses.
32485         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32486         (mips_mips16_decl_p): Delete.
32487         (mips_nomips16_decl_p): Delete.
32488         (mips_get_compress_on_flags): New function.
32489         (mips_get_compress_off_flags): New function.
32490         (mips_get_compress_mode): New function.
32491         (mips_get_compress_on_name): New function.
32492         (mips_get_compress_off_name): New function.
32493         (mips_insert_attributes): Support multiple compression types.
32494         (mips_merge_decl_attributes): Likewise.
32495         (umips_12bit_offset_address_p): New function.
32496         (mips_start_function_definition): Emit .set micromips directive.
32497         (mips_call_may_need_jalx_p): New function.
32498         (mips_function_ok_for_sibcall): Add microMIPS support.
32499         (mips_print_operand_punctuation): Support short delay slots and
32500         compact jumps.
32501         (umips_swm_mask, umips_swm_encoding): New.
32502         (umips_build_save_restore): New function.
32503         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32504         (was_mips16_p): Remove.
32505         (old_compression_mode): New.
32506         (mips_set_compression_mode): New function.
32507         (mips_set_current_function): Add microMIPS support.
32508         (mips_option_override): Likewise.
32509         (umips_save_restore_pattern_p): New function.
32510         (umips_output_save_restore): New function.
32511         (umips_load_store_pair_p_1): New function.
32512         (umips_load_store_pair_p): New function.
32513         (umips_output_load_store_pair_1): New function.
32514         (umips_output_load_store_pair): New function.
32515         (umips_movep_target_p) New function.
32516         (mips_prepare_pch_save): Add microMIPS support.
32517         * config/mips/mips.h (TARGET_COMPRESSION): New.
32518         (TARGET_CPU_CPP_BUILTINS): Update macro
32519         to use new compression flags and to support microMIPS.
32520         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32521         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32522         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32523         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32524         (ASM_SPEC): Support mmicromips and mno-micromips.
32525         (M16STORE_REG_P): New macro.
32526         (MIPS_CALL): Support TARGET_MICROMIPS.
32527         (MICROMIPS_J): New macro.
32528         (mips_base_mips16): Rename this...
32529         (mips_base_compression_flags): ...to this.
32530         (UMIPS_12BIT_OFFSET_P): New macro.
32531         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32532         (MULTILIB_DIRNAMES): Likewise.
32534 2013-02-25  Tom de Vries  <tom@codesourcery.com>
32536         PR rtl-optimization/56131
32537         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
32538         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
32539         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
32541 2013-02-25  Tobias Burnus  <burnus@net-b.de>
32543         * doc/invoke.texi (-fsanitize=): Move from optimization
32544         to debugging options.
32546 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
32548         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
32550 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
32551             Alexander Monakov  <amonakov@ispras.ru>
32553         PR middle-end/56077
32554         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
32555         flush pending lists also on non-jumps.  Adjust comment.
32557 2013-02-24  Catherine Moore  <clm@codesourcery.com>
32558             Maciej W. Rozycki  <macro@codesourcery.com>
32559             Tom de Vries  <tom@codesourcery.com>
32560             Nathan Sidwell  <nathan@codesourcery.com>
32561             Iain Sandoe  <iain@codesourcery.com>
32562             Nathan Froyd  <froydnj@codesourcery.com>
32563             Chao-ying Fu  <fu@mips.com>
32565         * doc/extend.texi: (micromips, nomicromips, nocompression):
32566         Document new function attributes.
32567         * doc/invoke.texi (minterlink-compressed, mmicromips,
32568         m14k, m14ke, m14kec): Document new options.
32569         (minterlink-mips16): Update documentation.
32570         * doc/md.texi (ZC, ZD): Document new constraints.
32571         * configure.ac (gcc_cv_as_micromips): Check if linker
32572         supports the .set micromips directive.
32573         * configure: Regenerate.
32574         * config.in: Regenerate.
32575         * config/mips/mips-tables.opt: Regenerate.
32576         * config/mips/micromips.md: New file.
32577         * constraints.md (ZC, AD): New constraints.
32578         * config/mips/predicates.md (movep_src_register): New predicate.
32579         (movep_src_operand): New predicate.
32580         (non_volatile_mem_operand): New predicate.
32581         * config/mips/mips.md (multimem): New type.
32582         (length): Differentiate between 17-bit and 18-bit branch offsets.
32583         (MOVEP1, MOVEP2): New mode iterator.
32584         (mov_<load>l): Use ZC constraint.
32585         (mov_<load>r): Likewise.
32586         (mov_<store>l): Likewise.
32587         (mov_<store>r): Likewise.
32588         (*branch_equality<mode>_inverted): Add microMIPS support.
32589         (*branch_equality<mode>): Likewise.
32590         (*jump_absolute): Likewise.
32591         (indirect_jump_<mode>): Likewise.
32592         (tablejump_<mode>): Likewise.
32593         (<optab>_internal): Likewise.
32594         (sibcall_internal): Likewise.
32595         (sibcall_value_internal): Likewise.
32596         (prefetch): Use constraint ZD.
32597         * config/mips/mips.opt (minterlink-compressed): New option.
32598         (minterlink-mips16): Now an alias for minterlink-compressed.
32599         (mmicromips): New option.
32600         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32601         (compare_and_swap_12): Likewise.
32602         (sync_add<mode>): Likewise.
32603         (sync_<optab>_12): Likewise.
32604         (sync_old_<optab>_12): Likewise.
32605         (sync_new_<optab>_12): Likewise.
32606         (sync_nand_12): Likewise.
32607         (sync_old_nand_12): Likewise.
32608         (sync_new_nand_12): Likewise.
32609         (sync_sub<mode>): Likewise.
32610         (sync_old_add<mode>): Likewise.
32611         (sync_old_sub<mode>): Likewise.
32612         (sync_new_add<mode>): Likewise.
32613         (sync_new_sub<mode>): Likewise.
32614         (sync_<optab><mode>): Likewise.
32615         (sync_old_<optab><mode>): Likewise.
32616         (sync_new_<optab><mode>): Likewise.
32617         (sync_nand<mode>): Likewise.
32618         (sync_old_nand<mode>): Likewise.
32619         (sync_new_nand<mode>): Likewise.
32620         (sync_lock_test_and_set<mode>): Likewise.
32621         (test_and_set_12): Likewise.
32622         (atomic_compare_and_swap<mode>): Likewise.
32623         (atomic_exchange<mode>_llsc): Likewise.
32624         (atomic_fetch_add<mode>_llsc): Likewise.
32625         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32626         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32627         (umips_save_restore_pattern_p): Likewise.
32628         (umips_load_store_pair_p): Likewise.
32629         (umips_output_load_store_pair): Likewise.
32630         (umips_movep_target_p): Likewise.
32631         (umips_12bit_offset_address_p): Likewise.
32632         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32633         (mips_base_mips16): Rename this...
32634         (mips_base_compression_flags): ...to this. Update all uses.
32635         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32636         (mips_mips16_decl_p): Delete.
32637         (mips_nomips16_decl_p): Delete.
32638         (mips_get_compress_on_flags): New function.
32639         (mips_get_compress_off_flags): New function.
32640         (mips_get_compress_mode): New function.
32641         (mips_get_compress_on_name): New function.
32642         (mips_get_compress_off_name): New function.
32643         (mips_insert_attributes): Support multiple compression types.
32644         (mips_merge_decl_attributes): Likewise.
32645         (umips_12bit_offset_address_p): New function.
32646         (mips_start_function_definition): Emit .set micromips directive.
32647         (mips_call_may_need_jalx_p): New function.
32648         (mips_function_ok_for_sibcall): Add microMIPS support.
32649         (mips_print_operand_punctuation): Support short delay slots and
32650         compact jumps.
32651         (umips_swm_mask, umips_swm_encoding): New.
32652         (umips_build_save_restore): New function.
32653         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32654         (was_mips16_p): Remove.
32655         (old_compression_mode): New.
32656         (mips_set_compression_mode): New function.
32657         (mips_set_current_function): Add microMIPS support.
32658         (mips_option_override): Likewise.
32659         (umips_save_restore_pattern_p): New function.
32660         (umips_output_save_restore): New function.
32661         (umips_load_store_pair_p_1): New function.
32662         (umips_load_store_pair_p): New function.
32663         (umips_output_load_store_pair_1): New function.
32664         (umips_output_load_store_pair): New function.
32665         (umips_movep_target_p) New function.
32666         (mips_prepare_pch_save): Add microMIPS support.
32667         * config/mips/mips.h (TARGET_COMPRESSION): New.
32668         (TARGET_CPU_CPP_BUILTINS): Update macro
32669         to use new compression flags and to support microMIPS.
32670         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32671         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32672         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32673         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32674         (ASM_SPEC): Support mmicromips and mno-micromips.
32675         (M16STORE_REG_P): New macro.
32676         (MIPS_CALL): Support TARGET_MICROMIPS.
32677         (MICROMIPS_J): New macro.
32678         (mips_base_mips16): Rename this...
32679         (mips_base_compression_flags): ...to this.
32680         (UMIPS_12BIT_OFFSET_P): New macro.
32681         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32682         (MULTILIB_DIRNAMES): Likewise.
32684 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
32686         PR target/52555
32687         * target-globals.c (save_target_globals): For init_reg_sets and
32688         target_reinit remporarily set this_fn_optabs to this_target_optabs.
32690 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
32692         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
32693         * config/aarch64/t-aarch64
32694         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
32696 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
32698         PR inline-asm/56148
32699         * lra-constraints.c (process_alt_operands): Reload operand
32700         conflicting with earlier clobber only if no more other conflicting
32701         operands.
32703 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
32705         PR sanitizer/56393
32706         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
32707         if not linking a shared library.
32709 2013-02-22  Seth LaForge  <sethml@google.com>
32711         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
32713 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
32715         * config/arm/arm.md (split for extendsidi): Update condition.
32716         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
32717         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
32718         (qhs_zextenddi_cstr): Likewise.
32720 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
32722         PR middle-end/56420
32723         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
32724         avoid signed wrapping.
32725         (expand_mult): Handle properly multiplication by
32726         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
32727         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
32728         in the compiler if coeff is HOST_WIDE_INT_MIN.
32729         (expand_divmod): Don't make ext_op1 static, change it's type to
32730         uhwi.  Avoid undefined behavior in -INTVAL (op1).
32732         PR rtl-optimization/50339
32733         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
32734         field.
32735         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
32736         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
32737         into splitting_ashiftrt field.
32738         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
32739         ASHIFTRT.
32740         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
32741         choices.
32743 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
32745         PR middle-end/56108
32746         * trans-mem.c (execute_tm_mark): Do not expand transactions that
32747         are sure to go irrevocable.
32749 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
32751         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
32752         scalars are valid operands.
32754 2013-02-21  Martin Jambor  <mjambor@suse.cz>
32756         PR tree-optimization/56310
32757         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
32758         only matching indices and non-negative final offsets.
32759         (intersect_aggregates_with_edge): Pass src_idx to
32760         agg_replacements_to_vector.  Pass src_idx insstead of index to
32761         intersect_with_agg_replacements.
32763 2013-02-21  Martin Jambor  <mjambor@suse.cz>
32765         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
32766         instead of hard-wired defaults.
32768 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
32770         * doc/invoke.texi (MIPS Options): Update documentation of the
32771         floating-point multiply-accumulate instruction restrictions.
32773 2013-02-21  Kostya Serebryany  <kcc@google.com>
32775         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
32776         asan_shadow_offset on x86_64 linux.
32778 2013-02-21  Richard Biener  <rguenther@suse.de>
32780         PR tree-optimization/56415
32781         Revert
32782         2013-02-11  Richard Biener  <rguenther@suse.de>
32784         PR tree-optimization/56273
32785         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32786         first VRP run.
32788 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
32790         PR bootstrap/56258
32791         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
32792         instead of @itemx.
32794         PR inline-asm/56405
32795         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
32796         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
32798 2013-02-20  Jan Hubicka  <jh@suse.cz>
32800         PR tree-optimization/56265
32801         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
32802         when target is referenced for first time.
32804 2013-02-20  Richard Biener  <rguenther@suse.de>
32806         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
32807         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
32808         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
32809         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
32810         not return anything.
32811         (rename_ssa_copies): Do not remove unused locals.
32812         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
32813         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
32814         * passes.c (execute_function_todo): Do not schedule unused locals
32815         removal if cleanup_tree_cfg did something.
32816         * tree-ssa-live.c (remove_unused_locals): Dump statistics
32817         about the number of removed locals.
32819 2013-02-20  Richard Biener  <rguenther@suse.de>
32821         PR tree-optimization/56398
32822         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
32824 2013-02-20  Martin Jambor  <mjambor@suse.cz>
32826         PR tree-optimization/55334
32827         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
32828         restricted pointers to arrays.
32830 2013-02-20  Richard Biener  <rguenther@suse.de>
32831             Jakub Jelinek  <jakub@redhat.com>
32833         PR tree-optimization/56396
32834         * tree-ssa-ccp.c (n_const_val): New static variable.
32835         (get_value): Return NULL for SSA names we don't have a lattice
32836         entry for.
32837         (ccp_initialize): Initialize n_const_val.
32838         * tree-ssa-copy.c (n_copy_of): New static variable.
32839         (init_copy_prop): Initialize n_copy_of.
32840         (get_value): Return NULL_TREE for SSA names we don't have a
32841         lattice entry for.
32843 2013-02-20  Martin Jambor  <mjambor@suse.cz>
32845         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
32847 2013-02-20  Richard Biener  <rguenther@suse.de>
32849         * genpreds.c (write_lookup_constraint): Do not compare first
32850         letter of the constraint again.
32852 2013-02-20  Richard Biener  <rguenther@suse.de>
32854         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
32855         and ceil_log2.
32856         (get_use_iv_cost): Terminate hashtable walk when coming across
32857         an empty entry.
32859 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
32861         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
32862         reassociation for avx2 targets.
32864 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32866         * config/microblaze/microblaze.c: microblaze_has_clz = 0
32867         Add version check for v8.10.a to enable microblaze_has_clz
32868         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
32869         version and TARGET_PATTERN_COMPARE check
32870         * config/microblaze/microblaze.md: New clzsi2 instruction
32872 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32874         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
32875         function before branching.
32877 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
32879         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
32880         DUMP_INSN_RTX_UID.
32881         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
32883 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
32885         PR middle-end/55889
32886         * sel-sched.c: Include ira.h.
32887         (implicit_clobber_conflict_p): New function.
32888         (moveup_expr): Use it.
32889         * Makefile.in (sel-sched.o): Depend on ira.h.
32891 2013-02-19  Richard Biener  <rguenther@suse.de>
32893         PR tree-optimization/56384
32894         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
32895         (vn_hash_type): Split out from ...
32896         (vn_hash_constant_with_type): ... here.
32897         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
32898         (vn_phi_eq): Compare types from vn_phi_s structure.
32899         (vn_phi_lookup): Populate vn_phi_s type.
32900         (vn_phi_insert): Likewise.
32902 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
32904         PR tree-optimization/56350
32905         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
32906         if haven't found reduction or nested cycle operand, rather than
32907         asserting we must find it.
32909         PR tree-optimization/56381
32910         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
32911         to fold_build3.
32913 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
32914             Jakub Jelinek  <jakub@redhat.com>
32916         PR target/52555
32917         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
32918         (swap_optab_enable): Same.
32919         (init_all_optabs): Use argument instead of global.
32920         * tree.h (struct tree_optimization_option): New field target_optabs.
32921         * expr.h (init_all_optabs): Add argument to prototype.
32922         (TREE_OPTIMIZATION_OPTABS): New.
32923         (save_optabs_if_changed): Protoize.
32924         * optabs.h: Declare this_fn_optabs.
32925         * optabs.c (save_optabs_if_changed): New.
32926         Declare this_fn_optabs.
32927         (init_optabs): Add argument to init_all_optabs() call.
32928         * function.c (invoke_set_current_function_hook): Handle per
32929         function optabs.
32930         * function.h (struct function): New field optabs.
32931         * config/mips/mips.c (mips_set_mips16_mode): Handle when
32932         optimization_current_node has changed.
32933         * target-globals.h (save_target_globals_default_opts): Protoize.
32934         * target-globals.c (save_target_globals_default_opts): New.
32936 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32938         PR target/56347
32939         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
32940         registers %fr12 and %fr12R as call used.
32942         PR target/56214
32943         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
32944         and HImode, require all displacements to be an integer multiple of
32945         their mode size.
32946         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
32947         only allow QImode and HImode when reload is in progress and strict is
32948         true.  Likewise for symbolic addresses.  Use base14_operand to check
32949         displacements in REG+BASE addresses.
32951 2013-02-18  Richard Biener  <rguenther@suse.de>
32953         PR tree-optimization/56366
32954         * tree-vect-loop.c (get_initial_def_for_induction): Properly
32955         handle sign-conversion of outer-loop initial induction value.
32957 2013-02-18  Richard Biener  <rguenther@suse.de>
32959         PR middle-end/56349
32960         * cfghooks.c (merge_blocks): If we merge a latch into another
32961         block adjust references to it.
32962         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
32963         (verify_loop_structure): Verify that a recorded latch is in fact
32964         a latch.
32966 2013-02-18  Richard Biener  <rguenther@suse.de>
32968         PR tree-optimization/56321
32969         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
32970         order SSA name release and virtual operand unlinking.
32972 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32974         * config/microblaze/microblaze.md (save_stack_block): Define.
32975         (restore_stack_block): Likewise.
32977 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32979         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
32980         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
32981         * config/microblaze/microblaze.c (microblaze_option_override):
32982         Bail out early for PIC modes when target does not support PIC.
32984 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32986         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
32987         Replace with a microblaze version.
32988         (microblaze_trampoline_init): Adapt for microblaze.
32989         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
32990         microblaze.
32992 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
32993             Dodji Seketeli  <dodji@redhat.com>
32995         PR asan/56330
32996         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
32997         (instrument_mem_region_access): Do not forget to always put
32998         instrumentation of the of 'base' and 'base + len' in a "if (len !=
32999         0) statement, even for cases where either 'base' or 'base + len'
33000         are not instrumented -- because they have been previously
33001         instrumented.  Simplify the logic by putting all the statements
33002         instrument 'base + len' inside a sequence, and then insert that
33003         sequence right before the current insertion point.  Then, to
33004         instrument 'base + len', just get an iterator on that statement.
33005         And do not forget to update the pointer to iterator the function
33006         received as argument.
33008 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
33010         PR rtl-optimization/56348
33011         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
33013 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
33015         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
33016         (clean_graph_dump_file): Pass base to start_graph_dump.
33018 2013-02-14  Richard Henderson  <rth@redhat.com>
33020         PR target/55941
33021         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
33023 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
33025         * collect2-aix.h: Define F_LOADONLY.
33027 2013-02-14  Richard Biener  <rguenther@suse.de>
33029         PR lto/50494
33030         * varasm.c (output_constant_def_1): Get the decl representing
33031         the constant as argument.
33032         (output_constant_def): Wrap output_constant_def_1.
33033         (make_decl_rtl): Use output_constant_def_1 with the decl
33034         representing the constant.
33035         (build_constant_desc): Optionally re-use a decl already
33036         representing the constant.
33037         (tree_output_constant_def): Adjust.
33039 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
33041         Fix an asan crash
33042         * asan.c (instrument_builtin_call):  Really put the length of the
33043         second source argument into src1_len.
33045 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
33047         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
33048         argument.  If it is false, don't create edge from then_bb to
33049         fallthru_bb.
33050         (insert_if_then_before_iter): Pass true to it.
33051         (build_check_stmt): Pass false to it.
33052         (transform_statements): Flush hash table only on extended basic
33053         block boundaries, rather than at the beginning of every bb.
33054         Don't flush hash table on nonfreeing_call_p calls.
33055         * tree-flow.h (nonfreeing_call_p): New prototype.
33056         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
33058 2013-02-13  David S. Miller  <davem@davemloft.net>
33060         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
33062 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
33064         PR target/56184
33065         * ira.c (max_regno_before_ira): Move from ...
33066         (ira): ... here.
33067         (fix_reg_equiv_init): Use max_regno_before_ira instead of
33068         vec_safe_length.
33070 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
33072         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
33074 2013-02-13  Richard Biener  <rguenther@suse.de>
33076         PR lto/56295
33077         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
33078         globals in MEM_REFs.
33080 2013-02-13  Richard Biener  <rguenther@suse.de>
33082         * loop-init.c (loop_optimizer_init): Clear loop state when
33083         re-initializing preserved loops.
33084         * loop-unswitch.c (unswitch_single_loop): Return whether
33085         we unswitched the loop.  Do not verify loop state here.
33086         (unswitch_loops): When we unswitched a loop discover new loops.
33088 2013-02-13  Kostya Serebryany  <kcc@google.com>
33090         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
33091         on x86_64 linux.
33092         * sanitizer.def: Rename __asan_init to __asan_init_v1.
33094 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
33096         Avoid instrumenting duplicated memory access in the same basic block
33097         * Makefile.in (asan.o): Add new dependency on hash-table.h
33098         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
33099         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
33100         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
33101         (free_mem_ref_resources, has_mem_ref_been_instrumented)
33102         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
33103         (get_mem_ref_of_assignment): New functions.
33104         (get_mem_refs_of_builtin_call): Extract from
33105         instrument_builtin_call and tweak a little bit to make it fit with
33106         the new signature.
33107         (instrument_builtin_call): Use the new
33108         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
33109         of is_gimple_builtin_call.
33110         (instrument_derefs, instrument_mem_region_access): Insert the
33111         instrumented memory reference into the hash table.
33112         (maybe_instrument_assignment): Renamed instrument_assignment into
33113         this, and change it to advance the iterator when instrumentation
33114         actually happened and return true in that case.  This makes it
33115         homogeneous with maybe_instrument_assignment, and thus give a
33116         chance to callers to be more 'regular'.
33117         (transform_statements): Clear the memory reference hash table
33118         whenever we enter a new BB, when we cross a function call, or when
33119         we are done transforming statements.  Use
33120         maybe_instrument_assignment instead of instrumentation.  No more
33121         need to special case maybe_instrument_assignment and advance the
33122         iterator after calling it; it's now handled just like
33123         maybe_instrument_call.  Update comment.
33125 2013-02-13  Richard Biener  <rguenther@suse.de>
33127         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
33128         Fix loop discovery code.
33130 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
33132         PR inline-asm/56148
33133         * lra-constraints.c (process_alt_operands): Match early clobber
33134         operand with itself.  Check conflicts with earlyclobber only if
33135         the operand is not reloaded.  Prefer to reload conflicting operand
33136         if earlyclobber and matching operands are the same.
33138 2013-02-12  Richard Biener  <rguenther@suse.de>
33140         PR lto/56297
33141         * lto-streamer-out.c (write_symbol): Do not output symbols
33142         for hard register variables.
33144 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
33146         PR target/54222
33147         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
33148         (umulsidi3_insn, mulsidi3_insn): New insns.
33150 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
33152         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
33153         (struct tune_params): Add vec_costs field.
33154         * config/arm/arm.c (arm_builtin_vectorization_cost)
33155         (arm_add_stmt_cost): New functions.
33156         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
33157         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
33158         (arm_default_vec_cost): New struct of type cpu_vec_costs.
33159         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
33160         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
33161         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
33162         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
33164 2013-02-12  Richard Biener  <rguenther@suse.de>
33166         PR lto/56295
33167         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
33168         decls again if possible.
33170 2013-02-12  Richard Biener  <rguenther@suse.de>
33172         PR middle-end/56288
33173         * tree-ssa.c (verify_ssa_name): Fix check, move
33174         SSA_NAME_IN_FREE_LIST check up.
33176 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
33177             Steven Bosscher   <steven@gcc.gnu.org>
33179         PR rtl-optimization/56151
33180         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
33181         equal to op0 or op1, and last_insn pattern is CODE operation
33182         with MEM dest and one of the operands matches that MEM.
33184 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
33186         * doc/extend.texi: Document Function Multiversioning and "default"
33187         parameter string to target attribute.
33188         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
33189         target attribute parameter is "default".
33190         (ix86_compare_version_priority): Remove checks for target attribute.
33191         (ix86_mangle_function_version_assembler_name): Change error to sorry.
33192         Remove check for target attribute equal to NULL. Add assert.
33193         (ix86_generate_version_dispatcher_body): Change error to sorry.
33195 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
33196             Jack Howarth  <howarth@bromo.med.uc.edu>
33197             Patrick Marlier  <patrick.marlier@gmail.com>
33199         PR libitm/55693
33200         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
33201         define ENDFILE_SPEC as TM_DESTRUCTOR.
33202         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
33204 2013-02-11  Alexander Potapenko  <glider@google.com>
33205             Jack Howarth  <howarth@bromo.med.uc.edu>
33206             Jakub Jelinek  <jakub@redhat.com>
33208         PR sanitizer/55617
33209         * config/darwin.c (cdtor_record): Rename ctor_record.
33210         (sort_cdtor_records): Rename sort_ctor_records.
33211         (finalize_dtors): New routine to sort destructors by
33212         priority before use in assemble_integer.
33213         (machopic_asm_out_destructor): Use finalize_dtors if needed.
33215 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
33217         PR rtl-optimization/56275
33218         * simplify-rtx.c (avoid_constant_pool_reference): Check that
33219         offset is non-negative and less than cmode size before
33220         calling simplify_subreg.
33222 2013-02-11  Richard Biener  <rguenther@suse.de>
33224         PR tree-optimization/56264
33225         * cfgloop.h (fix_loop_structure): Adjust prototype.
33226         * loop-init.c (fix_loop_structure): Return the number of
33227         newly discovered loops.
33228         * tree-cfgcleanup.c (repair_loop_structures): When new loops
33229         are discovered, do a full loop-closed SSA rewrite.
33231 2013-02-11  Richard Biener  <rguenther@suse.de>
33233         PR tree-optimization/56273
33234         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33235         first VRP run.
33236         (check_array_ref): Fix missing newline in dumps.
33237         (search_for_addr_array): Likewise.
33239 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
33241         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
33243 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
33245         PR target/56256
33246         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
33248 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
33250         PR rtl-optimization/56246
33251         * lra-constraints.c (simplify_operand_subreg): Try to reuse
33252         reload pseudo.
33253         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
33254         constraints are satisfied.
33256 2013-02-08  Jeff Law  <law@redhat.com>
33258         PR debug/53948
33259         * emit-rtl.c (reg_is_parm_p): New function.
33260         * regs.h (reg_is_parm_p): New prototype.
33261         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
33262         callee-clobbered registers.
33264 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
33266         PR target/56043
33267         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
33268         If there is no implicit builtin declaration, just return NULL.
33270 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33272         * config/i386/sse.md (FMAMODEM): New mode iterator.
33273         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
33274         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
33276 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33278         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
33279         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
33280         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
33282 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33284         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
33285         (microblaze*-*-elf): Likewise.
33286         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
33287         LINK_SPEC.
33288         * config/microblaze/microblaze-c.c: Add builtin defines for
33289         _LITTLE_ENDIAN and _BIG_ENDIAN.
33290         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
33291         add to TARGET_DEFAULT flags.
33292         Expand ASM_SPEC and LINK_SPEC.
33293         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
33294         * config/microblaze/microblaze.md: Update extendsidi2 and
33295         movdi_internal instructions to use low-order / high-order reg
33296         print_operands.
33297         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
33298         options and inversemask / mask of LITTLE_ENDIAN.
33299         * config/microblaze/t-microblaze: Expand multilib options to
33300         include mlittle-endian (le) and update exceptions patterns.
33302 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
33304         PR rtl-optimization/56195
33305         * lra-constraints.c (get_reload_reg): Don't reuse regs
33306         if they have smaller mode than requested, if they have
33307         wider mode than requested, try to return a SUBREG.
33309         PR tree-optimization/56250
33310         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
33311         if type is unsigned and code isn't MULT_EXPR.
33313 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
33315         PR tree-optimization/56064
33316         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
33317         bits according to mode.
33318         * fixed-value.h (fixed_from_double_int)
33319         (const_fixed_from_double_int): Adjust comments.
33321 2013-02-08  Richard Biener  <rguenther@suse.de>
33323         PR lto/56231
33324         * lto-streamer.h (struct data_in): Remove current_file, current_line
33325         and current_col members.
33326         * lto-streamer-out.c (lto_output_location): Stream changed bits
33327         en-block for efficiency.
33328         * lto-streamer-in.c (clear_line_info): Remove.
33329         (lto_input_location): Cache current file, line and column
33330         globally via local statics.  Read changed bits en-block.
33331         (input_function): Do not call clear_line_info.
33332         (lto_read_body): Likewise.
33333         (lto_input_toplevel_asms): Likewise.
33335 2013-02-08  Michael Matz  <matz@suse.de>
33337         PR tree-optimization/52448
33338         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
33339         (nt_call_phase): New static.
33340         (add_or_mark_expr): Only mark accesses with newer phase than any
33341         call seen.
33342         (nonfreeing_call_p): New.
33343         (nt_init_block): Update nt_call_phase, mark blocks as visited.
33344         (nt_fini_block): Keep blocks marked as visited.
33345         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
33347 2013-02-08  Richard Biener  <rguenther@suse.de>
33349         * ira.c (ira): Free broken dominator information.
33351 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33353         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
33355 2013-02-08  Marek Polacek  <polacek@redhat.com>
33357         * cfgloop.c (verify_loop_structure): Add more checking of headers.
33359 2013-02-08  Richard Biener  <rguenther@suse.de>
33361         PR middle-end/56181
33362         * cfgloop.h (flow_loops_find): Adjust.
33363         (bb_loop_header_p): Declare.
33364         * cfgloop.c (bb_loop_header_p): New function split out from ...
33365         (flow_loops_find): ... here.  Adjust function signature,
33366         support incremental loop structure update.
33367         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
33368         * cfgloopmanip.c (fix_loop_structure): Move ...
33369         * loop-init.c (fix_loop_structure): ... here.
33370         (apply_loop_flags): Split out from ...
33371         (loop_optimizer_init): ... here.
33372         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
33373         in incremental mode, only remove dead loops here.
33375 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
33377         PR target/54222
33378         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
33379         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
33380         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
33381         (*round<mode>3.libgcc): New insns for fixed-modes.
33382         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
33383         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
33384         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
33385         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
33386         implementations.  Define to __builtin_avr_absFX,
33387         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
33388         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
33389         __builtin_avr_countlsFX, respectively.
33390         * config/avr/avr-c.c (target.h): Include it.
33391         (enum avr_builtin_id): New enum.
33392         (avr_resolve_overloaded_builtin): New static function.
33393         (avr_register_target_pragmas): Use it to set
33394         targetm.resolve_overloaded_builtin.
33395         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
33396         tree nodes used by DEF_BUILTIN.
33397         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
33398         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
33399         <AVR_BUILTIN_xxBITS>: Same.
33401 2013-02-08  Richard Biener  <rguenther@suse.de>
33403         * cfgloop.c (verify_loop_structure): Properly handle
33404         a loop exiting to another loop header.
33405         * ira-int.h (ira_loops): Remove.
33406         * ira.c (ira_loops): Remove.
33407         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
33408         (do_reload): Use loop_optimizer_finalize.
33409         * ira-build.c (create_loop_tree_nodes): Use get_loops and
33410         number_of_loops to access the loop tree.
33411         (more_one_region_p): Likewise.
33412         (finish_loop_tree_nodes): Likewise.
33413         (rebuild_regno_allocno_maps): Likewise.
33414         (mark_loops_for_removal): Likewise.
33415         (mark_all_loops_for_removal): Likewise.
33416         (remove_unnecessary_regions): Likewise.
33417         (ira_build): Likewise.
33418         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
33420 2013-02-08  Richard Biener  <rguenther@suse.de>
33422         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
33423         * ipa-pure-const.c (analyze_function): Avoid calling
33424         mark_irreducible_loops twice.
33425         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
33427 2013-02-07  David S. Miller  <davem@davemloft.net>
33429         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
33430         on 'reg'.
33431         * var-tracking.c (vt_add_function_parameter): Test the presence of
33432         HAVE_window_save properly and do not remap argument registers when
33433         we have a leaf function.
33435 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
33437         PR bootstrap/56227
33438         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
33439         instead of "ll".
33440         * config/i386/i386.c (ix86_print_operand): Ditto.
33442 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
33444         * lra-constraints.c (process_alt_operands): Fix recently added comment.
33446 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
33448         PR rtl-optimization/56225
33449         * lra-constraints.c (process_alt_operands): Check that reload hard
33450         reg can hold value for strict_low_part.
33452 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
33454         PR debug/56154
33455         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
33456         dwarf2out_end_function.
33457         (in_first_function_p, maybe_at_text_label_p,
33458         first_loclabel_num_not_at_text_label): New variables.
33459         (dwarf2out_var_location): In the first function find out
33460         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
33461         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
33462         functions.
33464 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
33466         PR rtl-optimization/56178
33467         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
33468         SUBREG of a register.  Tidy up related block of code.
33469         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
33470         note if the source is a register or a SUBREG of a register.
33472 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
33474         PR target/56228
33475         * config/rs6000/rs6000.md (ptrm): New mode attr.
33476         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
33477         call_value_indirect_aix<pttrsize>,
33478         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
33479         m in constraints.
33481 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33483         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
33484         if -bnortl. Convert to strcmp and strncmp.
33486 2013-02-07  Alan Modra  <amodra@gmail.com>
33488         PR target/54009
33489         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
33490         addresses won't wrap when offsetting.
33491         (rs6000_secondary_reload): Provide secondary reloads needed for
33492         wrapping LO_SUM addresses.
33494 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
33496         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
33497         MACH, just __MACH__.
33499 2013-02-06  Richard Biener  <rguenther@suse.de>
33501         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
33502         instead of calling fix_loop_structure.
33504 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
33506         PR middle-end/56217
33507         * omp-low.c (use_pointer_for_field): Return false if
33508         lower_send_shared_vars doesn't generate any copy-out code.
33510 2013-02-06  Tom de Vries  <tom@codesourcery.com>
33512         PR rtl-optimization/56131
33513         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
33514         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
33515         of the label is NULL.  Add comment.
33517 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
33519         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
33521         PR sanitizer/55374
33522         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
33523         (STATIC_LIBTSAN_LIBS): Likewise.
33524         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
33525         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
33526         is defined, don't add anything else beyond that.
33527         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
33528         (LINK_COMMAND_SPEC): Use them.
33530         PR tree-optimization/56205
33531         * tree-stdarg.c (check_all_va_list_escapes): Return true if
33532         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
33533         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
33535 2013-02-05  Richard Biener  <rguenther@suse.de>
33537         PR tree-optimization/53342
33538         PR tree-optimization/53185
33539         * tree-vectorizer.h (vect_check_strided_load): Remove.
33540         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
33541         not disallow peeling for vectorized strided loads.
33542         (vect_check_strided_load): Make static and simplify.
33543         (vect_analyze_data_refs): Adjust.
33544         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
33545         correctly when vectorizing strided loads.
33547 2013-02-05  Richard Biener  <rguenther@suse.de>
33549         * doc/install.texi: Refer to ISL, not PPL.
33551 2013-02-05  Jan Hubicka  <jh@suse.cz>
33553         PR tree-optimization/55789
33554         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
33556 2013-02-05  Jan Hubicka  <jh@suse.cz>
33558         PR tree-optimization/55789
33559         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
33560         the dead call anyway.
33562 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
33564         PR sanitizer/55374
33565         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
33567 2013-02-04  Alexander Potapenko  <glider@google.com>
33568             Jack Howarth  <howarth@bromo.med.uc.edu>
33569             Jakub Jelinek  <jakub@redhat.com>
33571         PR sanitizer/55617
33572         * config/darwin.c (sort_ctor_records): Stabilized qsort
33573         on constructor priority by using original position.
33574         (finalize_ctors): New routine to sort constructors by
33575         priority before use in assemble_integer.
33576         (machopic_asm_out_constructor): Use finalize_ctors if needed.
33578 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
33580         PR libstdc++/54314
33581         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
33582         about visibility on artificial decls.
33583         * config/sol2.c (solaris_assemble_visibility): Likewise.
33585 2013-02-04  Kai Tietz  <ktietz@redhat.com>
33587         PR target/56186
33588         * config/i386/i386.c (function_value_ms_64): Add additional valtype
33589         argument and improve checking of return-argument types for 16-byte
33590         modes.
33591         (ix86_function_value_1): Add additional valtype argument on call
33592         of function_value_64.
33593         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
33594         handling infunction_value_64 function.
33596 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
33598         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
33600 2013-02-04  Richard Biener  <rguenther@suse.de>
33602         PR tree-optimization/56188
33603         * tree-ssa-structalias.c (label_visit): Consider case with
33604         initially non-empty points-to set.
33605         (perform_var_substitution): Dump node mapping and clean up.
33607 2013-02-04  Richard Guenther  <rguenther@suse.de>
33609         PR lto/56168
33610         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
33611         node prevail as last resort.
33612         (lto_symtab_merge_decls): Remove guard on LTRANS here.
33613         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
33615 2013-02-04  Richard Biener  <rguenther@suse.de>
33617         PR tree-optimization/56113
33618         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
33619         Merge into ...
33620         (equiv_class_lookup_or_add): ... this.
33621         (label_visit): Adjust and fix error in previous patch.
33622         (perform_var_substitution): Adjust.
33624 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
33626         * config/sh/divtab.c: Fix formatting and comments throughout the file.
33627         * config/sh/sh4-300.md: Likewise.
33628         * config/sh/sh4a.md: Likewise.
33629         * config/sh/constraints.md: Likewise.
33630         * config/sh/sh.md: Likewise.
33631         * config/sh/netbsd-elf.h: Likewise.
33632         * config/sh/predicates.md: Likewise.
33633         * config/sh/sh-protos.h: Likewise.
33634         * config/sh/ushmedia.h: Likewise.
33635         * config/sh/linux.h: Likewise.
33636         * config/sh/sh.c: Likewise.
33637         * config/sh/superh.h: Likewise.
33638         * config/sh/elf.h: Likewise.
33639         * config/sh/sh4.md: Likewise.
33640         * config/sh/sh.h: Likewise.
33642 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33644         * config/pa/constraints.md: Adjust unused letters.  Change "T"
33645         constraint to match_test floating_point_store_memory_operand().
33646         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
33647         (base14_operand): New.
33648         (floating_point_store_memory_operand): New.
33649         (integer_store_memory_operand): Revise to use base14_operand and
33650         reg_plus_base_memory_operand.
33651         (move_dest_operand): Allow symbolic_memory_operands.
33652         (symbolic_memory_operand): Check for LO_SOM.
33653         (symbolic_operand): Change default case to break.
33654         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
33655         CONST_DOUBLE values to be reloaded by putting them into memory when
33656         the destination is a floating point register.
33657         (movdf): Remove code to handle CONST_DOUBLE.
33658         (movsf): Likewise.
33659         (reload_indf_r1): New.
33660         (reload_insf_r1): New.
33661         Consistently use "Q" and "T" constraints with integer and floating
33662         point move instructions, respectively.
33663         (movdi): Remove FAIL.
33664         Change predicate for source operand unamed DImode move from
33665         general_operand to move_src_operand.
33666         (umulsidi3): Change predicate for destination operand to
33667         register_operand.
33668         Likewise for similar unamed patterns.
33669         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
33670         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
33671         (hppa_legitimize_address): Simplify mask calculation.
33672         (pa_emit_move_sequence): Revised handling of secondary reloads from
33673         REG+D addresses for floating point loads and stores.  Directly handle
33674         loading CONST0_RTX (mode) to a floating point register.
33675         (pa_secondary_reload): Handle reloading DF and SFmode constant values
33676         to floating point registers.  Don't restrict secondary reloads to
33677         floating point registers to integer modes.  Revise some comments and
33678         cleanup some code.
33679         (TARGET_LEGITIMATE_ADDRESS_P): Define.
33680         (pa_legitimate_address_p): New.
33681         (pa_legitimize_reload_address): New.
33682         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
33683         (STRICT_REG_OK_FOR_BASE_P): New.
33684         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
33685         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
33687 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
33688             Andrew Dixie  <andrewd@gentrack.com>
33690         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
33691         flag set.
33693 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
33695         * expmed.c (extract_bit_field_1): Pass the full width of the
33696         structure to get_best_reg_extraction_insn.
33698 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
33700         PR target/54601
33701         * configure.ac (use_cxa_atexit): Add AIX.
33702         * configure: Regenerate.
33704         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
33706 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
33708         PR debug/54793
33709         * final.c (need_profile_function): New variable.
33710         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
33711         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
33712         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
33713         notes, targetm.asm_out.function_prologue doesn't emit anything,
33714         HAVE_prologue and profiler should be emitted before prologue,
33715         set need_profile_function instead of emitting it.
33716         (final_scan_insn): If need_profile_function, emit
33717         profile_function on the first NOTE_INSN_BASIC_BLOCK or
33718         NOTE_INSN_FUNCTION_BEG note.
33720 2013-02-01  Richard Henderson  <rth@redhat.com>
33722         * config/rs6000/rs6000.md (smulditi3): New.
33723         (umulditi3): New.
33725         * config/alpha/alpha.md (umulditi3): New.
33727 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
33729         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
33730         (ASM_OUTPUT_ALIGNED_LOCAL): New.
33732 2013-02-01  Richard Biener  <rguenther@suse.de>
33734         PR tree-optimization/56113
33735         * tree-ssa-structalias.c (label_visit): Reduce work for
33736         single-predecessor nodes.
33738 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
33740         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
33741         range isn't testing for zero.
33743 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
33745         PR middle-end/56113
33746         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
33748 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
33749             Nick Clifton  <nickc@redhat.com>
33751         * config/v850/constraints.md (Q): Define as a memory constraint.
33752         * config/v850/predicates.md (label_ref_operand): New predicate.
33753         (e3v5_shift_operand): New predicate.
33754         (ior_operator): New predicate.
33755         * config/v850/t-v850: Add e3v5 multilib.
33756         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
33757         (v850_gen_movdi): Prototype.
33758         * config/v850/v850.c: Add support for e3v5 architecture.
33759         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
33760         TARGET_V850E_UP.
33761         (construct_save_jarl): Add e3v5 long JARL support.
33762         (v850_adjust_insn_length): New function.  Adjust length of call
33763         insns when using e3v5 instructions.
33764         (v850_gen_movdi): New function: Generate instructions to move a
33765         DImode value.
33766         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
33767         (CPP_SPEC): Define __v850e3v5__ as appropriate.
33768         (TARGET_USE_FPU): Enable for e3v5.
33769         (CONST_OK_FOR_W): New macro.
33770         (ADJUST_INSN_LENGTH): Define.
33771         * config/v850/v850.md (UNSPEC_LOOP): Define.
33772         (attr cpu): Add v850e3v5.
33773         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
33774         (movdi): New pattern.
33775         (movdi_internal): New pattern.
33776         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
33777         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
33778         (cstoresf4): Likewise.
33779         (cstoredf4): Likewise.
33780         (insv): New pattern.
33781         (rotlso3_a): New pattern.
33782         (rotlsi3_b): New pattern
33783         (rotlsi3_v850e3v5): New pattern.
33784         (doloop_begin): New pattern.
33785         (fix_loop_counter): New pattern.
33786         (doloop_end): New pattern.
33787         (branch_normal): Add e3v5 long branch support.
33788         (branch_invert): Likewise.
33789         (branch_z_normal): Likewise.
33790         (branch_z_invert): Likewise.
33791         (branch_nz_normal): Likewise.
33792         (branch_nz_invert): Likewise.
33793         (call_internal_short): Add e3v5 register-indirect JARL support.
33794         (call_internal_long): Likewise.
33795         (call_value_internal_short): Likewise.
33796         (call_value_internal_long): Likewise.
33797         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
33798         (mloop): New option.
33799         * config.gcc: Add support for configuring v840e3v5 target.
33800         * doc/invoke.texi: Document new v850 specific command line options.
33802 2013-01-31  Paul Koning  <ni1d@arrl.net>
33804         PR debug/55059
33805         PR debug/54508
33806         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
33807         children if parent is a class.
33808         (prune_unused_types_prune): Don't add DW_AT_declaration.
33810 2013-01-31  Richard Biener  <rguenther@suse.de>
33812         PR tree-optimization/56157
33813         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
33814         match up operand with SLP child.
33816 2013-01-31  Jason Merrill  <jason@redhat.com>
33818         PR debug/54410
33819         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
33820         parameters the first time.
33821         (gen_scheduled_generic_parms_dies): Check completeness here.
33823 2013-01-31  Richard Biener  <rguenther@suse.de>
33825         PR middle-end/53073
33826         * common.opt (faggressive-loop-optimizations): New flag,
33827         enabled by default.
33828         * doc/invoke.texi (faggressive-loop-optimizations): Document.
33829         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
33830         infer_loop_bounds_from_undefined by it.
33832 2013-01-31  Richard Biener  <rguenther@suse.de>
33834         PR tree-optimization/56150
33835         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
33836         visit virtual operands.
33837         (find_uses_to_rename_bb): Likewise.
33839 2013-01-31  Richard Biener  <rguenther@suse.de>
33841         PR tree-optimization/56150
33842         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
33843         mixed store non-store stmts.
33845 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
33847         PR sanitizer/55374
33848         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
33849         LIBASAN_EARLY_SPEC is defined.
33850         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
33851         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
33852         before %o.
33853         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
33855         PR c++/55742
33856         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
33857         invalid args instead of ICEing on it.
33858         (ix86_valid_target_attribute_tree): Return error_mark_node if
33859         ix86_valid_target_attribute_inner_p failed.
33860         (ix86_valid_target_attribute_p): Return false only if
33861         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
33862         target("default") attribute.
33863         (sorted_attr_string): Change argument from const char * to tree,
33864         merge in all target attribute arguments rather than just one.
33865         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
33866         instead of free.  Avoid using strcat.
33867         (ix86_mangle_function_version_assembler_name): Mangle
33868         target("default") as if no target attribute is present.  Adjust
33869         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
33870         instead of xmalloc and XDELETEVEC instead of free.
33871         (ix86_function_versions): Don't return true if one of the decls
33872         doesn't have target attribute.  If they don't and one of the decls
33873         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
33874         sorted_attr_string caller.  Use XDELETEVEC instead of free.
33875         (ix86_supports_function_versions): Remove.
33876         (make_name): Fix up formatting.
33877         (make_dispatcher_decl): Remove resolver_name and its initialization.
33878         Avoid leaking memory.
33879         (is_function_default_version): Return true if there is
33880         target("default") attribute rather than no target attribute at all.
33881         (make_resolver_func): Avoid leaking memory.
33882         (ix86_generate_version_dispatcher_body): Likewise.
33883         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
33884         * target.def (supports_function_versions): Remove.
33885         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
33886         * doc/tm.texi: Regenerated.
33888 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33890         PR rtl-optimization/56144
33891         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
33892         for values with side effects.
33894 2013-01-30  Richard Biener  <rguenther@suse.de>
33896         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
33897         (sparseset_pop): Likewise.
33898         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
33899         to be able to use quick_push in the worker loop.
33901 2013-01-30  Marek Polacek  <polacek@redhat.com>
33903         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
33905 2013-01-30  Richard Biener  <rguenther@suse.de>
33907         PR lto/56147
33908         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
33910 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
33912         PR tree-optimization/56064
33913         * fixed-value.c (fixed_from_double_int): New function.
33914         * fixed-value.h (fixed_from_double_int): New prototype.
33915         (const_fixed_from_double_int): New static inline function.
33916         * fold-const.c (native_interpret_fixed): New static function.
33917         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
33918         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
33919         (native_encode_fixed): New static function.
33920         (native_encode_expr) <FIXED_CST>: Use it.
33921         (native_interpret_int): Move double_int worker code to...
33922         * double-int.c (double_int::from_buffer): ...this new static method.
33923         * double-int.h (double_int::from_buffer): Prototype it.
33925 2013-01-30  Richard Biener  <rguenther@suse.de>
33927         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
33928         New pointer-map and obstack.
33929         (init_alias_vars): Allocate pointer-map and obstack.
33930         (delete_points_to_sets): Free them.
33931         (find_what_var_points_to): Cache result.
33932         (find_what_p_points_to): Adjust for changed interface of
33933         find_what_var_points_to.
33934         (compute_points_to_sets): Likewise.
33935         (ipa_pta_execute): Likewise.
33937 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33939         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
33940         * configure: Regenerate.
33941         * config.in: Regenerate.
33942         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
33943         #nobits/#progbits if supported.
33945 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
33947         PR target/56121
33948         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
33949         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
33950         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
33952 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33954         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
33955         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
33957 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33959         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
33960         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
33962 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33964         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
33965         declaration.
33966         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
33967         * config/arm/cortex-a7.md: New bypasses using
33968         arm_mac_accumulator_is_result.
33970 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33972         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
33973         (cortex_a7_neon_mla): Likewise.
33974         (cortex_a7_fpfmad): New reservation.
33975         (cortex_a7_fpmacs): Use ffmas and update required units.
33976         (cortex_a7_fpmuld): Update required units and latency.
33977         (cortex_a7_fpmacd): Likewise.
33978         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
33979         (cortex_a7_neon). Likewise.
33980         (bypass) Update participating units.
33982 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33984         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
33985         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
33986         from fmac to ffma.
33987         * config/arm/vfp11.md (vfp_farith): Use ffmas.
33988         (vfp_fmul): Use ffmad.
33989         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
33990         (cortex_r4_fmacd): Use ffmad.
33991         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
33992         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
33993         (cortex_a9_fmacd): Use ffmad.
33994         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
33995         (cortex_a8_vfp_macd): Use ffmad.
33996         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
33997         (cortex_a5_fpmacd): Use ffmad.
33998         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
33999         (cortex_a15_vfp_macd): Use ffmad.
34000         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
34002 2013-01-29  Jason Merrill  <jason@redhat.com>
34004         PR libstdc++/54314
34005         * varasm.c (default_assemble_visibility): Don't warn about
34006         visibility on artificial decls.
34008 2013-01-29  Richard Biener  <rguenther@suse.de>
34010         PR tree-optimization/56113
34011         * tree-ssa-structalias.c (equiv_class_lookup): Also return
34012         the bitmap leader.
34013         (label_visit): Free duplicate bitmaps and record the leader instead.
34014         (perform_var_substitution): Adjust.
34016 2013-01-29  Richard Biener  <rguenther@suse.de>
34018         PR tree-optimization/55270
34019         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
34020         the CFG, schedule loops for fixup.
34022 2013-01-29  Nick Clifton  <nickc@redhat.com>
34024         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
34025         SP_REG.
34027 2013-01-28  Leif Ekblad  <leif@rdos.net>
34029         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
34030         * config/i386/i386.h (TARGET_RDOS): New macro.
34031         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
34032         * config/i386/i386.c (ix86_option_override_internal): For 64bit
34033         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
34034         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
34035         DEFAULT_LARGE_SECTION_THRESHOLD.
34036         * config/i386/i386.md (R14_REG, R15_REG): New constants.
34037         * config/i386/rdos.h: New file.
34038         * config/i386/rdos64.h: New file.
34040 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
34042         PR other/54814
34043         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
34044         TEST_HARD_REG_BIT.
34046 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
34048         PR rtl-optimization/56117
34049         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
34050         call cselib_lookup_from_insn on the MEM before calling
34051         add_insn_mem_dependence.
34053 2013-01-28  Richard Biener  <rguenther@suse.de>
34055         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
34056         to a stmt that didn't have one.
34057         (copy_phis_for_bb): Likewise for PHI arguments.
34058         (copy_debug_stmt): Likewise for debug stmts.
34060 2013-01-28  Richard Biener  <rguenther@suse.de>
34062         PR tree-optimization/56034
34063         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
34064         (partition_builtin_p): Adjust.
34065         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
34066         it is the last partition.
34067         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
34068         up the vertex for the definition.
34069         (classify_partition): Classify whether a partition is a
34070         PKIND_REDUCTION, thus has uses outside of the loop.
34071         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
34072         Merge all PKIND_REDUCTION partitions into the last partition.
34073         (tree_loop_distribution): Seed partitions from reductions as well.
34075 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
34077         PR tree-optimization/56125
34078         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
34079         pow(x,c) into sqrt(x) * powi(x, n/2) or
34080         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
34081         optimizing for size.
34082         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
34083         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
34084         integer.
34086         PR tree-optimization/56094
34087         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
34088         to UNKNOWN_LOCATION while gimplifying expr.
34090 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
34092         PR target/56114
34093         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
34094         operand 0 in movabs insn template for -masm=intel asm alternative.
34095         (*movabs<mode>_2): Ditto for operand 1.
34097 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
34099         PR target/54663
34100         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
34101         of microblaze-c.o
34103 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34105         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
34106         tm_file.
34108 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34110         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
34111         Undef to avoid warning.
34113 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34115         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
34116         * configure: Regenerate.
34118 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
34120         PR tree-optimization/56098
34121         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
34122         for stmts with volatile ops.
34123         (cond_store_replacement): Don't optimize if assign has volatile ops.
34124         (cond_if_else_store_replacement_1): Don't optimize if either
34125         then_assign or else_assign have volatile ops.
34126         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
34127         volatile ops.
34129 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34131         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
34133 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34135         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
34136         missing ':' in asm example.
34138 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
34140         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
34141         entries into lane and laneq entries.
34142         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
34143         Remove AdvSIMD scalar modes.
34144         (aarch64_sq<r>dmulh_laneq<mode>): New.
34145         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
34146         modes.
34147         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
34148         builtin implementations to relfect changes in RTL in aarch64-simd.md.
34149         * config/aarch64/iterators.md (VCOND): New.
34150         (VCONQ): New.
34152 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34154         PR target/54222
34155         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
34156         Add NULL LIBNAME argument to existing definitions.
34157         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
34158         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
34159         * config/avr/avr.c (DEF_BUILTIN): Same.
34160         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
34161         (avr_expand_builtin): Expand to a vanilla call if a libgcc
34162         implementation is available (DECL_ASSEMBLER_NAME is set).
34163         (avr_fold_absfx): New static function.
34164         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
34165         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
34166         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
34167         AVR_BUILTIN_ABSLLK.
34168         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
34169         (abshk, absk, abslk, absllk): Provide as static inline functions.
34171 2013-01-25  Marek Polacek  <polacek@redhat.com>
34173         PR tree-optimization/56035
34174         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
34176 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
34178         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
34179         (*movtf_internal_rex64): Add (!o,C) alternative
34180         (*movxf_internal_rex64): Ditto.
34181         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
34183 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
34185         * doc/invoke.texi: fix typo.
34186         * doc/objc.texi: fix typo.
34188 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
34190         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
34191         for the first two alternatives.
34193 2013-01-24  Diego Novillo  <dnovillo@google.com>
34195         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
34196         (ggc-zone.o): Remove.
34197         * configure.ac: Remove option --with-gc.
34198         * configure: Re-generate.
34199         * doc/install.texi: Remove documentation for --with-gc.
34200         * gengtype.c (write_enum_defn): Remove.  Update all users.
34201         (write_Types_process_field): Remove generation of gt_e_* argument.
34202         (output_type_enum): Remove.  Update all users.
34203         (write_enum_defn): Remove.  Update all users.
34204         (enum alloc_zone): Remove.  Update all users.
34205         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
34206         * ggc-common.c (ggc_splay_alloc): Remove first argument.
34207         Update all callers.
34208         (struct ptr_data): Remove field TYPE.  Update all users.
34209         (gt_pch_note_object): Remove argument TYPE.  Update all users.
34210         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
34211         Update all users.
34212         * ggc-none.c (ggc_alloc_typed_stat): Remove.
34213         (struct alloc_zone): Remove.
34214         (ggc_internal_alloc_zone_stat): Remove.
34215         (ggc_internal_cleared_alloc_zone_stat): Remove.
34216         * ggc-page.c (ggc_alloc_typed_stat): Remove.
34217         (ggc_pch_count_object): Remove last argument.  Update all users.
34218         (ggc_pch_alloc_object): Remove last argument.  Update all users.
34219         (struct alloc_zone): Remove.
34220         * ggc-zone.c: Remove.
34221         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
34222         (struct alloc_zone): Remove.
34223         (ggc_alloc_typed_stat): Remove.
34224         (ggc_alloc_typed): Remove.
34225         (ggc_splay_alloc): Remove first argument.
34226         (rtl_zone): Remove.  Update all users.
34227         (tree_zone): Remove.  Update all users.
34228         (tree_id_zone): Remove.  Update all users.
34229         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
34230         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
34231         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
34232         * tree-ssanames.c: Remove references to zone allocator in comments.
34234 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
34236         * config/avr/avr.c (avr_out_fract): Make register numbers that
34237         might be outside of source operand signed.
34239 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
34241         * config/i386/constraints.md (Yf): New constraint.
34242         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
34243         of f constraint to conditionaly disable x87 register preferences.
34244         (*movdf_internal): Ditto.
34245         (*movsf_internal): Ditto.
34247 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
34249         PR inline-asm/55934
34250         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
34251         that have operands with impossible constraints.
34252         Add a FIXME for a speed-up opportunity.
34253         * lra-constraints.c (process_alt_operands): Verify that a class
34254         selected from constraints on asms is valid for the operand mode.
34255         (curr_insn_transform): Remove incorrect comment.
34257 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
34259         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
34260         TOC operand is a valid symbol ref in the constant pool.
34262 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34264         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
34266 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
34268         PR target/54222
34269         * config/avr/stdfix.h: New file.
34270         * t-avr (stdfix-gcc.h): New rule to build it.
34271         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
34273 2013-01-23  Kostya Serebryany  <kcc@google.com>
34275         * config/darwin.h: remove dependency on
34276         CoreFoundation (asan on Mac OS).
34278 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
34280         PR target/49069
34281         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
34282         instead of cmpdi_operand for first comparison operand.
34283         Don't assert that comparison operands aren't both constants.
34285 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
34287         * doc/install.texi (Downloading the Source): Update references to
34288         downloading separate components.
34290 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
34292         * doc/extend.texi (__int128): Improve grammar.
34294 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
34296         PR target/56028
34297         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
34298         alternative to (o,r).
34299         (*movdi_internal_rex64): Remove (!o,n) alternative.
34300         (DImode immediate->memory splitter): Remove.
34301         (DImode immediate->memory peephole2): Remove.
34302         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
34303         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
34304         alternative to (!o,*r).
34305         (*movtf_internal_sse): New pattern.
34306         (*movxf_internal_rex64): New pattern.
34307         (*movxf_internal): Disable for TARGET_64BIT.
34308         (*movdf_internal_rex64): Remove (!o,F) alternative.
34310 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
34312         PR middle-end/56074
34313         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
34314         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
34315         * tree-vect-loop-manip.c (find_loop_location): Also ignore
34316         stmt locations where LOCATION_LOCUS of the stmt location is
34317         UNKNOWN_LOCATION or BUILTINS_LOCATION.
34319         PR target/55686
34320         * config/i386/i386.md (UNSPEC_STOS): New.
34321         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
34322         *strsetqi_1): Add UNSPEC_STOS.
34324 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
34326         PR c++/56067
34327         * doc/invoke.texi: Remove left over -Wsynth example.
34329 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
34331         PR tree-optimization/56051
34332         * fold-const.c (fold_binary_loc): Don't fold
34333         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
34334         a narrowing conversion, or widening conversion from signed
34335         to unsigned.
34337 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
34339         PR rtl-optimization/56023
34340         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
34341         dependent on debug instruction.
34343 2013-01-21  Martin Jambor  <mjambor@suse.cz>
34345         PR middle-end/56022
34346         * function.c (allocate_struct_function): Call
34347         invoke_set_current_function_hook earlier.
34349 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
34351         * reload1.c (init_reload): Only initialize reload_obstack
34352         during the first call.
34354 2013-01-21  Marek Polacek  <polacek@redhat.com>
34356         * cfgloop.c (verify_loop_structure): Fix up grammar.
34358 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
34360         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
34361         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
34363 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34365         PR target/56058
34366         * config/arm/marvell-pj4.md: Update copyright year.
34367         Fix up use of alu to alu_reg and simple_alu_imm.
34369 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
34371         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
34373 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
34375         PR target/55433
34376         * lra-constraints.c (curr_insn_transform): Don't reuse original
34377         insn for secondary memory move when memory mode should be different.
34379 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34381         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
34382         atomic_storedi_1): New patterns.
34384 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
34386         btver2 pipeline descriptions.
34387         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
34388         descriptions.
34389         * config/i386/i386.md (btver2_decode): New type attributes.
34390         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
34391         type attributes.
34392         * config/i386/btver2.md: New file describing btver2 pipelines.
34394 2013-01-19  Andrew Pinski  <apinski@cavium.com>
34396         PR tree-optimization/52631
34397         * tree-ssa-sccvn (visit_use): Before looking up the original
34398         statement, try looking up the simplified expression.
34400 2013-01-19  Anthony Green  <green@moxielogic.com>
34402         * config/moxie/moxie.c (moxie_expand_prologue): Set
34403         current_function_static_stack_size.
34405 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
34407         PR tree-optimization/56029
34408         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
34409         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
34411 2013-01-18  Sharad Singhai  <singhai@google.com>
34413         PR tree-optimization/55995
34414         * dumpfile.c (dump_loc): Print location only if available.
34415         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
34417 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
34419         PR target/55433
34420         * lra-constraints.c (curr_insn_transform): Reuse original insn for
34421         secondary memory move.
34422         (inherit_reload_reg): Use rclass instead of cl for
34423         check_secondary_memory_needed_p.
34425 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
34427         PR middle-end/56015
34428         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
34429         the case where writing real complex part of target modifies op1.
34431 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
34433         * config/aarch64/aarch64-simd.md
34434         (aarch64_vcond_internal<mode>): Handle unordered cases.
34435         * config/aarch64/iterators.md (v_cmp_result): New.
34437 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
34438             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34440         * config/arm/marvell-pj4.md: New file.
34441         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
34442         * config/arm/arm.md (generic_sched): Add marvell_pj4.
34443         (generic_vfp): Likewise.
34444         * config/arm/arm-cores.def: Add marvell-pj4.
34445         * config/arm/arm-tune.md: Regenerate.
34446         * config/arm/arm-tables.opt: Regenerate.
34447         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
34448         * doc/invoke.texi: Document marvell-pj4.
34450 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
34452         * config/aarch64/arm_neon.h: Map scalar types to standard types.
34454 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
34456         PR debug/54114
34457         PR debug/54402
34458         PR debug/49888
34459         * var-tracking.c (negative_power_of_two_p): New.
34460         (global_get_addr_cache, local_get_addr_cache): New.
34461         (get_addr_from_global_cache, get_addr_from_local_cache): New.
34462         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
34463         heading comment.
34464         (vt_stack_offset_p): Remove.
34465         (vt_canon_true_dep): Always canonicalize loc's address.
34466         (clobber_overlapping_mems): Make sure we have a MEM.
34467         (local_get_addr_clear_given_value): New.
34468         (val_reset): Clear local cached entries.
34469         (compute_bb_dataflow): Create and release the local cache.
34470         Disable duplicate MEMs clobbering.
34471         (emit_notes_in_bb): Clobber MEMs likewise.
34472         (vt_emit_notes): Create and release the local cache.
34473         (vt_initialize, vt_finalize): Create and release the global
34474         cache, respectively.
34475         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
34477 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
34479         PR libmudflap/53359
34480         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
34481         not found in the symtab.
34483 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
34485         PR debug/56006
34486         PR rtl-optimization/55547
34487         PR rtl-optimization/53827
34488         PR debug/53671
34489         PR debug/49888
34490         * alias.c (offset_overlap_p): New, factored out of...
34491         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
34492         the conservative special case for symbolic constants.  Don't
34493         adjust zero sizes on alignment.
34495 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
34497         PR rtl-optimization/52573
34498         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
34499         REG_UNUSED for the same register.
34501 2013-01-17  Richard Biener  <rguenther@suse.de>
34502             Marek Polacek  <polacek@redhat.com>
34504         PR rtl-optimization/55833
34505         * loop-unswitch.c (unswitch_loops): Move loop verification...
34506         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
34507         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
34508         Set it to true when we're removing a loop from hierarchy tree in
34509         an irreducible region.
34510         (fix_bb_placements): Adjust caller.
34511         (fix_loop_placements): Likewise.
34513 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
34515         * config/avr/builtins.def (DEF_BUILTIN): Factor out
34516         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
34517         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
34518         Remove ID.  Adjust comments.
34519         * config/avr/avr-c.c (avr_builtin_name): Remove.
34520         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
34521         * config/avr/avr.c (avr_tolower): New static function.
34522         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
34523         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
34524         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
34525         default expansion.
34527 2013-01-17  Jan Hubicka  <jh@suse.cz>
34529         PR tree-optimization/55273
34530         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
34532 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
34534         PR target/55981
34535         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
34536         store through atomic_store<mode>_1.
34537         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
34539 2013-01-17  Martin Jambor  <mjambor@suse.cz>
34541         PR tree-optimizations/55264
34542         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
34543         for virtual methods.
34544         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
34545         virtual methods before inlining is over.
34546         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
34547         virtual functions.
34548         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
34549         non-virtual.
34551 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
34553         PR rtl-optimization/56005
34554         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
34555         pending reads for prefetch.
34557 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
34559         * config/aarch64/aarch64.md
34560         (*cstoresi_neg_uxtw): New pattern.
34561         (*cmovsi_insn_uxtw): New pattern.
34562         (*<optab>si3_uxtw): New pattern.
34563         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
34564         (*<optab>si3_insn_uxtw): New pattern.
34565         (*bswapsi2_uxtw): New pattern.
34567 2013-01-16  Richard Biener  <rguenther@suse.de>
34569         * tree-inline.c (tree_function_versioning): Remove set but
34570         never used variable.
34572 2013-01-16  Richard Biener  <rguenther@suse.de>
34574         PR tree-optimization/55964
34575         * tree-flow.h (rename_variables_in_loop): Remove.
34576         (rename_variables_in_bb): Likewise.
34577         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
34578         (copy_loop_before): Adjust and delete update-ssa status.
34579         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
34580         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
34581         (rename_variables_in_loop): Remove.
34582         (slpeel_update_phis_for_duplicate_loop): Likewise.
34583         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
34584         use available cfg machinery instead of duplicating it.
34585         Update PHI nodes and perform poor-mans SSA update here.
34586         (slpeel_tree_peel_loop_to_edge): Adjust.
34588 2013-01-16  Richard Biener  <rguenther@suse.de>
34590         PR tree-optimization/54767
34591         PR tree-optimization/53465
34592         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
34593         (vrp_visit_phi_node): For PHI arguments coming via backedges
34594         drop all symbolical range information.
34595         (execute_vrp): Compute backedges.
34597 2013-01-16  Richard Biener  <rguenther@suse.de>
34599         * doc/install.texi: Update CLooG and ISL requirements to
34600         0.18.0 and 0.11.1.
34602 2013-01-16  Christian Bruel  <christian.bruel@st.com>
34604         PR target/55301
34605         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
34606         (broken_move): Handle UNSPECV_SP_SWITCH_B.
34607         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
34609 2013-01-16  DJ Delorie  <dj@redhat.com>
34611         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
34612         (UNSPECV_SP_SWITCH_E): New.
34613         (sp_switch_1): Change to an unspec.
34614         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
34615         replace $r15.
34617 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
34619         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
34620         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
34621         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
34622         (expand_mem_thread_fence): Ditto.
34623         (expand_mem_signal_fence): Ditto.
34624         (expand_atomic_load): Ditto.
34625         (expand_atomic_store): Ditto.
34627 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
34629         PR rtl-optimization/55547
34630         PR rtl-optimization/53827
34631         PR debug/53671
34632         PR debug/49888
34633         * alias.c (memrefs_conflict_p): Set sizes to negative after
34634         AND adjustments.
34636 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
34638         PR target/55940
34639         * function.c (thread_prologue_and_epilogue_insns): Always
34640         add crtl->drap_reg to set_up_by_prologue.set, even if
34641         stack_realign_drap is false.
34643 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34645         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
34646         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
34647         *call): Fix indention.
34649 2013-01-15  Tom de Vries  <tom@codesourcery.com>
34651         PR target/55876
34652         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
34653         Update comment.
34655 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
34657         PR rtl-optimization/55153
34658         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
34660 2013-01-15  Martin Jambor  <mjambor@suse.cz>
34662         PR tree-optimization/55920
34663         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
34664         accesses as grp_to_be_debug_replaced.
34666 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
34668         PR tree-optimization/55920
34669         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
34670         there is non-useless type conversion needed from debug rhs to lhs,
34671         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
34673 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
34674             Mikael Pettersson  <mikpe@it.uu.se>
34676         PR target/43961
34677         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
34678         Thumb.
34679         (ASM_OUTPUT_CASE_LABEL): Remove.
34680         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
34681         * final.c (shorten_branches): Update alignment of labels before
34682         jump tables if CASE_VECTOR_SHORTEN_MODE.
34684 2013-01-15  Richard Biener  <rguenther@suse.de>
34686         PR bootstrap/55961
34687         * system.h: Do not include gmp.h for building host tools.
34689 2013-01-15  Richard Biener  <rguenther@suse.de>
34691         PR middle-end/55882
34692         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
34693         account for bitpos when computing alignment.
34695 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
34697         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
34698         (ix86_target_macros_internal): Likewise.
34700         * config/i386/i386.c (m_CORE2I7): Removed.
34701         (m_CORE_HASWELL): New macro.
34702         (m_CORE_ALL): Likewise.
34703         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
34704         (initial_ix86_arch_features): Likewise.
34705         (processor_target_table): Initializations for Core avx2.
34706         (cpu_names): New names "core-avx2".
34707         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
34708         PROCESSOR_CORE_HASWELL.
34709         (ix86_issue_rate): New case.
34710         (ia32_multipass_dfa_lookahead): Likewise.
34711         (ix86_sched_init_global): Likewise.
34713         * config/i386/i386.h (TARGET_HASWELL): New macro.
34714         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
34715         (processor_type): New PROCESSOR_HASWELL.
34717 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
34719         PR tree-optimization/55955
34720         * tree-vect-loop.c (vectorizable_reduction): Give up early on
34721         *SHIFT_EXPR and *ROTATE_EXPR codes.
34723         PR tree-optimization/48766
34724         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
34725         -ftrapv disable -fwrapv.
34727 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34729         PR target/55974
34730         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
34731         etc. to 1 and not to __flash.
34732         Use LL suffix for __INT24_MAX__ with -mint8.
34733         Use ULL suffix for __UINT24_MAX__ with -mint8.
34735 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34737         * config/avr/avr-arch.h
34738         (struct base_arch_s): Use typedef avr_arch_t instead.
34739         (struct arch_info_s): Use typedef avr_arch_info_t instead.
34740         (struct mcu_type_s): Use typedef avr_mcu_t instead.
34741         * config/avr/avr.c: Same.
34742         * config/avr/avr-devices.c: Same.
34743         * config/avr/driver-avr.c: Same.
34744         * config/avr/gen-avr-mmcu-texi.c: Same.
34745         * config/avr/avr-mcus.def: Adjust comment.
34747 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
34749         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
34750         * config/aarch64/iterators.md (VALLDI): New.
34752 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
34753             Andi Kleen  <ak@linux.intel.com>
34755         PR target/55948
34756         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
34757         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
34758         memmodel flag.
34760 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34762         * config/avr/avr-stdint.h: Remove trailing blanks.
34763         * config/avr/avr-log.h: Same.
34764         * config/avr/avr-arch.h: Same.
34765         * config/avr/avr-devices.c: Same.
34766         * config/avr/avr-dimode.md: Same.
34767         * config/avr/predicates.md: Same.
34768         * config/avr/avr-c.c: Same.  And fix typo.
34770         * config/avr/avr-protos.h: Same.  And:
34771         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
34772         (init_cumulative_args): Rename to avr_init_cumulative_args.
34773         (expand_prologue): Rename to avr_expand_prologue.
34774         (expand_epilogue): Rename to avr_expand_epilogue.
34775         (adjust_insn_length): Rename to avr_adjust_insn_length.
34776         (notice_update_cc): Rename to avr_notice_update_cc.
34777         (final_prescan_insn): Rename to avr_final_prescan_insn.
34778         * config/avr/avr.c: Same.
34779         * config/avr/avr.h: Same.
34780         * config/avr/avr.md: Remove trailing blanks.
34781         (prologue): Use avr_expand_prologue.
34782         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
34784 2013-01-14  Richard Biener  <rguenther@suse.de>
34786         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
34787         verify_location, collect_subblocks): New functions.
34788         (verify_gimple_in_cfg): Verify that locations only reference
34789         BLOCKs in the functions BLOCK tree.
34791 2013-01-14  Richard Biener  <rguenther@suse.de>
34793         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
34794         PHI argument.
34795         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
34796         unshare reference.
34797         (insert_out_of_ssa_copy_on_edge): Likewise.
34798         (rewrite_close_phi_out_of_ssa): Likewise.
34799         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
34800         debug expressions.
34801         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
34802         propagated constants.
34803         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
34804         can not be shared.
34806 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34808         * config/avr/avr-modes.def: Add GPL copyright notice.
34810 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
34812         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
34813         MEMMODEL_MASK to determine memory model.
34814         (atomic_store<mode>): Ditto from operands[2].
34815         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
34817 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
34819         PR fortran/55935
34820         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
34821         (fold_gimple_assign): Don't call unshare_expr here.
34822         (fold_ctor_reference): Call unshare_expr.
34824 2013-01-13  Terry Guo  <terry.guo@arm.com>
34826         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
34827         * doc/fragments.texi: Document MULTILIB_REUSE.
34828         * gcc.c (multilib_reuse): New internal spec.
34829         (set_multilib_dir): Also search multilib from multilib_reuse.
34830         * genmultilib (tmpmultilib3): Refactor code.
34831         (tmpmultilib4): Ditto.
34832         (multilib_reuse): New multilib argument.
34834 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
34836         * Makefile.in: Update copyright.
34838 2013-01-12  Tom de Vries  <tom@codesourcery.com>
34840         PR middle-end/55890
34841         * calls.c (expand_call): Check if arg_nr is valid.
34843 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
34845         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
34846         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
34847         documentation.  Add missing '__' in front of
34848         __builtin_ia32_packssdw256.
34850 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34852         PR target/55719
34853         * config/s390/s390.c (s390_preferred_reload_class): Do not return
34854         NO_REGS for larl operands.
34855         (s390_reload_larl_operand): Use s390_load_address instead of
34856         emit_move_insn.
34858 2013-01-11  Richard Biener  <rguenther@suse.de>
34860         * tree-cfg.c (verify_node_sharing_1): Split out from ...
34861         (verify_node_sharing): ... here.
34862         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
34864 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
34866         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
34867         Substitute TREECHECKING.
34868         * configure: Regenerate.
34869         * Makefile.in (TREECHECKING): New.
34871 2013-01-11  Richard Guenther  <rguenther@suse.de>
34873         PR tree-optimization/44061
34874         * tree-vrp.c (extract_range_basic): Compute zero as
34875         value-range for __builtin_constant_p of function parameters.
34877 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
34879         Update copyright years.
34881 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
34883         PR rtl-optimization/55672
34884         * lra-eliminations.c (mark_not_eliminable): Permit addition with
34885         const to be eliminable.
34887 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
34889         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
34890         * configure: Regenerate.
34892 2013-01-10  Richard Biener  <rguenther@suse.de>
34894         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
34896 2013-01-10  Richard Biener  <rguenther@suse.de>
34898         PR bootstrap/55792
34899         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
34900         locations for virtual PHI arguments.
34901         (rewrite_update_phi_arguments): Likewise.
34903 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
34905         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
34906         on to assembler.
34908 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
34910         PR tree-optimization/55921
34911         * tree-complex.c (expand_complex_asm): New function.
34912         (expand_complex_operations_1): Call it for GIMPLE_ASM.
34914 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34916         PR target/55718
34917         * config/s390/s390.c (s390_symref_operand_p)
34918         (s390_loadrelative_operand_p): Merge the two functions.
34919         (s390_check_qrst_address, print_operand_address): Add parameters
34920         to s390_loadrelative_operand_p invokation.
34921         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
34922         (s390_reload_larl_operand, s390_secondary_reload): Use
34923         s390_loadrelative_operand_p instead of s390_symref_operand_p.
34924         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
34926 2013-01-09  Mike Stump  <mikestump@comcast.net>
34928         * dse.c (record_store): Remove unnecessary assert.
34930 2013-01-09  Jan Hubicka  <jh@suse.cz>
34932         PR tree-optimization/55569
34933         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
34934         * cfgloop.h (scale_loop_profile): Likewise.
34936 2013-01-09  Jan Hubicka  <jh@suse.cz>
34938         PR lto/45375
34939         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
34940         functions.
34941         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
34943 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
34945         PR middle-end/55114
34946         * expr.h (maybe_emit_group_store): Declare.
34947         * expr.c (maybe_emit_group_store): New function.
34948         * builtins.c (expand_builtin_int_roundingfn): Call it.
34949         (expand_builtin_int_roundingfn_2): Likewise.
34951 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
34953         PR rtl-optimization/55829
34954         * lra-constraints.c (match_reload): Add code for absent output.
34955         (curr_insn_transform): Add code for reloads of matched inputs
34956         without output.
34958 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
34960         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
34961         attribute of movddup insn to DF.
34962         (*vec_interleave_lowv2df): Ditto.
34963         (vec_dupv2df): Ditto.
34965 2013-01-09  Jan Hubicka  <jh@suse.cz>
34967         PR tree-optimiation/55875
34968         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
34969         EVERY_ITERATION parameter.
34970         (number_of_iterations_exit): Check if exit is executed every iteration.
34971         (idx_infer_loop_bounds): Similarly here.
34972         (n_of_executions_at_most): Simplify
34973         to only test for cases where statement is dominated by the
34974         particular bound; handle correctly the "postdominance" test.
34975         (scev_probably_wraps_p): Use max loop iterations info
34976         as a global bound first.
34978 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
34979             Nick Clifton  <nickc@redhat.com>
34981         * config/v850/v850.md (cbranchsf4): New pattern.
34982         (cstoresf4): New pattern.
34983         (cbranchdf4): New pattern.
34984         (cstoredf4): New pattern.
34985         (movsicc): Disallow floating point comparisons.
34986         (cmpsf_le_insn): Fix order of operators.
34987         (cmpsf_lt_insn): Likewise.
34988         (cmpsf_eq_insn): Likewise.
34989         (cmpdf_le_insn): Likewise.
34990         (cmpdf_lt_insn): Likewise.
34991         (cmpdf_eq_insn): Likewise.
34992         (cmpsf_ge_insn): Use LE comparison.
34993         (cmpdf_ge_insn): Likewise.
34994         (cmpsf_gt_insn): Use LT comparison.
34995         (cmpdf_gt_insn): Likewise.
34996         (cmpsf_ne_insn): Delete pattern.
34997         (cmpdf_ne_insn): Delete pattern.
34998         * config/v850/v850.c (v850_gen_float_compare): Use
34999         gen_cmpdf_eq_insn for NE comparison.
35000         (v850_float_z_comparison_operator)
35001         (v850_float_nz_comparison_operator): Move from here ...
35002         * config/v850/predicates.md: ... to here.  Move GT and GE
35003         comparisons into v850_float_z_comparison_operator.
35004         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
35005         Delete prototype.
35006         (v850_float_nz_comparison_operator): Likewise.
35008 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35010         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
35011         with calls to gen_insvsi/gen_insvdi.
35013 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35015         * config/i386/i386.c (initial_ix86_tune_features): Set up
35016         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
35018 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
35019             Jakub Jelinek  <jakub@redhat.com>
35021         PR tree-optimization/48189
35022         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
35023         If nitercst is 0, don't predict the exit edge.
35025 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35027         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
35028         in asm_fprintf with reg_names.
35029         (aarch64_print_operand_address): Likewise.
35030         (aarch64_return_addr): Likewise.
35031         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
35033 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35035         * config/pa/pa.h (VAL_U6_BITS_P): Define.
35036         (INT_U6_BITS): Likewise.
35037         * config/pa/predicates.md (uint6_operand): New predicate.
35038         (shift5_operand, shift6_operand): Likewise.
35039         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
35040         arith32_operand.
35041         (lshrdi3): Use shift6_operand.
35042         (shrpsi4, shrpdi4): New insn patterns.
35043         (extzv): Delete expander.
35044         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
35045         predicates in unamed zero extract patterns.  Tighten common constraint.
35046         (extv): Delete expander.
35047         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
35048         predicates in unamed sign extract patterns.  Tighten common constraint.
35049         (insv): Delete expander.
35050         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
35051         predicates in unamed insert patterns.  Tighten common constraint.
35052         Change uint32_operand predicate to uint6_operand predicate in unamed
35053         DImode pattern to insert constant values of type 1...1xxxx.
35055 2013-01-04  Jan Hubicka  <jh@suse.cz>
35057         PR tree-optimization/55823
35058         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
35059         issue.
35061 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35062             Uros Bizjak  <ubizjak@gmail.com>
35064         PR rtl-optimization/55845
35065         * df-problems.c (can_move_insns_across): Stop scanning at
35066         volatile_insn_p source instruction or give up if
35067         across_from .. across_to range contains any volatile_insn_p
35068         instructions.
35070 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
35072         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
35073         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
35074         Declare.
35075         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
35076         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
35078 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35080         PR fortran/55341
35081         * asan.c (asan_clear_shadow): New function.
35082         (asan_emit_stack_protection): Use it.
35084 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
35086         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
35087         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
35088         with tab instead of space.
35090 2013-01-08  Nick Clifton  <nickc@redhat.com>
35092         * config/rl78/rl78.c (rl78_expand_prologue): Always select
35093         register bank 0 at the start of an interrupt handler.
35094         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
35095         MDBH registers.
35097 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
35099         * config/aarch64/aarch64-simd.md
35100         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
35101         (aarch64_simd_bsl): Likewise.
35102         (aarch64_vcond_internal<mode>): Likewise.
35103         (vcond<mode><mode>): Likewise.
35104         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
35105         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
35107 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
35109         * config/aarch64/aarch64-builtins.c
35110         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
35112 2013-01-08  Martin Jambor  <mjambor@suse.cz>
35114         PR debug/55579
35115         * tree-sra.c (analyze_access_subtree): Return true also after
35116         potentially creating a debug-only replacement.
35118 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35120         PR middle-end/55890
35121         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
35123         PR tree-optimization/54120
35124         * tree-vrp.c (range_fits_type_p): Don't allow
35125         src_precision < precision from signed vr to unsigned_p
35126         if vr->min or vr->max is negative.
35127         (simplify_float_conversion_using_ranges): Test can_float_p
35128         against CODE_FOR_nothing.
35130 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35131             Richard Biener  <rguenther@suse.de>
35133         PR middle-end/55851
35134         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
35135         types instead of just INTEGER_TYPE types.
35137 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
35139         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
35140         TF_SIZE): Define.
35142 2013-01-07  Steve Ellcey  <sellcey@mips.com>
35144         PR target/42661
35145         * config/mips/mips.opt: Change mad to mmad to match documentation.
35147 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35149         PR target/55897
35150         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
35151         .progmemx.data now.
35153 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35155         PR target/55897
35156         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
35157         (avr_addrspace_t): Add .section_name field.
35158         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
35159         array size.
35160         (avr_addrspace): Same.  Initialize .section_name.  Remove last
35161         NULL entry.  Put __memx into .progmemx.data.
35162         (progmem_section_prefix): Remove.
35163         (avr_asm_init_sections): No need to initialize progmem_section.
35164         (avr_asm_named_section): Use avr_addrspace[].section_name to get
35165         section name prefix.
35166         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
35167         retrieve the progmem section.
35168         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
35169         boundary to run over avr_addrspace[].
35170         (avr_register_target_pragmas): Ditto.
35172 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
35174         * varasm.c (output_constant_def_contents): For asan_protect_global
35175         protected strings, adjust DECL_ALIGN if needed, before testing for
35176         anchored symbols.
35177         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
35178         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
35179         normal decls.
35180         (output_object_block): For asan protected decls, emit asan padding
35181         after their contents.
35182         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
35183         (asan_finish_file): Test it here instead.
35185 2013-01-07  Nick Clifton  <nickc@redhat.com>
35186             Matthias Klose  <doko@debian.org>
35187             Doug Kwan  <dougkwan@google.com>
35188             H.J. Lu  <hongjiu.lu@intel.com>
35190         PR driver/55470
35191         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
35193         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
35195         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
35197         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
35199         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
35201 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35203         PR target/54461
35204         * doc/install.texi (Cross-Compiler-Specific Options): Document
35205         --with-avrlibc.
35207 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
35209         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
35210         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
35211         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
35212         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
35213         vqmovun_high_s64): Fix source operand number and update copyright.
35215 2013-01-07  Richard Biener  <rguenther@suse.de>
35217         PR middle-end/55890
35218         * gimple.h (gimple_call_builtin_p): New overload.
35219         * gimple.c (validate_call): New function.
35220         (gimple_call_builtin_p): Likewise.
35221         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35222         Use gimple_call_builtin_p.
35223         (find_func_clobbers): Likewise.
35224         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
35225         (strlen_optimize_stmt): Likewise.
35227 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35229         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
35230         (vld1q_dup_*): Likewise.
35231         (vld1_*): Likewise.
35232         (vld1q_*): Likewise.
35233         (vld1_lane_*): Likewise.
35234         (vld1q_lane_*): Likewise.
35236 2013-01-07  Richard Biener  <rguenther@suse.de>
35238         * lto-streamer.h (LTO_minor_version): Bump to 2.
35240 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35242         * config/aarch64/aarch64-protos.h
35243         (aarch64_const_double_zero_rtx_p): Rename to...
35244         (aarch64_float_const_zero_rtx_p): ...this.
35245         (aarch64_float_const_representable_p): New.
35246         (aarch64_output_simd_mov_immediate): Likewise.
35247         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
35248         move immediate case.
35249         * config/aarch64/aarch64.c
35250         (aarch64_const_double_zero_rtx_p): Rename to...
35251         (aarch64_float_const_zero_rtx_p): ...this.
35252         (aarch64_print_operand): Allow printing of new constants.
35253         (aarch64_valid_floating_const): New.
35254         (aarch64_legitimate_constant_p): Check for valid floating-point
35255         constants.
35256         (aarch64_simd_valid_immediate): Likewise.
35257         (aarch64_vect_float_const_representable_p): New.
35258         (aarch64_float_const_representable_p): Likewise.
35259         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
35260         (aarch64_output_simd_mov_immediate): New.
35261         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
35262         (*movdf_aarch64): Likewise.
35263         * config/aarch64/constraints.md (Ufc): New.
35264         (Y): call aarch64_float_const_zero_rtx.
35265         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
35267 2013-01-07  Richard Biener  <rguenther@suse.de>
35269         PR tree-optimization/55888
35270         PR tree-optimization/55862
35271         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
35272         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
35273         not if it is contained therein.
35275 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35277         * config/avr/t-avr: Typo.
35279 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35281         PR55243
35282         * config/avr/t-avr: Don't automatically rebuild
35283         $(srcdir)/config/avr/t-multilib
35284         $(srcdir)/config/avr/avr-tables.opt
35285         $(srcdir)/doc/avr-mmcu.texi
35286         (avr-mcus): New phony target to build them on request.
35287         (s-avr-mlib, s-avr-mmcu-texi): Remove.
35288         * avr/avr-mcus.def: Adjust comments.
35290 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
35292         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
35294 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
35296         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
35298 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
35300         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
35302 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
35304         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
35305         to generate profiling.
35306         * config/rs6000/aix64.h (LIB_SPEC): Same.
35308 2013-01-04  Andrew Pinski  <apinski@cavium.com>
35310         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
35311         New function.
35312         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
35314 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
35316         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
35317         unconditionally.
35318         (ix86_expand_move): Ditto.
35319         (ix86_zero_extend_to_Pmode): Ditto.
35320         (ix86_expand_call): Ditto.
35321         (ix86_expand_special_args_builtin): Ditto.
35322         (ix86_expand_builtin): Ditto.
35324 2013-01-04  Richard Biener  <rguenther@suse.de>
35326         PR tree-optimization/55862
35327         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
35328         translating them through PHI nodes.
35330 2013-01-04  Martin Jambor  <mjambor@suse.cz>
35332         PR tree-optimization/55755
35333         * tree-sra.c (sra_modify_assign): Do not check that an access has no
35334         children when trying to avoid producing a VIEW_CONVERT_EXPR.
35336 2013-01-04  Marek Polacek  <polacek@redhat.com>
35338         PR middle-end/55859
35339         * opts.c (default_options_optimization): Clarify error message.
35341 2013-01-04  Richard Biener  <rguenther@suse.de>
35343         PR middle-end/55863
35344         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
35345         reassociation.
35347 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35349         PR target/53789
35350         * config/pa/pa.md (movsi): Revert previous change.
35351         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
35352         references.
35354 2013-01-03  Richard Henderson  <rth@redhat.com>
35356         * config/i386/i386.c (ix86_expand_move): Always assign to op1
35357         after eliminating TLS symbols.
35359 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
35361         PR bootstrap/50167
35362         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
35363         * graphite-poly.c (debug_gmp_value): Likewise.
35365 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
35367         PR target/55712
35368         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
35369         selected code model, define __code_mode_small__, __code_model_medium__,
35370         __code_model_large__, __code_model_32__ or __code_model_kernel__.
35371         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
35372         xchg temporary register with %k.  Declare temporary register as
35373         early clobbered.
35374         [__x86_64__]: For medium and large code models, preserve %rbx register.
35376 2013-01-03  Richard Biener  <rguenther@suse.de>
35378         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
35379         (dump_subscript): Adjust.
35380         (finalize_ddr_dependent): Do not dump redundant info.
35381         (analyze_siv_subscript): Adjust.
35382         (subscript_dependence_tester): Likewise.
35383         (compute_affine_dependence): Likewise.
35385 2013-01-03  Richard Biener  <rguenther@suse.de>
35387         Revert
35388         2013-01-03  Richard Biener  <rguenther@suse.de>
35390         PR tree-optimization/55857
35391         * tree-vect-stmts.c (vectorizable_load): Do not setup
35392         re-alignment for invariant loads.
35394         2013-01-02  Richard Biener  <rguenther@suse.de>
35396         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
35397         invariant load do not generate a vector load from the scalar location.
35399 2013-01-03  Richard Biener  <rguenther@suse.de>
35401         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
35402         for not vectorizing.
35403         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
35404         not build INDIRECT_REFs, call get_name once only.
35405         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
35406         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
35408 2013-01-03  Richard Biener  <rguenther@suse.de>
35410         PR tree-optimization/55857
35411         * tree-vect-stmts.c (vectorizable_load): Do not setup
35412         re-alignment for invariant loads.
35414 2013-01-03  Richard Biener  <rguenther@suse.de>
35416         PR lto/55848
35417         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
35418         prefer a built-in decl.
35420 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35422         * gcc.c (process_command): Update copyright notice dates.
35423         * gcov.c (print_version): Likewise.
35424         * gcov-dump.c (print_version): Likewise.
35426         PR rtl-optimization/55838
35427         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
35428         iv0.step, iv1.step and step.
35430 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35431             Marc Glisse  <marc.glisse@inria.fr>
35433         PR tree-optimization/55832
35434         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
35435         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
35436         integer_{one,zero}_node.
35438 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35440         PR debug/54402
35441         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
35442         * var-tracking.c (reverse_op): Don't add reverse ops to
35443         VALUEs that have already
35444         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
35446 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
35448         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
35450 2013-01-02  Teresa Johnson  <tejohnson@google.com>
35452         * dumpfile.c (dump_loc): Print filename with location.
35453         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
35454         new location_t parameter to emit complete unroll message with
35455         new dump framework.
35456         (canonicalize_loop_induction_variables): Compute loops location
35457         and pass to try_unroll_loop_completely.
35458         * loop-unroll.c (report_unroll_peel): New function.
35459         (peel_loops_completely): Use new dump format with location
35460         for main dumpfile message, and invoke report_unroll_peel on success.
35461         (decide_unrolling_and_peeling): Ditto.
35462         (decide_peel_once_rolling): Remove old dumpfile message subsumed
35463         by report_unroll_peel.
35464         (decide_peel_completely): Ditto.
35465         (decide_unroll_constant_iterations): Ditto.
35466         (decide_unroll_runtime_iterations): Ditto.
35467         (decide_peel_simple): Ditto.
35468         (decide_unroll_stupid): Ditto.
35469         * cfgloop.c (get_loop_location): New function.
35470         * cfgloop.h (get_loop_location): Declare.
35472 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
35474         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
35475         NULL.
35477 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35479         PR middle-end/55198
35480         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
35481         BLKmode objects when EXPAND_MEMORY is specified.
35483 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
35485         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
35486         in loop predicate.
35487         (fold_builtin_cpu): Do not share cpu model decls across statements.
35489 2013-01-02  Jason Merrill  <jason@redhat.com>
35491         PR c++/55804
35492         * tree.c (build_array_type_1): Revert earlier change.
35494 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
35496         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
35497         "cortex-a57".
35498         * config/aarch64/aarch64-tune.md: Re-generate.
35500 2013-01-02  Richard Biener  <rguenther@suse.de>
35502         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
35503         invariant load do not generate a vector load from the scalar location.
35505 2013-01-02  Richard Biener  <rguenther@suse.de>
35507         PR bootstrap/55784
35508         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
35509         * configure: Regenerate.
35511 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35513         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
35514         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
35515         (expand_builtin_int_roundingfn_2): Keep the original target around
35516         for the fallback case.
35518 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35520         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
35521         to be clear for sign changes.
35523 2013-01-01  Jan Hubicka  <jh@suse.cz>
35525         * ipa-inline-analysis.c: Fix formatting.
35527 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
35529         PR tree-optimization/55831
35530         * tree-vect-loop.c (get_initial_def_for_induction): Use
35531         gsi_after_labels instead of gsi_start_bb.
35533 Copyright (C) 2013 Free Software Foundation, Inc.
35535 Copying and distribution of this file, with or without modification,
35536 are permitted in any medium without royalty provided the copyright
35537 notice and this notice are preserved.