* config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
[official-gcc.git] / gcc / ChangeLog
blobc4f56ba6fbd57df73d85d3ab3c4e920b57ff434c
1 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
3         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
4         (rs6000_xcoff_select_section): Place decls with stricter alignment
5         into named sections.
6         (rs6000_xcoff_unique_section): Allow unique sections for
7         uninitialized data with strict alignment.
9 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
11         PR tree-optimization/59154
12         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
13         rhs1 of a cast and new_op is invariant, fold_convert it.
14         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
15         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
17 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
19         PR target/56788
20         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
21         Declare as MULTI_ARG_1_SF instruction.
22         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
23         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
24         from *xop_vmfrcz_<mode>.
25         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
26         to merge scalar result with __A.
27         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
28         result with __A.
30 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
32         * gimplify.h (recalculate_side_effects): Delete.
33         * gimplify.c (recalculate_side_effects): Make static and add comment.
35 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
37         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
38         for the destination of a define_peephole2.  Likewise register_operand
39         rather than arith_reg_operand.  Remove constraints from
40         define_peephole2s.
42 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
44         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
45         Delete.
46         (mn10300_store_multiple_operation_p): Declare.
47         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
48         Rename to...
49         (mn10300_store_multiple_operation_p): ...this and remove mode
50         argument.
51         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
52         Define.
54 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
56         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
57         (pop_multiple_operation): Delete.
58         (analyze_push_multiple_operation): Declare.
59         (analyze_pop_multiple_operation): Declare.
60         * config/bfin/bfin.c (push_multiple_operation): Rename to...
61         (analyze_push_multiple_operation): ...this and remove mode argument.
62         (pop_multiple_operation): Rename to...
63         (analyze_pop_multiple_operation): ...this and remove mode argument.
64         * config/bfin/predicates.md (push_multiple_operation): Define.
65         (pop_multiple_operation): Likewise.
67 2013-11-23  Alan Modra  <amodra@gmail.com>
69         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
71 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
73         PR sanitizer/59061
74         * common.opt (static-liblsan): Add.
75         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
76         Define.
77         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
78         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
79         SANITIZE_RETURN.
80         * opts.c (common_handle_option): Handle -fsanitize=leak.
81         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
82         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
83         (LIBUBSAN_EARLY_SPEC): Remove.
84         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
85         (SANITIZER_SPEC): Add -fsanitize=leak handling.
86         (sanitize_spec_function): Handle %sanitize(leak).
87         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
89 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
90             Jakub Jelinek  <jakub@redhat.com>
92         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
93         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
94         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
95         (ipa_modify_formal_parameters): Adjust caller.  Remove
96         synth_parm_prefix argument.  Use operator enum instead of bit fields.
97         Add assert for properly handling vector of references.  Handle
98         creating brand new parameters.
99         (ipa_modify_call_arguments): Use operator enum instead of bit
100         fields.
101         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
102         used.
103         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
104         New functions.
105         (ipa_dump_param_adjustments): Rename reduction to new_decl.
106         Use operator enum instead of bit fields.
107         * ipa-prop.h (enum ipa_parm_op): New.
108         (struct ipa_parm_adjustment): New field op.  Rename reduction
109         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
110         and copy_param.
111         (ipa_modify_formal_parameters): Remove last argument.
112         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
113         ipa_get_adjustment_candidate): New prototypes.
114         * tree-sra.c (turn_representatives_into_adjustments): Use operator
115         enum.  Set arg_prefix.
116         (get_adjustment_for_base): Use operator enum.
117         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
118         ipa-prop.c.
119         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
120         (ipa_sra_modify_function_body): Same.  No longer static.
121         (sra_ipa_reset_debug_stmts): Use operator enum.
122         (modify_function): Do not pass prefix argument.
124 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
126         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
127         (ubsan_pass): Ignore clobber stmts.
129         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
130         * opts.c (common_handle_option): Add -fsanitize=return.
131         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
132         or it into SANITIZE_UNDEFINED.
134         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
135         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
136         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
137         Don't instrument accesses to VAR_DECLs which are known to fit
138         into their bounds and the vars are known to have shadow bytes
139         indicating allowed access.
140         (asan_dynamic_init_call): New function.
141         (asan_add_global): If vnode->dynamically_initialized,
142         set __has_dynamic_init to 1 instead of 0.
143         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
144         * asan.h (asan_dynamic_init_call): New prototype.
145         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
147 2013-11-22  Martin Jambor  <mjambor@suse.cz>
149         PR rtl-optimization/10474
150         * ira.c (interesting_dest_for_shprep_1): New function.
151         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
152         also check parallels.
154 2013-11-22  Jeff Law  <law@redhat.com>
156         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
157         NULL for RHS, which we used to invalidate equivalences.
158         (record_temporary_equivalences_from_phis): New bitmap arguments
159         and a boolean indicating if we have passed a backedge.  If we
160         have passed a backedge, then set the appropriate bit in the
161         bitmaps for the SRC & DEST of PHIs creating equivalences.
162         (invalidate_equivalences, dummy_simplify): New functions.
163         (cond_arg_set_in_b): Remove.
164         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
165         arguments and a boolean indicating if we have passed a backedge.
166         If we have passed a backedge, then perform invalidations as needed.
167         (thread_around_empty_blocks): If we have seen a backedge, then
168         use the dummy simplify routine.
169         (thread_through_normal_block): Likewise.  Pass bitmaps and
170         backedge status to children.  Do not pessimize so much when
171         traversing backedges in the CFG.
172         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
173         If we have seen a backedge, then use the dummy simplify routine.
174         Do not pessimize so much when traversing backedges.
176 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
178         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
179         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
181 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
183         * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
184         PTA_PCLMUL and PTA_RDRND for Silvermont.
185         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
186         for Silvermont.
188         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
190 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
192         * hooks.h (hook_uint_mode_0): Add Prototype.
193         * hooks.c (hook_uint_mode_0): New default function.
194         * target.def (atomic_align_for_mode): New target hook.
195         * tree.c (build_atomic_base): Add alignment override parameter.
196         (build_common_tree_nodes): Use atomic alignment override.
197         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
198         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
200 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
202         * gimple.h: Remove all includes.
203         (recalculate_side_effects): Move prototype to gimplify.h.
204         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
205         * gengtype.c (open_base_files): Add gimple.h include list.
206         * gimplify.h (recalculate_side_effects): Relocate prototype here.
207         * gimple.c: Adjust include list.
208         (recalculate_side_effects): Move to gimplify.c.
209         * gimplify.c: Adjust include list.
210         (recalculate_side_effects): Relocate from gimple.c.
211         * alias.c: Add required include files removed from gimple.h.
212         * asan.c: Likewise.
213         * builtins.c: Likewise.
214         * calls.c: Likewise.
215         * cfgexpand.c: Likewise.
216         * cfgloop.c: Likewise.
217         * cfgloopmanip.c: Likewise.
218         * cgraphbuild.c: Likewise.
219         * cgraph.c: Likewise.
220         * cgraphclones.c: Likewise.
221         * cgraphunit.c: Likewise.
222         * cilk-common.c: Likewise.
223         * data-streamer.c: Likewise.
224         * data-streamer-in.c: Likewise.
225         * data-streamer-out.c: Likewise.
226         * dse.c: Likewise.
227         * dwarf2out.c: Likewise.
228         * emit-rtl.c: Likewise.
229         * except.c: Likewise.
230         * expr.c: Likewise.
231         * fold-const.c: Likewise.
232         * function.c: Likewise.
233         * gimple-builder.c: Likewise.
234         * gimple-expr.c: Likewise.
235         * gimple-fold.c: Likewise.
236         * gimple-iterator.c: Likewise.
237         * gimple-low.c: Likewise.
238         * gimple-pretty-print.c: Likewise.
239         * gimple-ssa-isolate-paths.c: Likewise.
240         * gimple-ssa-strength-reduction.c: Likewise.
241         * gimple-streamer-in.c: Likewise.
242         * gimple-streamer-out.c: Likewise.
243         * gimple-walk.c: Likewise.
244         * gimplify-me.c: Likewise.
245         * graphite-blocking.c: Likewise.
246         * graphite.c: Likewise.
247         * graphite-clast-to-gimple.c: Likewise.
248         * graphite-dependences.c: Likewise.
249         * graphite-interchange.c: Likewise.
250         * graphite-optimize-isl.c: Likewise.
251         * graphite-poly.c: Likewise.
252         * graphite-scop-detection.c: Likewise.
253         * graphite-sese-to-poly.c: Likewise.
254         * internal-fn.c: Likewise.
255         * ipa.c: Likewise.
256         * ipa-cp.c: Likewise.
257         * ipa-devirt.c: Likewise.
258         * ipa-inline-analysis.c: Likewise.
259         * ipa-inline.c: Likewise.
260         * ipa-profile.c: Likewise.
261         * ipa-prop.c: Likewise.
262         * ipa-pure-const.c: Likewise.
263         * ipa-reference.c: Likewise.
264         * ipa-split.c: Likewise.
265         * ipa-utils.c: Likewise.
266         * langhooks.c: Likewise.
267         * lto-cgraph.c: Likewise.
268         * lto-compress.c: Likewise.
269         * lto-opts.c: Likewise.
270         * lto-section-in.c: Likewise.
271         * lto-section-out.c: Likewise.
272         * lto-streamer.c: Likewise.
273         * lto-streamer-in.c: Likewise.
274         * lto-streamer-out.c: Likewise.
275         * omp-low.c: Likewise.
276         * opts-global.c: Likewise.
277         * passes.c: Likewise.
278         * predict.c: Likewise.
279         * profile.c: Likewise.
280         * sese.c: Likewise.
281         * stmt.c: Likewise.
282         * stor-layout.c: Likewise.
283         * symtab.c: Likewise.
284         * targhooks.c: Likewise.
285         * toplev.c: Likewise.
286         * tracer.c: Likewise.
287         * trans-mem.c: Likewise.
288         * tree-affine.c: Likewise.
289         * tree.c: Likewise.
290         * tree-call-cdce.c: Likewise.
291         * tree-cfg.c: Likewise.
292         * tree-cfgcleanup.c: Likewise.
293         * tree-chrec.c: Likewise.
294         * tree-complex.c: Likewise.
295         * tree-data-ref.c: Likewise.
296         * tree-dfa.c: Likewise.
297         * tree-eh.c: Likewise.
298         * tree-emutls.c: Likewise.
299         * tree-if-conv.c: Likewise.
300         * tree-inline.c: Likewise.
301         * tree-into-ssa.c: Likewise.
302         * tree-loop-distribution.c: Likewise.
303         * tree-nested.c: Likewise.
304         * tree-nrv.c: Likewise.
305         * tree-object-size.c: Likewise.
306         * tree-outof-ssa.c: Likewise.
307         * tree-parloops.c: Likewise.
308         * tree-phinodes.c: Likewise.
309         * tree-predcom.c: Likewise.
310         * tree-pretty-print.c: Likewise.
311         * tree-profile.c: Likewise.
312         * tree-scalar-evolution.c: Likewise.
313         * tree-sra.c: Likewise.
314         * tree-ssa-address.c: Likewise.
315         * tree-ssa-alias.c: Likewise.
316         * tree-ssa.c: Likewise.
317         * tree-ssa-ccp.c: Likewise.
318         * tree-ssa-coalesce.c: Likewise.
319         * tree-ssa-copy.c: Likewise.
320         * tree-ssa-copyrename.c: Likewise.
321         * tree-ssa-dce.c: Likewise.
322         * tree-ssa-dom.c: Likewise.
323         * tree-ssa-dse.c: Likewise.
324         * tree-ssa-forwprop.c: Likewise.
325         * tree-ssa-ifcombine.c: Likewise.
326         * tree-ssa-live.c: Likewise.
327         * tree-ssa-loop.c: Likewise.
328         * tree-ssa-loop-ch.c: Likewise.
329         * tree-ssa-loop-im.c: Likewise.
330         * tree-ssa-loop-ivcanon.c: Likewise.
331         * tree-ssa-loop-ivopts.c: Likewise.
332         * tree-ssa-loop-manip.c: Likewise.
333         * tree-ssa-loop-niter.c: Likewise.
334         * tree-ssa-loop-prefetch.c: Likewise.
335         * tree-ssa-loop-unswitch.c: Likewise.
336         * tree-ssa-math-opts.c: Likewise.
337         * tree-ssanames.c: Likewise.
338         * tree-ssa-operands.c: Likewise.
339         * tree-ssa-phiopt.c: Likewise.
340         * tree-ssa-phiprop.c: Likewise.
341         * tree-ssa-pre.c: Likewise.
342         * tree-ssa-propagate.c: Likewise.
343         * tree-ssa-reassoc.c: Likewise.
344         * tree-ssa-sccvn.c: Likewise.
345         * tree-ssa-sink.c: Likewise.
346         * tree-ssa-strlen.c: Likewise.
347         * tree-ssa-structalias.c: Likewise.
348         * tree-ssa-tail-merge.c: Likewise.
349         * tree-ssa-ter.c: Likewise.
350         * tree-ssa-threadedge.c: Likewise.
351         * tree-ssa-threadupdate.c: Likewise.
352         * tree-ssa-uncprop.c: Likewise.
353         * tree-ssa-uninit.c: Likewise.
354         * tree-stdarg.c: Likewise.
355         * tree-streamer.c: Likewise.
356         * tree-streamer-in.c: Likewise.
357         * tree-streamer-out.c: Likewise.
358         * tree-switch-conversion.c: Likewise.
359         * tree-tailcall.c: Likewise.
360         * tree-vect-data-refs.c: Likewise.
361         * tree-vect-generic.c: Likewise.
362         * tree-vect-loop.c: Likewise.
363         * tree-vect-loop-manip.c: Likewise.
364         * tree-vectorizer.c: Likewise.
365         * tree-vect-patterns.c: Likewise.
366         * tree-vect-slp.c: Likewise.
367         * tree-vect-stmts.c: Likewise.
368         * tree-vrp.c: Likewise.
369         * tsan.c: Likewise.
370         * ubsan.c: Likewise.
371         * value-prof.c: Likewise.
372         * varpool.c: Likewise.
373         * var-tracking.c: Likewise.
374         * vtable-verify.c: Likewise.
375         * config/darwin.c: Likewise.
376         * config/aarch64/aarch64-builtins.c: Likewise.
377         * config/aarch64/aarch64.c: Likewise.
378         * config/alpha/alpha.c: Likewise.
379         * config/i386/i386.c: Likewise.
380         * config/i386/winnt.c: Likewise.
381         * config/ia64/ia64.c: Likewise.
382         * config/m32c/m32c.c: Likewise.
383         * config/mep/mep.c: Likewise.
384         * config/mips/mips.c: Likewise.
385         * config/rs6000/rs6000.c: Likewise.
386         * config/s390/s390.c: Likewise.
387         * config/sh/sh.c: Likewise.
388         * config/sparc/sparc.c: Likewise.
389         * config/spu/spu.c: Likewise.
390         * config/stormy16/stormy16.c: Likewise.
391         * config/tilegx/tilegx.c: Likewise.
392         * config/tilepro/tilepro.c: Likewise.
393         * config/xtensa/xtensa.c: Likewise.
395 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
397         PR target/59216
398         * arm.md (negdi_extendsidi): Fix invalid split.
400 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
402         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
403         (vmov_n_f64): Likewise.
404         (vmov_n_p8): Likewise.
405         (vmov_n_p16): Likewise.
406         (vmov_n_s8): Likewise.
407         (vmov_n_s16): Likewise.
408         (vmov_n_s32): Likewise.
409         (vmov_n_s64): Likewise.
410         (vmov_n_u8): Likewise.
411         (vmov_n_u16): Likewise.
412         (vmov_n_u32): Likewise.
413         (vmov_n_u64): Likewise.
414         (vmovq_n_f32): Likewise.
415         (vmovq_n_f64): Likewise.
416         (vmovq_n_p8): Likewise.
417         (vmovq_n_p16): Likewise.
418         (vmovq_n_s8): Likewise.
419         (vmovq_n_s16): Likewise.
420         (vmovq_n_s32): Likewise.
421         (vmovq_n_s64): Likewise.
422         (vmovq_n_u8): Likewise.
423         (vmovq_n_u16): Likewise.
424         (vmovq_n_u32): Likewise.
425         (vmovq_n_u64): Likewise.
427 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
429         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
430         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
431         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
432         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
433         and also change to float UNSPEC.
434         (reduc_maxmin_uns>_<mode>): Remove V2DI.
435         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
436         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
437         result access for big-endian.
438         (__LANE0): New macro used to fix up lane access of 'across-lanes'
439         intrinsics for big-endian.
440         * config/aarch64/iterators.md (VDQV): Add V2DI.
441         (VDQV_S): New.
442         (vp): New mode attribute.
444 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
446         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
447         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
448         big-endian.
450 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
452         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
453         for big-endian element order.
454         (aarch64_simd_vec_setv2di): Likewise.
455         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
456         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
457         (vec_extract): Expand using aarch64_get_lane.
458         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
460 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
462         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
463         and stores to be ABI compliant.
465 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
467         * input.h (input_line): Remove.
468         (input_filename): Likewise.
469         (in_system_header): Likewise.
470         * tree.h (EXPR_LOC_OR_HERE): Remove.
471         * config/bfin/bfin.c (output_file_start): Remove use of
472         input_filename macro.
473         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
474         * gimplify.c (internal_get_tmp_var): Likewise.
475         EXPR_LOC_OR_HERE macro.
476         (shortcut_cond_expr): Likewise.
477         * tree-diagnostic.c (diagnostic_report_current_function): Remove
478         use of input_filename macro.
479         * tree.c (get_file_function_name): Likewise.
481 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
483         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
485 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
487         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
488         (same sized) elements even if the type of the CONSTRUCTOR has
489         vector mode and target is a REG.
491 2013-11-22  Richard Biener  <rguenther@suse.de>
493         Revert
494         2013-11-21  Richard Biener  <rguenther@suse.de>
496         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
497         nb_iterations_upper_bound by one.
499 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
501         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
502         for Silvermont.
504         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
505         core-avx-i, core-avx2 and slm.
507 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
509         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
511 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
513         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
514         (stzx_24_<mode>): Likewise mra_operand.
516 2013-11-22  Jeff Law  <law@redhat.com>
518         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
519         (thread_block_1): Do not cancel jump threads which go from
520         inside a loop, through the header, then back inside the loop.
521         (bb_ends_with_multiway_branch): New function.
522         (thread_through_all_blocks): Handle threading cases which start
523         in a loop through the loop header to a point in the loop.
525         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
526         jump thread path properly.
528 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
530         * vec.h (auto_vec): New class.
531         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
532         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
533         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
534         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
535         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
536         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
537         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
538         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
539         appropriate instead of vec for local variables.
541 2013-11-21  Teresa Johnson  <tejohnson@google.com>
543         PR target/59233
544         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
545         not understood by old_insns_match_p.
547 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
549         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
550         little endian change.
551         (vec_pack_sfix_trunc_v2df): Likewise.
552         (vec_pack_ufix_trunc_v2df): Likewise.
553         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
554         double checking of endianness.
556 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
558         * tree-vect-generic.c (optimize_vector_constructor): New function.
559         (expand_vector_operations_1): Call it.
561 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
563         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
564         ix86_zero_extend_to_Pmode where appropriate.
565         (ix86_expand_builtin): Ditto.
567 2013-11-21  Cary Coutant  <ccoutant@google.com>
569         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
570         (add_linkage_name): Don't add linkage name for -g1.
571         (decls_for_scope): Process subblocks for -g1.
572         (dwarf2out_source_line): Output line tables for -g1.
573         (dwarf2out_finish): Likewise.
574         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
575         unused scopes for -g1.
576         * opts.c (common_handle_option): Handle -g same as -g2.
577         * doc/invoke.texi: Update description for -g1.
579 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
581         * doc/extend.texi: Document htm builtins.
583 2013-11-21  Jeff Law  <law@redhat.com>
585         PR tree-optimization/59221
586         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
587         temporary equivalences when threading through joiner blocks.
589 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
591         PR rtl-optimization/55950
592         * real.c (real_sqrt): Remove function.
593         * real.h (real_sqrt): Remove prototype.
594         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
595         SQRT using real_sqrt.
597 2013-11-21  Richard Biener  <rguenther@suse.de>
599         PR tree-optimization/59058
600         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
601         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
602         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
603         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
604         (NITERS_KNOWN_P): Fold into ...
605         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
606         (LOOP_VINFO_PEELING_FOR_NITER): Add.
607         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
608         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
609         (vect_do_peeling_for_alignment): Re-use precomputed niter
610         instead of re-emitting it.
611         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
612         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
613         * tree-vect-loop.c (vect_get_loop_niters): Use
614         number_of_latch_executions.
615         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
616         (vect_analyze_loop_form): Simplify.
617         (vect_analyze_loop_operations): Move epilogue peeling code ...
618         (vect_analyze_loop_2): ... here and adjust it to compute
619         LOOP_VINFO_PEELING_FOR_NITER.
620         (vect_estimate_min_profitable_iters): Use
621         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
622         (vect_build_loop_niters): Emit on the preheader.
623         (vect_generate_tmps_on_preheader): Likewise.
624         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
625         of recomputing it.  Adjust.
627 2013-11-21  Richard Biener  <rguenther@suse.de>
629         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
630         LOC_LINE): Remove wrappers and fix all users.
631         (struct _loop_vec_info): Remove loop_line_number member.
632         (LOOP_VINFO_LOC): Remove.
633         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
634         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
635         and LOC_LINE.
637 2013-11-21  Richard Biener  <rguenther@suse.de>
639         * tree-ssa-forwprop.c (simplify_vce): New function.
640         (ssa_forward_propagate_and_combine): Call it.
642 2013-11-21  Richard Biener  <rguenther@suse.de>
644         * tree-vect-loop-manip.c (vect_build_loop_niters,
645         vect_generate_tmps_on_preheader): Move ...
646         * tree-vect-loop.c (vect_build_loop_niters,
647         vect_generate_tmps_on_preheader): ... here and simplify.
648         (vect_transform_loop): Call them here and pass down results
649         to consumers.
650         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
651         Get niter variables from caller.
652         (vect_do_peeling_for_alignment): Likewise.
653         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
654         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
655         Adjust prototypes.
657 2013-11-21  Richard Biener  <rguenther@suse.de>
659         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
660         nb_iterations_upper_bound by one.
662 2013-11-21  Richard Biener  <rguenther@suse.de>
664         PR tree-optimization/59058
665         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
666         (build_size_arg_loc): Apply niter adjustment here.
667         (generate_memset_builtin): Adjust.
668         (generate_memcpy_builtin): Likewise.
669         (classify_partition): Do not use number_of_exit_cond_executions
670         but record whether niter needs to be adjusted.
672 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
674         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
675         could throw.
677 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
679         PR target/53976
680         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
681         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
682         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
683         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
684         sh_optimize_sett_clrt pass.o to extra_objs.
686 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
688         * cfg.c (dump_edge_info): Remove redundant comment.
689         * cfgcleanup.c (outgoing_edges_match): Reword reference to
690         EXIT_BLOCK_PTR in comment.
691         (try_optimize_cfg): Likewise.
692         * cfgrtl.c (last_bb_in_partition): Likewise.
693         * cgraph.c (cgraph_node_cannot_return): Likewise.
694         * function.c (thread_prologue_and_epilogue_insns): Likewise.
695         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
696         * ipa-split.c (consider_split): Likewise.
697         * profile.c (find_spanning_tree): Likewise.
698         * sched-int.h (common_sched_info_def.add_block): Likewise.
699         * dominance.c (calc_dfs_tree_nonrec): Reword references in
700         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
701         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
702         in comments to now removed ENTRY_BLOCK_PTR macro.
703         (tree_forwarder_block_p): Reword reference in comment to
704         EXIT_BLOCK_PTR.
705         * tree-inline.c (copy_cfg_body): Reword references in comments to
706         now removed ENTRY_BLOCK_PTR macro.
707         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
708         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
709         a comma to the comment to clarify the meaning.
711 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
713         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
714         Move to gimplify.c.
715         (free_gimplify_stack): Add prototype.
716         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
717         (struct gimplify_ctx): Relocate here.
718         (gimplify_ctxp): Make static.
719         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
720         list of struct gimplify_ctx.
721         (push_gimplify_context): Add default parameters and allocate a struct
722         from the pool.
723         (pop_gimplify_context): Free a struct back to the pool.
724         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
725         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
726         use a local 'struct gimplify_ctx'.
727         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
728         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
729         Likewise.
730         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
731         lower_omp_ordered, lower_omp_critical, lower_omp_for,
732         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
733         lower_omp_teams, execute_lower_omp): Likewise.
734         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
735         * tree-inline.c (optimize_inline_calls): Likewise.
737 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
739         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
740         (vsx_extract_<mode>): Likewise.
741         (*vsx_extract_<mode>_one_le): New LE variant on
742         *vsx_extract_<mode>_zero.
743         (vsx_extract_v4sf): Adjust for little endian.
745 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
747         PR rtl-optimization/59133
748         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
749         new pseudos.
750         (lra_create_new_reg_with_unique_value): Pass new argument value.
751         (lra_emit_add, lra_emit_move): Ditto.
752         * lra-constraints.c (in_class_p): Add check for move for a new insn.
753         (change_class): Rename to lra_change_class.  Move to lra-int.h.
754         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
755         change_class.
756         (process_addr_reg, process_addr): Ditto.
757         (curr_insn_transform): Ditto.  Add check on old pseudo for
758         optional reload.
759         * lra-int.h (lra_get_regno_hard_regno): Move below.
760         (lra_change_class): Renamed change_class from lra.c.
762 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
764         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
765         the children of a NULL pointer.
767 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
769         * lra.c (lra): Set lra_in_progress before check_rtl call.
770         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
771         adding clobber regs when LRA is running.
773 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
775         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
776         restriction for ISA_MIPS32R2.
777         (ISA_HAS_LXC1_SXC1): New macro.
778         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
779         (ISA_HAS_NMADD4_NMSUB4): Likewise.
780         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
781         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
782         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
783         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
784         (*<ANYF:storex>_<P:mode>): Likewise.
786 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
788         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
789         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
790         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
791         * config/mips/mips.md (recip_condition): Remove mode attribute.
792         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
793         <recip_condition>.
794         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
796 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
798         PR target/59207
799         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
800         Make sure neg2_ovf is set before being used.
802 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
804         * plugin.def: Add comment about register_callback and
805         invoke_plugin_callbacks_full.
807         * plugin.c (register_callback, invoke_plugin_callbacks_full):
808         Handle PLUGIN_INCLUDE_FILE event.
810 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
812         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
813         allow subregs of TDmode in FPRs of smaller size in little-endian.
814         (rs6000_split_multireg_move): When splitting an access to TDmode
815         in FPRs, do not use simplify_gen_subreg.
817 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
819         PR middle-end/21718
820         * real.c: Remove comment about decimal string conversion and
821         rounding errors.
822         (real_from_string): Use MPFR to convert nonzero decimal constant
823         to REAL_VALUE_TYPE.
825 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
827         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
828         endianness of the D registers for the legacy encodings.
830 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
832         PR rtl-optimization/54300
833         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
834         outputs in a single-set are killed from the value chains.
836 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
838         * cgraph.h (varpool_node): Add need_bounds_init field.
839         * lto-cgraph.c (lto_output_varpool_node): Output
840         need_bounds_init value.
841         (input_varpool_node): Read need_bounds_init value.
842         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
844 2013-11-20  Jan Hubicka  <jh@suse.cz>
846         * opts.c (finish_options): Imply -ffat-lto-objects with
847         -fno-use-linker-plugin.
848         * common.opt (fuse-linker-plugin): Add var.
850 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
852         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
853         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
854         (gen_type_die_with_usage): Skip pointer bounds.
855         (dwarf2out_global_decl): Likewise.
857 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
859         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
860         from all insns.
862 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
864         PR target/57756
865         * config/i386/i386.c (ix86_option_override_internal): Add missed
866         argument prefix for 'ix86_fpmath'.
867         * config/i386/ssemath.h: Add missed definition of
868         TARGET_FPMATH_DEFAULT_P macros.
870 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
871             Mike Stump  <mikestump@comcast.net>
872             Richard Sandiford  <rdsandiford@googlemail.com>
874         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
875         instead of TREE_INT_CST_LOW, in cases where there is a protecting
876         tree_fits_shwi_p or tree_fits_uhwi_p.
877         * builtins.c (fold_builtin_powi): Likewise.
878         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
879         Likewise.
880         * dbxout.c (dbxout_symbol): Likewise.
881         * expr.c (expand_expr_real_1): Likewise.
882         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
883         (fold_binary_loc): Likewise.
884         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
885         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
886         * omp-low.c (lower_omp_for_lastprivate): Likewise.
887         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
888         * stor-layout.c (compute_record_mode): Likewise.
889         * tree-cfg.c (verify_expr): Likewise.
890         * tree-dfa.c (get_ref_base_and_extent): Likewise.
891         * tree-pretty-print.c (dump_array_domain): Likewise.
892         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
893         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
894         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
895         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
896         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
897         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
898         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
899         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
900         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
901         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
902         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
903         (create_variable_info_for_1): Likewise.
904         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
905         (vect_verify_datarefs_alignment): Likewise.
906         (vect_analyze_data_ref_accesses): Likewise.
907         (vect_prune_runtime_alias_test_list): Likewise.
908         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
910 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
912         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
913         overflow.  Use tree_to_shwi.
915 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
917         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
918         HOST_WIDE_INTs when folding (x >> c) << c.
920 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
921             Dominik Vogt  <vogt@linux.vnet.ibm.com>
923         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
924         int comparisons with an out of range condition code.
925         (s390_optimize_nonescaping_tx): Skip empty BBs.
926         Generate the new tbegin RTX when removing the FPR clobbers (with
927         two SETs).
928         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
929         result before doing the retry calculations.
930         (s390_init_builtins): Make tbegin "returns_twice" and tabort
931         "noreturn".
932         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
933         the TDB setting part of an tbegin.
934         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
935         ("tx_assist"): Set unused argument to an immediate zero instead of
936         loading zero into a GPR and pass it as argument.
937         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
938         Remove inline and related attributes.
939         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
940         (__TM_is_illegal, __TM_is_footprint_exceeded)
941         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
943 2013-11-20  Richard Biener  <rguenther@suse.de>
945         PR lto/59035
946         * lto-opts.c (lto_write_options): Write defaults only if
947         they were not explicitely specified.  Also write
948         -ffp-contract default.
949         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
950         conservatively.
951         (run_gcc): Pass through -ffp-contract.
953 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
955         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
957 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
959         * gcc/config/aarch64/aarch64-builtins.c
960         (aarch64_simd_itype): Remove.
961         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
962         (VAR1): Use qualifiers.
963         (aarch64_build_scalar_type): New.
964         (aarch64_build_vector_type): Likewise.
965         (aarch64_build_type): Likewise.
966         (aarch64_init_simd_builtins): Refactor, remove special cases,
967         consolidate main loop.
968         (aarch64_simd_expand_args): Likewise.
970 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
972         PR c/53001
973         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
975 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
977         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
979 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
981         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
982         to "vec<>" instances.
983         (build_pretty_printer): Register the vec<>* prettyprinter.
985 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
987         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
988         (GdbSubprinter.handles_type): New.
989         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
990         (GdbSubprinterRegex): New subclass of GdbSubprinter.
991         (GdbPrettyPrinters.add_printer): Remove in favor of...
992         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
993         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
994         (GdbPrettyPrinters.__call__): Update search for subprinter
995         to use handles_type method.
996         (build_pretty_printer): Update registration of subprinters to
997         use the new API above, supporting multiple spelling of each type,
998         and allowing for future regex-based subprinters.
1000 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1002         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
1003         V16QI vector splat case for little endian.
1005 2013-11-19  Jeff Law  <law@redhat.com>
1007         * tree-ssa-threadedge.c (thread_across_edge): After threading
1008         through a joiner, allow threading a normal block requiring duplication.
1010         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
1011         jump threading requests that would muck up the loop structures.
1013         * tree-ssa-threadupdate.c: Fix trailing whitespace.
1014         * tree-ssa-threadupdate.h: Likewise.
1016 2013-11-19  Mike Stump  <mikestump@comcast.net>
1018         * gdbinit.in: Add pmz to print out mpz values.
1020 2013-11-20  Jan Hubicka  <jh@suse.cz>
1022         * common.opt (ffat-lto-objects): Disable by default.
1023         * doc/invoke.texi (fat-lto-objects): Update documentation.
1024         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
1026 2013-11-19  Martin Jambor  <mjambor@suse.cz>
1028         PR rtl-optimization/59099
1029         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
1030         here.
1031         (ira): Move init_reg_equiv and call to
1032         split_live_ranges_for_shrink_wrap up, remove analyses around call
1033         to find_moveable_pseudos.
1035 2013-11-20  Alan Modra  <amodra@gmail.com>
1037         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
1038         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
1039         to strict alignment on older processors when little-endian.
1040         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
1041         for ELFv2.
1043 2013-11-19  Teresa Johnson  <tejohnson@google.com>
1045         * common/config/i386/i386-common.c: Enable
1046         -freorder-blocks-and-partition at -O2 and up for x86.
1047         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
1048         * opts.c (finish_options): Only warn if
1049         -freorder-blocks-and-partition was set on command line.
1051 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
1053         * final.c (final_scan_insn): Emit a label for the split
1054         cold function part.  Label name is formed by suffixing
1055         the original function name with "cold".
1057 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1059         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
1060         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
1061         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
1062         (EXIT_BLOCK_PTR_FOR_FN): ...this.
1063         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
1064         cfun be explicit.
1065         (EXIT_BLOCK_PTR): Likewise.
1066         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
1067         (FOR_ALL_BB_FN): Update for renaming of
1068         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
1070         * cfg.c (init_flow): Likewise.
1071         (check_bb_profile): Likewise.
1072         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
1073         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
1074         * cfghooks.c (account_profile_record): Likewise.
1075         * cfgloop.c (init_loops_structure): Likewise.
1076         * cgraphbuild.c (record_eh_tables): Likewise.
1077         (compute_call_stmt_bb_frequency): Likewise.
1078         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
1079         * lto-streamer-in.c (input_cfg): Likewise.
1080         * predict.c (maybe_hot_frequency_p): Likewise.
1081         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1082         * tree-inline.c (initialize_cfun): Likewise.
1083         (copy_cfg_body): Likewise.
1084         (copy_body): Likewise.
1085         (tree_function_versioning): Likewise.
1087         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
1088         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1089         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
1090         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
1091         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1092         (connect_traces): Likewise.
1093         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1094         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
1095         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
1096         macro.
1097         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
1098         EXIT_BLOCK_PTR.
1099         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
1100         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
1101         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
1102         (rotate_loop): Likewise.
1103         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
1104         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1105         EXIT_BLOCK_PTR.
1106         (alloc_aux_for_edges): Likewise.
1107         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
1108         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1109         EXIT_BLOCK_PTR.
1110         (compact_blocks): Likewise.
1111         (clear_edges): Likewise.
1112         * cfganal.c (single_pred_before_succ_order): Remove usage of
1113         ENTRY_BLOCK_PTR macro.
1114         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1115         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1116         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1117         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1118         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1119         EXIT_BLOCK_PTR.
1120         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
1121         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1122         EXIT_BLOCK_PTR.
1123         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
1124         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1125         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1126         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1127         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1128         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
1129         EXIT_BLOCK_PTR.
1130         (print_edge_list): Likewise.
1131         (create_edge_list): Likewise.
1132         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1133         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1134         EXIT_BLOCK_PTR.
1135         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
1136         macro.
1137         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1138         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1139         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
1140         (try_optimize_cfg): Likewise.
1141         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
1142         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
1143         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
1144         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
1145         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
1146         (try_forward_edges): Likewise.
1147         (try_simplify_condjump): Likewise.
1148         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
1149         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1150         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
1151         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
1152         EXIT_BLOCK_PTR.
1153         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
1154         (expand_gimple_tailcall): Likewise.
1155         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
1156         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1157         (tidy_fallthru_edges): Likewise.
1158         (verify_flow_info): Likewise.
1159         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
1160         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
1161         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
1162         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1163         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
1164         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
1165         (get_loop_body_in_dom_order): Likewise.
1166         (get_loop_body): Likewise.
1167         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
1168         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1169         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
1170         macro.
1171         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
1172         (fix_bb_placement): Likewise.
1173         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
1174         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1175         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
1176         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1177         EXIT_BLOCK_PTR.
1178         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1179         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
1180         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1181         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
1182         macro.
1183         (fixup_fallthru_exit_predecessor): Remove uses of macros:
1184         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1185         (fixup_reorder_chain): Likewise.
1186         (relink_block_chain): Likewise.
1187         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
1188         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
1189         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
1190         (force_one_exit_fallthru): Likewise.
1191         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
1192         EXIT_BLOCK_PTR.
1193         (rtl_verify_edges): Likewise.
1194         (commit_edge_insertions): Likewise.
1195         (commit_one_edge_insertion): Likewise.
1196         (rtl_split_edge): Likewise.
1197         (force_nonfallthru_and_redirect): Likewise.
1198         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
1199         (skip_insns_after_block): Likewise.
1200         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
1201         EXIT_BLOCK_PTR.
1202         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
1203         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
1204         EXIT_BLOCK_PTR.
1205         (contains_no_active_insn_p): Likewise.
1206         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1207         (entry_of_function): Likewise.
1208         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
1209         (fixup_new_cold_bb): Likewise.
1210         (patch_jump_insn): Likewise.
1211         (try_redirect_by_replacing_jump): Likewise.
1212         (block_label): Likewise.
1213         (could_fall_through): Likewise.
1214         (can_fallthru): Likewise.
1215         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
1216         ENTRY_BLOCK_PTR macro.
1217         (rebuild_cgraph_edges): Likewise.
1218         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
1219         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1220         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
1221         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
1222         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
1223         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
1224         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
1225         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
1226         macro.
1227         (reg_nonzero_bits_for_combine): Likewise.
1228         (set_nonzero_bits_and_sign_copies): Likewise.
1229         (combine_instructions): Likewise.
1230         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
1231         EXIT_BLOCK_PTR.
1232         (bypass_conditional_jumps): Likewise.
1233         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
1234         (find_implicit_sets): Likewise.
1235         (cprop_jump): Likewise.
1236         * cse.c (cse_cc_succs): Likewise.
1237         (cse_find_path): Likewise.
1238         * df-problems.c (df_lr_confluence_0): Likewise.
1239         * df-scan.c (df_entry_block_defs_collect): Remove usage of
1240         ENTRY_BLOCK_PTR macro.
1241         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
1242         * dominance.c (iterate_fix_dominators): Remove usage of
1243         ENTRY_BLOCK_PTR macro.
1244         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1245         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
1246         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
1247         EXIT_BLOCK_PTR.
1248         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
1249         macro.
1250         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
1251         EXIT_BLOCK_PTR.
1252         * domwalk.c (cmp_bb_postorder): Likewise.
1253         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
1254         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
1255         macro.
1256         (sjlj_emit_function_enter): Likewise.
1257         * final.c (compute_alignments): Likewise.
1258         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
1259         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1260         (reposition_prologue_and_epilogue_notes): Remove usage of
1261         EXIT_BLOCK_PTR macro.
1262         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
1263         EXIT_BLOCK_PTR.
1264         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
1265         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
1266         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
1267         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
1268         (compute_code_hoist_vbeinout): Likewise.
1269         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
1270         (pre_expr_reaches_here_p_work): Likewise.
1271         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1272         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
1273         EXIT_BLOCK_PTR.
1274         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
1275         ENTRY_BLOCK_PTR macro.
1276         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
1277         macro.
1278         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
1279         ENTRY_BLOCK_PTR macro.
1280         * graphite-scop-detection.c (build_scops): Likewise.
1281         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
1282         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
1283         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
1284         macro.
1285         (unlink_bb_notes): Likewise.
1286         (create_check_block_twin): Likewise.
1287         (init_before_recovery): Likewise.
1288         (sched_extend_bb): Likewise.
1289         (priority): Likewise.
1290         * hw-doloop.c (reorder_loops): Likewise.
1291         (discover_loop): Likewise.
1292         * ifcvt.c (dead_or_predicable): Remove uses of macros:
1293         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1294         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
1295         (block_has_only_trap): Likewise.
1296         (cond_exec_find_if_block): Likewise.
1297         (merge_if_block): Likewise.
1298         * ipa-inline-analysis.c (param_change_prob): Remove usage of
1299         ENTRY_BLOCK_PTR macro.
1300         (record_modified): Likewise.
1301         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
1302         EXIT_BLOCK_PTR macro.
1303         (local_pure_const): Likewise.
1304         * ipa-split.c (split_function): Remove uses of macros:
1305         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1306         (find_split_points): Likewise.
1307         (consider_split): Likewise.
1308         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
1309         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
1310         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
1311         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
1312         * ira-emit.c (entered_from_non_parent_p): Remove usage of
1313         ENTRY_BLOCK_PTR macro.
1314         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
1315         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
1316         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
1317         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1318         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
1319         macro.
1320         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
1321         EXIT_BLOCK_PTR.
1322         (compute_farthest): Likewise.
1323         (compute_available): Likewise.
1324         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
1325         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
1326         EXIT_BLOCK_PTR.
1327         (compute_earliest): Likewise.
1328         (compute_antinout_edge): Likewise.
1329         * loop-iv.c (simplify_using_initial_values): Remove usage of
1330         ENTRY_BLOCK_PTR macro.
1331         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
1332         macro.
1333         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
1334         macro.
1335         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
1336         macro.
1337         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
1338         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1339         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
1340         macro.
1341         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
1342         macro.
1343         * lto-streamer-out.c (output_cfg): Likewise.
1344         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
1345         EXIT_BLOCK_PTR.
1346         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
1347         * mode-switching.c (optimize_mode_switching): Likewise.
1348         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
1349         * modulo-sched.c (rest_of_handle_sms): Likewise.
1350         (canon_loop): Likewise.
1351         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
1352         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
1353         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1354         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
1355         macro.
1356         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
1357         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
1358         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
1359         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
1360         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
1361         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
1362         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
1363         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
1364         (gimple_predict_edge): Likewise.
1365         (probably_never_executed): Likewise.
1366         * profile.c (find_spanning_tree): Remove uses of macros:
1367         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1368         (branch_prob): Likewise.
1369         (compute_branch_probabilities): Likewise.
1370         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
1371         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
1372         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
1373         (set_bb_counts): Likewise.
1374         (correct_negative_edge_counts): Likewise.
1375         (get_exec_counts): Likewise.
1376         (instrument_values): Likewise.
1377         (instrument_edges): Likewise.
1378         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
1379         EXIT_BLOCK_PTR.
1380         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1381         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
1382         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1383         (reg_to_stack): Likewise.
1384         * regs.h (REG_N_SETS): Likewise.
1385         * reload.c (find_dummy_reload): Likewise.
1386         (combine_reloads): Likewise.
1387         (push_reload): Likewise.
1388         * reload1.c (has_nonexceptional_receiver): Remove usage of
1389         EXIT_BLOCK_PTR macro.
1390         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
1391         macro.
1392         (find_basic_block): Likewise.
1393         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
1394         (schedule_ebbs): Likewise.
1395         * sched-int.h (sel_sched_p): Likewise.
1396         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
1397         macro.
1398         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
1399         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
1400         EXIT_BLOCK_PTR.
1401         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
1402         (extend_rgns): Likewise.
1403         (find_single_block_region): Likewise.
1404         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
1405         ENTRY_BLOCK_PTR macro.
1406         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
1407         (sel_create_recovery_block): Likewise.
1408         (bb_ends_ebb_p): Likewise.
1409         (sel_bb_end): Likewise.
1410         (sel_bb_head): Likewise.
1411         (free_lv_sets): Likewise.
1412         (init_lv_sets): Likewise.
1413         (tidy_control_flow): Likewise.
1414         (maybe_tidy_empty_bb): Likewise.
1415         * sel-sched-ir.h (_succ_iter_cond): Likewise.
1416         (_succ_iter_start): Likewise.
1417         (sel_bb_empty_or_nop_p): Likewise.
1418         (get_loop_exit_edges_unique_dests): Likewise.
1419         (inner_loop_header_p): Likewise.
1420         * sel-sched.c (create_block_for_bookkeeping): Likewise.
1421         (find_block_for_bookkeeping): Likewise.
1422         * store-motion.c (remove_reachable_equiv_notes): Likewise.
1423         (insert_store): Likewise.
1424         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
1425         ENTRY_BLOCK_PTR macro.
1426         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
1427         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
1428         (gate_tm_init): Likewise.
1429         (tm_region_init): Likewise.
1430         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
1431         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1432         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
1433         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1434         EXIT_BLOCK_PTR.
1435         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
1436         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
1437         EXIT_BLOCK_PTR.
1438         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
1439         macro.
1440         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
1441         EXIT_BLOCK_PTR.
1442         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
1443         macro.
1444         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1445         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1446         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1447         (build_gimple_cfg): Likewise.
1448         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
1449         (gimple_can_merge_blocks_p): Likewise.
1450         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
1451         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1452         * tree-complex.c (update_parameter_components): Remove usage of
1453         ENTRY_BLOCK_PTR macro.
1454         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
1455         EXIT_BLOCK_PTR macro.
1456         * tree-inline.c (tree_function_versioning): Remove uses of macros:
1457         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1458         (delete_unreachable_blocks_update_callgraph): Likewise.
1459         (initialize_cfun): Likewise.
1460         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
1461         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
1462         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
1463         * tree-into-ssa.c (update_ssa): Likewise.
1464         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
1465         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
1466         (rewrite_into_ssa): Likewise.
1467         (rewrite_debug_stmt_uses): Likewise.
1468         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
1469         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1470         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
1471         ENTRY_BLOCK_PTR macro.
1472         * tree-scalar-evolution.h (block_before_loop): Likewise.
1473         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1474         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
1475         EXIT_BLOCK_PTR.
1476         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
1477         macro.
1478         (propagate_dereference_distances): Remove uses of macros:
1479         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1480         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
1481         macro.
1482         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
1483         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
1484         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
1485         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
1486         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1487         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
1488         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
1489         (mark_control_dependent_edges_necessary): Remove uses of macros:
1490         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1491         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
1492         ENTRY_BLOCK_PTR macro.
1493         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
1494         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
1495         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1496         (calculate_live_on_exit): Likewise.
1497         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1498         (loe_visit_block): Likewise.
1499         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
1500         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1501         (live_on_entry): Likewise.
1502         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
1503         EXIT_BLOCK_PTR macro.
1504         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
1505         ENTRY_BLOCK_PTR macro.
1506         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
1507         (bound_difference): Likewise.
1508         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
1509         of EXIT_BLOCK_PTR macro.
1510         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
1511         of ENTRY_BLOCK_PTR macro.
1512         * tree-ssa-math-opts.c (register_division_in): Likewise.
1513         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
1514         * tree-ssa-pre.c (compute_avail): Likewise.
1515         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
1516         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
1517         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1518         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
1519         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
1520         EXIT_BLOCK_PTR.
1521         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
1522         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
1523         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1524         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
1525         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
1526         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
1527         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
1528         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
1529         (find_pdom): Likewise.
1530         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
1531         * tree-stdarg.c (reachable_at_most_once): Likewise.
1532         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
1533         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1534         (eliminate_tail_call): Likewise.
1535         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
1536         macro.
1537         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
1538         * var-tracking.c (vt_initialize): Remove uses of macros:
1539         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1540         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
1541         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
1542         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
1543         EXIT_BLOCK_PTR.
1544         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
1545         macro.
1546         * config/bfin/bfin.c (hwloop_optimize): Likewise.
1547         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
1548         of EXIT_BLOCK_PTR macro.
1549         * config/arm/arm.c (require_pic_register): Remove usage of
1550         ENTRY_BLOCK_PTR macro.
1551         (arm_r3_live_at_start_p): Likewise.
1552         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
1553         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1554         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
1555         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
1556         ENTRY_BLOCK_PTR macro.
1557         * config/i386/i386.c (ix86_count_insn): Likewise.
1558         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
1559         (ix86_pad_short_function): Likewise.
1560         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
1561         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
1562         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
1563         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
1564         (ix86_expand_epilogue): Likewise.
1565         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
1566         (ia64_expand_prologue): Likewise.
1568 2013-11-19  Catherine Moore  <clm@codesourcery.com>
1570         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
1571         * config/mips/mips.opt (mfix-rm7000): New option.
1572         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
1573         * config/mips/mips.c (mips_reorg_process_insns): Disable
1574         noreorder for TARGET_FIX_RM7000.
1576 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
1578         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
1580 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1582         * config/arm/arm.c (arm_new_rtx_costs):
1583         Handle narrow mode add-shifts properly.
1584         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
1585         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
1586         Declare extern.
1588 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
1590         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
1592 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1594         * config/rs6000/vector.md ("mov<mode>"): Do not call
1595         rs6000_emit_le_vsx_move to move into or out of GPRs.
1596         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
1597         source and destination are not GPR hard regs.
1599 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1601         * basic-block.h (n_edges_for_function): Rename macro to...
1602         (n_edges_for_fn): ...this.
1603         (n_edges): Eliminate macro as work towards making uses of
1604         cfun be explicit.
1606         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
1607         to "n_edges_for_fn".
1609         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
1610         (clear_edges): Likewise.
1611         (free_edge): Likewise.
1612         * cfghooks.c (dump_flow_info): Likewise.
1613         * cprop.c (is_too_expensive): Likewise.
1614         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1615         * gcse.c (is_too_expensive): Likewise.
1616         (prune_insertions_deletions): Likewise.
1617         * mcf.c (create_fixup_graph): Likewise.
1618         * sched-rgn.c (haifa_find_rgns): Likewise.
1619         * tree-cfg.c (gimple_dump_cfg): Likewise.
1620         * var-tracking.c (variable_tracking_main_1): Likewise.
1622 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1624         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
1625         length lines.
1627 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1629         * config/aarch64/aarch64.md
1630         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
1632 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1634         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
1636 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
1638         * varasm.c (align_variable): Give error instead of warning for
1639         unsupported alignment.
1640         (assemble_noswitch_variable): Likewise.
1642 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1644         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
1645         cb_file_change.
1647 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
1649         * loop-doloop.c (doloop_optimize_loops): Remove unused
1650         loop iterator argument from FOR_EACH_LOOP.
1652 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1654         Convert gimple types from a union to C++ inheritance.
1655         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
1656         * coretypes.h (union gimple_statement_d): Remove declaration.
1657         (gimple): Convert from being a "union gimple_statement_d *"
1658         to a "struct gimple_statement_base *".
1659         (const_gimple): Likewise (with "const").
1660         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
1661         (ggc_alloc_cleared_gimple_statement_stat): ...this.
1662         * gimple-pretty-print.c (debug): Change parameter from a
1663         "gimple_statement_d &" to a "gimple_statement_base &".
1664         (debug): Change parameter from a "gimple_statement_d *" to
1665         a "gimple_statement_base *".
1666         * gimple-pretty-print.h (debug): Update declarations as above.
1667         * gimple.c (gimple_alloc_stat): Update for renaming of
1668         ggc_alloc_cleared_gimple_statement_d_stat to
1669         ggc_alloc_cleared_gimple_statement_stat.
1670         * gimple.h: Include "is-a.h" for use by is_a_helper
1671         specializations in followup autogenerated patch.
1672         (struct gimple statement_base): Make this type usable as a base
1673         class by adding "desc", "tag" and "variable_size" to GTY, thus
1674         using opting-in to gengtype's support for simple inheritance.
1675         (gimple_statement_with_ops_base): Convert to a subclass of
1676         gimple_statement_base, dropping initial "gsbase" field.  Note that
1677         this type is abstract, with no GSS_ value, and thus no GTY tag value.
1678         (gimple_statement_with_ops): Convert to a subclass of
1679         gimple_statement_with_ops_base, dropping initial "opbase" field.
1680         Add tag value to GTY marking.  Update marking of op field to
1681         reflect how num_ops field is accessed via inheritance.
1682         (gimple_statement_with_memory_ops_base): Convert to a subclass of
1683         gimple_statement_with_ops_base, dropping initial "opbase" field.
1684         Add tag value to GTY marking.
1685         (gimple_statement_with_memory_ops): Convert to a subclass of
1686         public gimple_statement_with_memory_ops_base, dropping initial
1687         "membase" field.  Add tag value to GTY marking.  Update marking
1688         of op field to reflect how num_ops field is accessed via inheritance.
1689         (gimple_statement_call): Analogous changes that also update the
1690         marking of the "u" union.
1691         (gimple_statement_omp): Convert to a subclass of
1692         gimple_statement_base, dropping initial "gsbase" field, adding
1693         tag value to GTY marking.
1694         (gimple_statement_bind): Likewise.
1695         (gimple_statement_catch): Likewise.
1696         (gimple_statement_eh_filter): Likewise.
1697         (gimple_statement_eh_else): Likewise.
1698         (gimple_statement_eh_mnt): Likewise.
1699         (gimple_statement_phi): Likewise.
1700         (gimple_statement_eh_ctrl): Likewise.
1701         (gimple_statement_try): Likewise.
1702         (gimple_statement_wce): Likewise.
1703         (gimple_statement_asm): Convert to a subclass of
1704         gimple_statement_with_memory_ops_base, dropping initial
1705         "membase" field, adding tag value to GTY marking, and updating
1706         marking of op field.
1707         (gimple_statement_omp_critical): Convert to a subclass of
1708         gimple_statement_omp, dropping initial "omp" field, adding tag
1709         value to GTY marking.
1710         (gimple_statement_omp_for): Likewise.
1711         (gimple_statement_omp_parallel): Likewise.
1712         (gimple_statement_omp_task): Convert to a subclass of
1713         gimple_statement_omp_parallel, dropping initial "par" field,
1714         adding tag value to GTY marking.
1715         (gimple_statement_omp_sections): Convert to a subclass of
1716         gimple_statement_omp, dropping initial "omp" field, adding
1717         tag value to GTY marking.
1718         (gimple_statement_omp_continue): Convert to a subclass of
1719         gimple_statement_base, dropping initial "gsbase" field, adding
1720         tag value to GTY marking.
1721         (gimple_statement_omp_single): Convert to a subclass of
1722         gimple_statement_omp, dropping initial "omp" field, adding
1723         tag value to GTY marking.
1724         (gimple_statement_omp_atomic_load): Convert to a subclass of
1725         gimple_statement_base, dropping initial "gsbase" field, adding
1726         tag value to GTY marking.
1727         (gimple_statement_omp_atomic_store): Convert to a subclass of
1728         gimple_statement_base, dropping initial "gsbase" field, adding
1729         tag value to GTY marking.
1730         (gimple_statement_transaction): Convert to a subclass of
1731         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
1732         field, adding tag value to GTY marking.
1733         (union gimple_statement_d): Remove.
1734         * system.h (CONST_CAST_GIMPLE): Update to use
1735         "struct gimple_statement_base *" rather than
1736         "union gimple_statement_d *".
1737         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
1738         gimple_statement_d to gimple_statement_base.
1740         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
1741         (gimple_set_use_ops): Port from union to usage of as_a.
1742         (gimple_set_vuse): Likewise.
1743         (gimple_set_vdef): Likewise.
1744         (gimple_call_internal_fn): Port from union to a static_cast,
1745         given that the type has already been asserted.
1746         (gimple_omp_body_ptr): Port from unchecked union usage to
1747         a static_cast.
1748         (gimple_omp_set_body): Likewise.
1750         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
1751         gimple types to a true class hierarchy.
1752         (update_call_edge_frequencies): Likewise.
1753         (gsi_insert_seq_nodes_before): Likewise.
1754         (gsi_insert_seq_nodes_after): Likewise.
1755         (gsi_split_seq_after): Likewise.
1756         (gsi_set_stmt): Likewise.
1757         (gsi_split_seq_before): Likewise.
1758         (gsi_remove): Likewise.
1759         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
1760         (gsi_next): Likewise.
1761         (gsi_prev): Likewise.
1762         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
1763         * gimple-ssa.h (gimple_vuse_op): Likewise.
1764         (gimple_vdef_op): Likewise.
1765         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
1766         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1767         * gimple.c (gimple_set_code): Likewise.
1768         (gimple_alloc_stat): Likewise.
1769         (gimple_set_subcode): Likewise.
1770         (gimple_build_call_internal_1): Likewise.
1771         (gimple_check_failed): Likewise.
1772         (gimple_call_flags): Likewise.
1773         (gimple_set_bb): Likewise.
1774         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
1775         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
1776         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
1777         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
1778         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
1779         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
1780         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
1781         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
1782         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
1783         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
1784         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
1785         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
1786         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
1787         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
1788         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
1789         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
1790         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
1791         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
1792         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
1793         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
1794         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
1795         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
1796         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
1797         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
1798         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
1799         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
1800         Likewise.
1801         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
1802         Likewise.
1803         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
1804         Likewise.
1805         (is_a_helper <const gimple_statement_omp_atomic_store>
1806         (const_gimple)): Likewise.
1807         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
1808         Likewise.
1809         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
1810         Likewise.
1811         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
1812         Likewise.
1813         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
1814         Likewise.
1815         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
1816         Likewise.
1817         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
1818         Likewise.
1819         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
1820         Likewise.
1821         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
1822         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
1823         Likewise.
1824         (gimple_seq_last): Update for conversion of gimple types to a true
1825         class hierarchy.
1826         (gimple_seq_set_last): Likewise.
1827         (gimple_code): Likewise.
1828         (gimple_bb): Likewise.
1829         (gimple_block): Likewise.
1830         (gimple_set_block): Likewise.
1831         (gimple_location): Likewise.
1832         (gimple_location_ptr): Likewise.
1833         (gimple_set_location): Likewise.
1834         (gimple_no_warning_p): Likewise.
1835         (gimple_set_no_warning): Likewise.
1836         (gimple_set_visited): Likewise.
1837         (gimple_visited_p): Likewise.
1838         (gimple_set_plf): Likewise.
1839         (gimple_plf): Likewise.
1840         (gimple_set_uid): Likewise.
1841         (gimple_uid): Likewise.
1842         (gimple_init_singleton): Likewise.
1843         (gimple_modified_p): Likewise.
1844         (gimple_set_modified): Likewise.
1845         (gimple_expr_code): Likewise.
1846         (gimple_has_volatile_ops): Likewise.
1847         (gimple_set_has_volatile_ops): Likewise.
1848         (gimple_omp_subcode): Likewise.
1849         (gimple_omp_set_subcode): Likewise.
1850         (gimple_omp_return_set_nowait): Likewise.
1851         (gimple_omp_section_set_last): Likewise.
1852         (gimple_omp_parallel_set_combined_p): Likewise.
1853         (gimple_omp_atomic_set_need_value): Likewise.
1854         (gimple_omp_atomic_set_seq_cst): Likewise.
1855         (gimple_num_ops): Likewise.
1856         (gimple_set_num_ops): Likewise.
1857         (gimple_assign_nontemporal_move_p): Likewise.
1858         (gimple_assign_set_nontemporal_move): Likewise.
1859         (gimple_assign_rhs_code): Likewise.
1860         (gimple_assign_set_rhs_code): Likewise.
1861         (gimple_call_internal_p): Likewise.
1862         (gimple_call_with_bounds_p): Likewise.
1863         (gimple_call_set_with_bounds): Likewise.
1864         (gimple_call_set_tail): Likewise.
1865         (gimple_call_tail_p): Likewise.
1866         (gimple_call_set_return_slot_opt): Likewise.
1867         (gimple_call_return_slot_opt_p): Likewise.
1868         (gimple_call_set_from_thunk): Likewise.
1869         (gimple_call_from_thunk_p): Likewise.
1870         (gimple_call_set_va_arg_pack): Likewise.
1871         (gimple_call_va_arg_pack_p): Likewise.
1872         (gimple_call_set_nothrow): Likewise.
1873         (gimple_call_set_alloca_for_var): Likewise.
1874         (gimple_call_alloca_for_var_p): Likewise.
1875         (gimple_call_copy_flags): Likewise.
1876         (gimple_cond_code): Likewise.
1877         (gimple_cond_set_code): Likewise.
1878         (gimple_cond_make_false): Likewise.
1879         (gimple_cond_make_true): Likewise.
1880         (gimple_asm_volatile_p): Likewise.
1881         (gimple_asm_set_volatile): Likewise.
1882         (gimple_asm_set_input): Likewise.
1883         (gimple_asm_input_p): Likewise.
1884         (gimple_try_kind): Likewise.
1885         (gimple_try_set_kind): Likewise.
1886         (gimple_try_catch_is_cleanup): Likewise.
1887         (gimple_try_set_catch_is_cleanup): Likewise.
1888         (gimple_wce_cleanup_eh_only): Likewise.
1889         (gimple_wce_set_cleanup_eh_only): Likewise.
1890         (gimple_debug_bind_p): Likewise.
1891         (gimple_debug_source_bind_p): Likewise.
1892         (gimple_omp_for_set_kind): Likewise.
1893         (gimple_omp_for_set_combined_p): Likewise.
1894         (gimple_omp_for_set_combined_into_p): Likewise.
1895         (gimple_omp_target_set_kind): Likewise.
1896         (gimple_transaction_subcode): Likewise.
1897         (gimple_transaction_set_subcode): Likewise.
1898         (gimple_predict_predictor): Likewise.
1899         (gimple_predict_set_predictor): Likewise.
1900         (gimple_predict_outcome): Likewise.
1901         (gimple_predict_set_outcome): Likewise.
1902         (gimple_transaction_set_label): Likewise.
1903         (gimple_transaction_set_body): Likewise.
1904         (gimple_transaction_label_ptr): Likewise.
1905         (gimple_transaction_label): Likewise.
1906         (gimple_transaction_body_ptr): Likewise.
1907         (gimple_omp_continue_set_control_use): Likewise.
1908         (gimple_omp_continue_control_use_ptr): Likewise.
1909         (gimple_omp_continue_control_use): Likewise.
1910         (gimple_omp_continue_set_control_def): Likewise.
1911         (gimple_omp_continue_control_def_ptr): Likewise.
1912         (gimple_omp_continue_control_def): Likewise.
1913         (gimple_omp_atomic_load_rhs_ptr): Likewise.
1914         (gimple_omp_atomic_load_rhs): Likewise.
1915         (gimple_omp_atomic_load_set_rhs): Likewise.
1916         (gimple_omp_atomic_load_lhs_ptr): Likewise.
1917         (gimple_omp_atomic_load_lhs): Likewise.
1918         (gimple_omp_atomic_load_set_lhs): Likewise.
1919         (gimple_omp_atomic_store_val_ptr): Likewise.
1920         (gimple_omp_atomic_store_val): Likewise.
1921         (gimple_omp_atomic_store_set_val): Likewise.
1922         (gimple_omp_for_cond): Likewise.
1923         (gimple_omp_for_set_cond): Likewise.
1924         (gimple_omp_sections_set_control): Likewise.
1925         (gimple_omp_sections_control_ptr): Likewise.
1926         (gimple_omp_sections_control): Likewise.
1927         (gimple_omp_sections_set_clauses): Likewise.
1928         (gimple_omp_sections_clauses_ptr): Likewise.
1929         (gimple_omp_sections_clauses): Likewise.
1930         (gimple_omp_teams_set_clauses): Likewise.
1931         (gimple_omp_teams_clauses_ptr): Likewise.
1932         (gimple_omp_teams_clauses): Likewise.
1933         (gimple_omp_target_set_data_arg): Likewise.
1934         (gimple_omp_target_data_arg_ptr): Likewise.
1935         (gimple_omp_target_data_arg): Likewise.
1936         (gimple_omp_target_set_child_fn): Likewise.
1937         (gimple_omp_target_child_fn_ptr): Likewise.
1938         (gimple_omp_target_child_fn): Likewise.
1939         (gimple_omp_target_set_clauses): Likewise.
1940         (gimple_omp_target_clauses_ptr): Likewise.
1941         (gimple_omp_target_clauses): Likewise.
1942         (gimple_omp_single_set_clauses): Likewise.
1943         (gimple_omp_single_clauses_ptr): Likewise.
1944         (gimple_omp_single_clauses): Likewise.
1945         (gimple_omp_task_set_arg_align): Likewise.
1946         (gimple_omp_task_arg_align_ptr): Likewise.
1947         (gimple_omp_task_arg_align): Likewise.
1948         (gimple_omp_task_set_arg_size): Likewise.
1949         (gimple_omp_task_arg_size_ptr): Likewise.
1950         (gimple_omp_task_arg_size): Likewise.
1951         (gimple_omp_task_set_copy_fn): Likewise.
1952         (gimple_omp_task_copy_fn_ptr): Likewise.
1953         (gimple_omp_task_copy_fn): Likewise.
1954         (gimple_omp_task_set_data_arg): Likewise.
1955         (gimple_omp_task_data_arg_ptr): Likewise.
1956         (gimple_omp_task_data_arg): Likewise.
1957         (gimple_omp_task_set_child_fn): Likewise.
1958         (gimple_omp_task_child_fn_ptr): Likewise.
1959         (gimple_omp_task_child_fn): Likewise.
1960         (gimple_omp_task_set_clauses): Likewise.
1961         (gimple_omp_task_clauses_ptr): Likewise.
1962         (gimple_omp_task_clauses): Likewise.
1963         (gimple_omp_parallel_set_data_arg): Likewise.
1964         (gimple_omp_parallel_data_arg_ptr): Likewise.
1965         (gimple_omp_parallel_data_arg): Likewise.
1966         (gimple_omp_parallel_set_child_fn): Likewise.
1967         (gimple_omp_parallel_child_fn_ptr): Likewise.
1968         (gimple_omp_parallel_child_fn): Likewise.
1969         (gimple_omp_parallel_set_clauses): Likewise.
1970         (gimple_omp_parallel_clauses_ptr): Likewise.
1971         (gimple_omp_parallel_clauses): Likewise.
1972         (gimple_omp_for_set_pre_body): Likewise.
1973         (gimple_omp_for_pre_body_ptr): Likewise.
1974         (gimple_omp_for_set_incr): Likewise.
1975         (gimple_omp_for_incr_ptr): Likewise.
1976         (gimple_omp_for_incr): Likewise.
1977         (gimple_omp_for_set_final): Likewise.
1978         (gimple_omp_for_final_ptr): Likewise.
1979         (gimple_omp_for_final): Likewise.
1980         (gimple_omp_for_set_initial): Likewise.
1981         (gimple_omp_for_initial_ptr): Likewise.
1982         (gimple_omp_for_initial): Likewise.
1983         (gimple_omp_for_set_index): Likewise.
1984         (gimple_omp_for_index_ptr): Likewise.
1985         (gimple_omp_for_index): Likewise.
1986         (gimple_omp_for_collapse): Likewise.
1987         (gimple_omp_for_set_clauses): Likewise.
1988         (gimple_omp_for_clauses_ptr): Likewise.
1989         (gimple_omp_for_clauses): Likewise.
1990         (gimple_omp_critical_set_name): Likewise.
1991         (gimple_omp_critical_name_ptr): Likewise.
1992         (gimple_omp_critical_name): Likewise.
1993         (gimple_eh_dispatch_set_region): Likewise.
1994         (gimple_eh_dispatch_region): Likewise.
1995         (gimple_resx_set_region): Likewise.
1996         (gimple_resx_region): Likewise.
1997         (gimple_phi_set_arg): Likewise.
1998         (gimple_phi_arg): Likewise.
1999         (gimple_phi_set_result): Likewise.
2000         (gimple_phi_result_ptr): Likewise.
2001         (gimple_phi_result): Likewise.
2002         (gimple_phi_num_args): Likewise.
2003         (gimple_phi_capacity): Likewise.
2004         (gimple_wce_set_cleanup): Likewise.
2005         (gimple_wce_cleanup_ptr): Likewise.
2006         (gimple_try_set_cleanup): Likewise.
2007         (gimple_try_set_eval): Likewise.
2008         (gimple_try_cleanup_ptr): Likewise.
2009         (gimple_try_eval_ptr): Likewise.
2010         (gimple_eh_else_set_e_body): Likewise.
2011         (gimple_eh_else_set_n_body): Likewise.
2012         (gimple_eh_else_e_body_ptr): Likewise.
2013         (gimple_eh_else_n_body_ptr): Likewise.
2014         (gimple_eh_must_not_throw_set_fndecl): Likewise.
2015         (gimple_eh_must_not_throw_fndecl): Likewise.
2016         (gimple_eh_filter_set_failure): Likewise.
2017         (gimple_eh_filter_set_types): Likewise.
2018         (gimple_eh_filter_failure_ptr): Likewise.
2019         (gimple_eh_filter_types_ptr): Likewise.
2020         (gimple_eh_filter_types): Likewise.
2021         (gimple_catch_set_handler): Likewise.
2022         (gimple_catch_set_types): Likewise.
2023         (gimple_catch_handler_ptr): Likewise.
2024         (gimple_catch_types_ptr): Likewise.
2025         (gimple_catch_types): Likewise.
2026         (gimple_asm_string): Likewise.
2027         (gimple_asm_set_label_op): Likewise.
2028         (gimple_asm_label_op): Likewise.
2029         (gimple_asm_set_clobber_op): Likewise.
2030         (gimple_asm_clobber_op): Likewise.
2031         (gimple_asm_set_output_op): Likewise.
2032         (gimple_asm_output_op_ptr): Likewise.
2033         (gimple_asm_output_op): Likewise.
2034         (gimple_asm_set_input_op): Likewise.
2035         (gimple_asm_input_op_ptr): Likewise.
2036         (gimple_asm_input_op): Likewise.
2037         (gimple_asm_nlabels): Likewise.
2038         (gimple_asm_nclobbers): Likewise.
2039         (gimple_asm_noutputs): Likewise.
2040         (gimple_asm_ninputs): Likewise.
2041         (gimple_bind_set_block): Likewise.
2042         (gimple_bind_block): Likewise.
2043         (gimple_bind_add_seq): Likewise.
2044         (gimple_bind_add_stmt): Likewise.
2045         (gimple_bind_set_body): Likewise.
2046         (gimple_bind_body_ptr): Likewise.
2047         (gimple_bind_append_vars): Likewise.
2048         (gimple_bind_set_vars): Likewise.
2049         (gimple_bind_vars): Likewise.
2050         (gimple_call_clobber_set): Likewise.
2051         (gimple_call_use_set): Likewise.
2052         (gimple_call_set_internal_fn): Likewise.
2053         (gimple_call_set_fntype): Likewise.
2054         (gimple_call_fntype): Likewise.
2055         (gimple_omp_return_lhs_ptr): Likewise.
2056         (gimple_omp_return_lhs): Likewise.
2057         (gimple_omp_return_set_lhs): Likewise.
2058         (gimple_omp_taskreg_set_data_arg): Likewise.
2059         (gimple_omp_taskreg_data_arg_ptr): Likewise.
2060         (gimple_omp_taskreg_data_arg): Likewise.
2061         (gimple_omp_taskreg_set_child_fn): Likewise.
2062         (gimple_omp_taskreg_child_fn_ptr): Likewise.
2063         (gimple_omp_taskreg_child_fn): Likewise.
2064         (gimple_omp_taskreg_set_clauses): Likewise.
2065         (gimple_omp_taskreg_clauses_ptr): Likewise.
2066         (gimple_omp_taskreg_clauses): Likewise.
2067         (gimple_vuse): Likewise.
2068         (gimple_vdef): Likewise.
2069         (gimple_vuse_ptr): Likewise.
2070         (gimple_vdef_ptr): Likewise.
2071         * tree-inline.c (copy_debug_stmt): Likewise.
2072         * tree-phinodes.c (make_phi_node): Likewise.
2074         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
2075         (is_a_helper <gimple_statement_with_ops>::test): New.
2076         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
2077         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
2079         * gimple-streamer-in.c (input_gimple_stmt): Port from union
2080         access to use of as_a.
2081         * gimple.c (gimple_build_asm_1): Likewise.
2082         (gimple_build_try): Likewise.  Also, return a specific subclass
2083         rather than just gimple.
2084         (gimple_build_resx): Port from union access to use of as_a.
2085         (gimple_build_eh_dispatch): Likewise.
2086         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
2087         now that gengtype no longer provides a typed allocator function.
2088         (gimple_copy): Likewise.
2089         * gimple.h (gimple_build_try): Return a specific subclass rather
2090         than just gimple.
2091         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
2092         with subclass access by making use of new return type of
2093         gimple_build_try.
2094         * tree-phinodes.c: (allocate_phi_node): Return a
2095         "gimple_statement_phi *" rather than just a gimple.
2096         (resize_phi_node): Likewise.
2097         (make_phi_node): Replace union access with subclass access by
2098         making use of new return type of allocate_phi_node.
2099         (reserve_phi_args_for_new_edge): Replace union access with as_a.
2100         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
2101         than just a gimple.
2102         (remove_phi_args): Update for change to remove_phi_arg_num.
2104         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
2105         code field to reflect inheritance, rather than embedding of
2106         the base gimple type.
2108 2013-11-19  Richard Biener  <rguenther@suse.de>
2110         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
2111         and destructor and make fel_next a member function.
2112         (fel_next): Transform into ...
2113         (loop_iterator::next): ... this.
2114         (fel_init): Transform into ...
2115         (loop_iterator::loop_iterator): ... this.
2116         (loop_iterator::~loop_iterator): New.
2117         (FOR_EACH_LOOP): Remove loop-iterator argument.
2118         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
2119         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
2120         graphite-clast-to-gimple.c, graphite-scop-detection.c,
2121         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
2122         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
2123         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
2124         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
2125         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
2126         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
2127         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2128         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
2129         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
2130         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
2131         FOR_EACH_LOOP_BREAK with break.
2133 2013-11-19  Richard Biener  <rguenther@suse.de>
2135         PR tree-optimization/59164
2136         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2137         Uncomment assert.
2138         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
2139         whether we can create an epilogue loop to reflect thecases where
2140         we create one.
2142 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
2144         * graphite-sese-to-poly.c: Include expr.h.
2146 2013-11-19  Richard Biener  <rguenther@suse.de>
2148         PR middle-end/58956
2149         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
2150         loads into stmts that may clobber it.
2152 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
2154         * cgraphunit.c (symtab_terminator): New variable.
2155         (queued_nodes): Renamed from first.  Use symtab_terminator as
2156         initializer.
2157         (analyze_functions): Adjust accordingly.
2158         (cgraph_process_new_functions): Return void.
2159         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
2161 2013-11-19  Marek Polacek  <polacek@redhat.com>
2163         * opts.c (common_handle_option): Add -fsanitize=null option.
2164         Turn off -fdelete-null-pointer-checks option when doing the
2165         NULL pointer checking.
2166         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
2167         * tree-pass.h (make_pass_ubsan): Declare.
2168         (make_pass_sanopt): Declare.
2169         * timevar.def (TV_TREE_UBSAN): New timevar.
2170         * passes.def: Add pass_sanopt and pass_ubsan.
2171         * ubsan.h (ubsan_null_ckind): New enum.
2172         (ubsan_mismatch_data): New struct.
2173         (ubsan_expand_null_ifn): Declare.
2174         (ubsan_create_data): Adjust declaration.
2175         (ubsan_type_descriptor): Likewise.
2176         * asan.c: Include "ubsan.h".
2177         (pass_data_sanopt): New pass.
2178         (execute_sanopt): New function.
2179         (gate_sanopt): Likewise.
2180         (make_pass_sanopt): Likewise.
2181         (class pass_sanopt): New class.
2182         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
2183         gimple-iterator.h and cfgloop.h.
2184         (PROB_VERY_UNLIKELY): Define.
2185         (tree_type_map_hash): New function.
2186         (ubsan_type_descriptor): Add new parameter.
2187         Improve type name generation.
2188         (ubsan_create_data): Add new parameter.  Add pointer data into
2189         ubsan structure.
2190         (ubsan_expand_null_ifn): New function.
2191         (instrument_member_call): Likewise.
2192         (instrument_mem_ref): Likewise.
2193         (instrument_null): Likewise.
2194         (ubsan_pass): Likewise.
2195         (gate_ubsan): Likewise.
2196         (make_pass_ubsan): Likewise.
2197         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
2198         (class pass_ubsan): New class.
2199         (pass_data_ubsan): New pass.
2200         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
2201         * internal-fn.c (expand_UBSAN_NULL): New function.
2202         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
2203         even when !flag_toplevel_reorder.
2204         * internal-fn.def (UBSAN_NULL): New.
2206 2013-11-19  Jan Hubicka  <jh@suse.cz>
2208         * cgraph.c (cgraph_create_indirect_edge): Use
2209         get_polymorphic_call_info.
2210         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
2211         maybe_in_construction and maybe_derived_type.
2212         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
2213         (ipa_dummy_polymorphic_call_context): New global var.
2214         (possible_polymorphic_call_targets): Add context paramter.
2215         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
2216         (possible_polymorphic_call_target_p): Likewise.
2217         (get_polymorphic_call_info): New function.
2218         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
2219         (add_type_duplicate): Remove forgotten debug output.
2220         (method_class_type): Add sanity check.
2221         (maybe_record_node): Add FINALP parameter.
2222         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
2223         by info by get_binfo_at_offset.
2224         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
2225         parameters; pass them to record-binfo.
2226         (polymorphic_call_target_d): Add context and FINAL.
2227         (polymorphic_call_target_hasher::hash): Hash context.
2228         (polymorphic_call_target_hasher::equal): Compare context.
2229         (free_polymorphic_call_targets_hash):
2230         (get_class_context): New function.
2231         (contains_type_p): New function.
2232         (get_polymorphic_call_info): New function.
2233         (walk_bases): New function.
2234         (possible_polymorphic_call_targets): Add context parameter; honnor it.
2235         (dump_possible_polymorphic_call_targets): Dump context.
2236         (possible_polymorphic_call_target_p): Add context.
2237         (update_type_inheritance_graph): Update comment.s
2238         (ipa_set_jf_known_type): Assert that compoentn type is known.
2239         (ipa_note_param_call): Do not tamper with offsets.
2240         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
2241         outer type.
2242         (update_indirect_edges_after_inlining): Likewise.
2243         (ipa_write_indirect_edge_info): Stream new fields.
2244         (ipa_read_indirect_edge_info): Stream in new fields.
2246 2013-11-19  Jan Hubicka  <jh@suse.cz>
2248         * tree-pretty-print.c (dump_generic_node): Print class type of
2249         OBJ_TYPE_REF.
2251 2013-11-19  Joey Ye  <joey.ye@arm.com>
2253         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
2254         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
2255         for new option.
2256         * config/arm/arm.c (arm_option_override): By default disable
2257         -marm-pic-data-is-text-relative.
2258         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
2259         (arm_assemble_integer): Likewise.
2260         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
2261         New macro to initialize -marm-pic-data-is-text-relative.
2263 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
2265         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
2266         (address_cost_data): New field.
2267         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
2268         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
2270 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2272         * config/aarch64/aarch64.md: Remove v8type from all insns.
2274 2013-11-19  Richard Biener  <rguenther@suse.de>
2276         PR tree-optimization/57517
2277         * tree-predcom.c (combinable_refs_p): Verify the combination
2278         is always executed when the refs are.
2280 2013-11-19  Jeff Law  <law@redhat.com>
2282         * tree-ssa-threadupdate.c: Include ssa-iterators.h
2283         (copy_phi_arg_into_existing_phi): New function.
2284         (any_remaining_duplicated_blocks): Likewise.
2285         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
2286         blocks on a jump threading path.
2288         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
2289         thread through a joiner which has the latch edge.
2291 2013-11-19  Jan Hubicka  <jh@suse.cz>
2293         * md.texi (setmem): Document new parameter.
2294         * optabs.c (maybe_gen_insn): Support 9 operands.
2295         * builtins.c (determine_block_size): Add probable_max_size;
2296         support anti-ranges.
2297         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
2298         probable_max_size.
2299         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
2300         emit_block_move, clear_storage_hints, set_storage_via_setmem):
2301         Likewise.
2302         * expr.h (emit_block_move_hints, clear_storage_hints,
2303         set_storage_via_setmem): Update prototype.
2304         * i386.md (setmem, movmem patterns): Add 9th operand.
2305         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
2306         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
2307         argument; pass it to decide_alg.
2309 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2311         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
2312         (n_basic_blocks_for_fn): ...this.
2314         (n_basic_blocks): Eliminate macro as work towards making uses of
2315         cfun be explicit.
2317         * cfgloop.c (init_loops_structure): Update for renaming of
2318         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
2319         * graph.c (draw_cfg_nodes_no_loops): Likewise.
2320         * ipa-utils.c (ipa_merge_profiles): Likewise.
2321         * lto-streamer-in.c (make_new_block): Likewise.
2322         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2323         (dump_function_to_file): Likewise.
2325         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
2326         macro with "n_basic_blocks_for_fn (cfun)".
2327         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
2328         (duplicate_computed_gotos): Likewise.
2329         (reorder_basic_blocks): Likewise.
2330         * bt-load.c (augment_live_range): Likewise.
2331         * cfg.c (expunge_block): Likewise.
2332         (compact_blocks): Likewise.
2333         * cfganal.c (single_pred_before_succ_order): Likewise.
2334         (compute_idf): Likewise.
2335         (flow_dfs_compute_reverse_init): Likewise.
2336         (pre_and_rev_post_order_compute): Likewise.
2337         (pre_and_rev_post_order_compute_fn): Likewise.
2338         (inverted_post_order_compute): Likewise.
2339         (post_order_compute): Likewise.
2340         (print_edge_list): Likewise.
2341         (find_unreachable_blocks): Likewise.
2342         (mark_dfs_back_edges): Likewise.
2343         * cfgcleanup.c (try_optimize_cfg): Likewise.
2344         (try_forward_edges): Likewise.
2345         * cfghooks.c (dump_flow_info): Likewise.
2346         * cfgloop.c (verify_loop_structure): Likewise.
2347         (get_loop_body): Likewise.
2348         (flow_loops_find): Likewise.
2349         * cfgloopmanip.c (add_loop): Likewise.
2350         (remove_path): Likewise.
2351         (find_path): Likewise.
2352         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2353         (rtl_verify_bb_layout): Likewise.
2354         (entry_of_function): Likewise.
2355         (rtl_create_basic_block): Likewise.
2356         * coverage.c (coverage_compute_cfg_checksum): Likewise.
2357         * cprop.c (one_cprop_pass): Likewise.
2358         (is_too_expensive): Likewise.
2359         * df-core.c (df_compute_cfg_image): Likewise.
2360         (df_compact_blocks): Likewise.
2361         (df_worklist_dataflow_doublequeue): Likewise.
2362         * dominance.c (calculate_dominance_info): Likewise.
2363         (calc_dfs_tree): Likewise.
2364         (calc_dfs_tree_nonrec): Likewise.
2365         (init_dom_info): Likewise.
2366         * domwalk.c (cmp_bb_postorder): Likewise.
2367         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2368         (generate_setjmp_warnings): Likewise.
2369         * fwprop.c (build_single_def_use_links): Likewise.
2370         * gcse.c (is_too_expensive): Likewise.
2371         (one_code_hoisting_pass): Likewise.
2372         (one_pre_gcse_pass): Likewise.
2373         * graphite.c (graphite_initialize): Likewise.
2374         * haifa-sched.c (haifa_sched_init): Likewise.
2375         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
2376         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
2377         * ira-build.c (ira_build): Likewise.
2378         * lcm.c (compute_nearerout): Likewise.
2379         (compute_available): Likewise.
2380         (compute_laterin): Likewise.
2381         (compute_antinout_edge): Likewise.
2382         * lra-lives.c (lra_create_live_ranges): Likewise.
2383         * lra.c (has_nonexceptional_receiver): Likewise.
2384         * mcf.c (create_fixup_graph): Likewise.
2385         * profile.c (branch_prob): Likewise.
2386         * reg-stack.c (convert_regs_2): Likewise.
2387         * regrename.c (regrename_analyze): Likewise.
2388         * reload1.c (has_nonexceptional_receiver): Likewise.
2389         * reorg.c (dbr_schedule): Likewise.
2390         * sched-deps.c (sched_deps_init): Likewise.
2391         * sched-ebb.c (schedule_ebbs): Likewise.
2392         * sched-rgn.c (extend_regions): Likewise.
2393         (schedule_insns): Likewise.
2394         (sched_rgn_init): Likewise.
2395         (extend_rgns): Likewise.
2396         (haifa_find_rgns): Likewise.
2397         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
2398         (sel_recompute_toporder): Likewise.
2399         * sel-sched.c (run_selective_scheduling): Likewise.
2400         * store-motion.c (one_store_motion_pass): Likewise.
2401         (remove_reachable_equiv_notes): Likewise.
2402         * tracer.c (tracer): Likewise.
2403         (tail_duplicate): Likewise.
2404         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
2405         (dump_cfg_stats): Likewise.
2406         (gimple_dump_cfg): Likewise.
2407         (create_bb): Likewise.
2408         (build_gimple_cfg): Likewise.
2409         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
2410         * tree-inline.c (optimize_inline_calls): Likewise.
2411         (fold_marked_statements): Likewise.
2412         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
2413         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2414         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2415         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
2416         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2417         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
2418         * tree-ssa-pre.c (do_pre): Likewise.
2419         (init_pre): Likewise.
2420         (compute_avail): Likewise.
2421         * tree-ssa-reassoc.c (init_reassoc): Likewise.
2422         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2423         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
2424         (init_worklist): Likewise.
2425         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2426         * var-tracking.c (variable_tracking_main_1): Likewise.
2427         (vt_find_locations): Likewise.
2428         (vt_stack_adjustments): Likewise.
2429         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2430         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2432 2013-11-18  Jan Hubicka  <jh@suse.cz>
2434         * profile.c (compute_branch_probabilities): Do not sanity check
2435         run_max.
2437 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
2439         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
2440         GET_MODE_PRECISION.
2441         * fold-const.c (fold_single_bit_test_into_sign_test)
2442         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
2444 2013-11-18  Teresa Johnson  <tejohnson@google.com>
2446         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
2447         cfglayout after bb reordering.
2448         * passes.def: Move compgotos before bb reordering since it goes into
2449         cfglayout.
2451 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
2453         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
2454         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
2455         static.
2456         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
2457         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
2458         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
2459         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
2460         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
2461         Remove all_lto_gen_passes.
2462         * passes.c (pass_manager::dump_passes): Remove its use.
2463         (pass_manager::register_pass): Likewise.
2464         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
2465         (pass_manager::pass_manager): Don't initialize or use it.
2466         (write_lto): New static function.
2467         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
2468         instead of using all_lto_gen_passes.
2469         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
2470         pass_ipa_lto_finish_out): Delete.
2471         * tree-pass.h (make_pass_ipa_lto_gimple_out,
2472         make_pass_ipa_lto_finish_out): Don't declare.
2474 2013-11-18  Jeff Law  <law@redhat.com>
2476         * tree-ssa-threadupdate.c (redirection_data): Record two
2477         duplicated blocks instead of just one.
2478         (local_info): Explain why we don't create a template for the
2479         second duplicated block in a thread path.
2480         (create_block_for_threading): Accept argument indicating array
2481         index into redirection_data to store its result.
2482         (lookup_redirection_data): Initialize both duplicate blocks.
2483         (ssa_create_duplicates): If a jump threading path needs multiple
2484         blocks duplicated, then duplicate them.
2485         (ssa_fix_duplicate_block_edges): Corresponding changes.
2486         (ssa_fixup_template_block, thread_single_edge):  Likewise.
2488 2013-11-18  Marek Polacek  <polacek@redhat.com>
2490         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
2492 2013-11-18  Andrew Pinski <apinski@cavium.com>
2493             Steve Ellcey  <sellcey@mips.com>
2495         PR target/56552
2496         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
2497         type restriction from equality_operator on conditonal move.
2498         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
2499         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
2501 2013-11-18  Jeff Law  <law@redhat.com>
2503         * tree-ssa-threadupdate.c: Fix file block comment.
2504         Fix minor indention issue.
2506 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
2508         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
2509         ix86_address_subreg_operand.  Move subreg checks to
2510         ix86_validate_address_register.  Move address override check to
2511         ix86_legitimate_address_p.
2512         (ix86_validate_address_register): New function.
2513         (ix86_legitimate_address_p): Call ix86_validate_address_register
2514         to validate base and index registers.  Add address override check
2515         from ix86_decompose_address.
2516         (ix86_decompose_address): Remove.
2518 2013-11-18  Richard Biener  <rguenther@suse.de>
2520         PR tree-optimization/59125
2521         PR tree-optimization/54570
2522         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
2523         is not complete do not treat component-references with offset zero
2524         but different fields as equal.
2525         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
2526         (compute_object_sizes): Apply TLC.  Propagate the constant
2527         results into all uses and fold their stmts.
2528         * passes.def (pass_all_optimizations): Move pass_object_sizes
2529         after the first pass_forwprop and before pass_fre.
2531 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2533         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
2534         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
2535         (tree_ctz): Remove cast to unsigned type.
2536         * builtins.c (fold_builtin_memory_op): Likewise.
2537         * dwarf2out.c (descr_info_loc): Likewise.
2538         * godump.c (go_output_typedef): Likewise.
2539         * omp-low.c (expand_omp_simd): Likewise.
2540         * stor-layout.c (excess_unit_span): Likewise.
2541         * tree-object-size.c (addr_object_size): Likewise.
2542         * tree-sra.c (analyze_all_variable_accesses): Likewise.
2543         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2544         (simplify_rotate): Likewise.
2545         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
2546         (handle_pointer_plus): Likewise.
2547         * tree-switch-conversion.c (check_range): Likewise.
2548         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
2549         * tsan.c (instrument_builtin_call): Likewise.
2550         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
2551         * trans-mem.c (tm_log_add): Likewise.
2552         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
2553         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
2554         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
2555         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
2557 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2559         * tree.h (host_integerp, tree_low_cst): Delete.
2560         * tree.c (host_integerp, tree_low_cst): Delete.
2562 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2564         * expr.h: Update comments to refer to tree_to_[su]hwi rather
2565         than tree_low_cst.
2566         * fold-const.c (fold_binary_loc): Likewise.
2567         * expr.c (store_constructor): Use tree_to_uhwi rather than
2568         tree_low_cst.
2569         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
2570         * stmt.c (emit_case_dispatch_table): Likewise.
2571         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2573 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2575         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
2576         config/aarch64/aarch64.c, config/alpha/predicates.md,
2577         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
2578         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
2579         config/mep/mep-pragma.c, config/mips/mips.c,
2580         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
2581         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
2582         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
2583         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
2584         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
2585         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
2586         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
2587         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
2588         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
2589         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
2591 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2593         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
2594         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
2595         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
2596         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
2597         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
2598         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
2599         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
2600         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
2601         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
2602         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
2603         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
2605 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2607         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
2608         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
2610 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2612         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
2613         than host_integerp.
2615 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2617         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
2618         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
2619         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
2620         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
2621         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
2622         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
2623         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
2624         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
2625         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
2626         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
2627         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
2628         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
2629         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
2630         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
2631         tree_fits_uhwi_p throughout.
2633 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2635         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
2636         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
2637         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
2638         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
2639         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
2640         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
2641         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
2642         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
2643         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
2644         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
2645         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
2646         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
2647         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
2648         throughout.
2650 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2652         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
2653         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
2655 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2657         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
2658         flag if it kills its address, not its post-increment.
2660 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
2662         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2663         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2664         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2665         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2666         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2667         (gimple_call_with_bounds_p): New.
2668         (gimple_call_set_with_bounds): New.
2669         (gimple_call_num_nobnd_args): Remove.
2670         (gimple_call_nobnd_arg): Remove.
2671         * tree.h (CALL_WITH_BOUNDS_P): New.
2672         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2674 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
2676         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
2677         (symtab_node_name): Rename to symtab_node::name.
2678         (cgraph_node_asm_name): Remove.
2679         (varpool_node_asm_name): Remove.
2680         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
2681         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
2682         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
2683         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
2684         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
2686 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2688         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
2689         * config/arm/arm.c (arm_cortex_a53_tune): New.
2690         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
2692 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2694         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
2695         (case ${target}): Add bdver4.
2696         * config/i386/bdver3.md: Add bdver4.
2697         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2698         -march=native recognize bdver4 processors.
2699         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2700         bdver4 def_and_undef
2701         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
2702         (m_BDVER4): New definition.
2703         (m_AMD_MULTIPLE): Includes m_BDVER4.
2704         (processor_target_table): Add bdver4 entry.
2705         (static const char *const cpu_names): Add bdver4 entry.
2706         (software_prefetching_beneficial_p): Add bdver3.
2707         (ix86_option_override_internal): Add bdver4 instruction sets.
2708         (ix86_issue_rate): Add bdver4.
2709         (ix86_adjust_cost): Add bdver4.
2710         (ia32_multipass_dfa_lookahead): Add bdver4.
2711         (enum processor_model): Add M_AMDFAM15H_BDVER4.
2712         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
2713         (has_dispatch): Add bdver4.
2714         * config/i386/i386.h (TARGET_BDVER4): New definition.
2715         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
2716         (enum processor_type): Add PROCESSOR_BDVER4.
2717         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
2718         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
2719         * doc/extend.texi: Add details about bdver4.
2720         * doc/invoke.texi: Add details about bdver4. Add
2721         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
2723 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2725         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
2726         sdmode_stack_slot also in little-endian mode.
2728 2013-11-17  Jan Hubicka  <jh@suse.cz>
2730         * doc/md.texi (setmem, movstr): Update documentation.
2731         * builtins.c (determine_block_size): New function.
2732         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
2733         (expand_builtin_memset_args): Use it and pass it to
2734         set_storage_via_setmem.
2735         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
2736         parameters; update call to expander.
2737         (emit_block_move_hints): Add min_size/max_size parameters.
2738         (clear_storage_hints): Likewise.
2739         (set_storage_via_setmem): Likewise.
2740         (clear_storage): Update.
2741         * expr.h (emit_block_move_hints, clear_storage_hints,
2742         set_storage_via_setmem): Update prototypes.
2743         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
2744         (ix86_expand_movmem, ix86_expand_setmem): Remove.
2745         (ix86_expand_movmem, ix86_expand_setmem): Remove.
2746         * i386.md (movmem, setmem): Pass parameters.
2748 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
2750         PR target/59153
2751         * config/i386/i386.c (ix86_address_subreg_operand): Do not
2752         reject non-integer subregs.
2753         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
2754         Move check for invalid x32 constant addresses ...
2755         (ix86_legitimate_address_p): ... here.
2757 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2759         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
2760         parameter and use it in REG_FRAME_RELATED_EXPR note.
2761         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
2762         parameter.
2763         (rs6000_emit_prologue): Likewise, but for little endian VSX
2764         stores, pass the source register of the store instead.
2766 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
2768         * gimple.h: Reorder prototypes to match .c declaration order, and
2769         remove protyotypes for functions not in gimple.c.
2770         (LABEL): Move to tree-into-ssa.c.
2771         * gimple.c: Remove unused prototypes.
2772         (get_base_address): Move to tree.c.
2773         * tree.c (get_base_address): Relocate from gimple.c.
2774         * builtins.h (validate_gimple_arglist): Add prototype.
2775         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
2776         * cfgexpand.h: New File.
2777         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
2778         * tree.h (build_addr): Move to tree-nested.h.
2779         * tree-nested.h: New File.
2780         (build_addr, lower_nested_functions, insert_field_into_struct): Add
2781         prototypes.
2782         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
2783         * ipa-inline-analysis.c: Include cfgexpand.h.
2784         * cgraphunit.c: Include tree-nested.h.
2785         * omp-low.c: Likewise.
2786         * tree-parloops.c: Likewise.
2787         * gimple-low.h: Likewise.
2788         * tree-profile.h: Likewise.
2789         * expr.c: Include cfgexpand.h.
2790         * tree-affine.c: Likewise.
2791         * tree-ssa.c: Likewise.
2792         * tree-ssa-loop-im.c: Include trans-mem.h.
2793         * tree-ssa-tail-merge.c: Likewise.
2794         * value-prof.c: Include builtins.h and tree-nested.h.
2795         * tree-into-ssa.c (LABEL): Define here.
2797 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
2799         * config/arc/arc.c (arc_predicate_delay_insns): New function.
2800         (pass_data_arc_predicate_delay_insns): New pass_data instance.
2801         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
2802         (make_pass_arc_predicate_delay_insns): New function.
2803         (arc_init): Register pass_arc_predicate_delay_insns if
2804         flag_delayed_branch is active.
2806 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
2808         * config/arc/constraints.md (Rcq): Simplify register number test.
2810 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2812         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
2814 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2816         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
2817         is null.
2819 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2821         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
2822         * gimple-pretty-print.c (dump_omp_for): Add case for
2823         GF_OMP_FOR_KIND_CILKSIMD.
2824         * gimple.h (enum gf_mask): Restructure entries to add
2825         GF_OMP_FOR_KIND_CILKSIMD.
2826         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
2827         (gimplify_omp_for): Handle CILK_SIMD.
2828         (gimplify_expr): Add ccase for CILK_SIMD.
2829         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
2830         (build_outer_var_ref): Same.
2831         (check_omp_nesting_restrictions): Same.
2832         (lower_rec_input_clauses): Same.
2833         (lower_lastprivate_clauses): Same.
2834         (expand_omp_for): Same.
2835         (execute_expand_omp): Check flag_enable_cilkplus.
2836         (execute_lower_omp): Same.
2837         (diagnose_sb_0): Handle CILK_SIMD.
2838         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
2839         (setjmp_or_longjmp_p): New.
2840         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
2841         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
2842         * tree.def: Add tree code for CILK_SIMD.
2844 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2846         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
2847         Remove.
2848         (altivec_vperm_<mode>): Revert earlier little endian change.
2849         (*altivec_vperm_<mode>_internal): Remove.
2850         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
2851         (*altivec_vperm_<mode>_uns_internal): Remove.
2852         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
2854 2013-11-15  Jeff Law  <law@redhat.com>
2856         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
2857         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
2858         * gimple-ssa-isolate-paths.c
2859         (find_implicit_erroneous_behaviour): Corresponding changes.
2860         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
2861         (find_explicit_erroneous_behaviour): Likewise.
2863 2013-11-15  Jeff Law  <law@redhat.com>
2865         * ifcvt.c (find_cond_trap): Properly handle case where
2866         trap_bb == else_bb.
2868 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
2870         * configure: Regenerate.
2872 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
2874         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
2875         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
2876         where it is incorrect or missing.
2878 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
2880         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
2881         host_integerp test.
2882         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
2883         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
2884         constant.
2885         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
2886         pair with a TREE_CODE test and TREE_INT_CST_LOW.
2887         * tree-vect-generic.c (expand_vector_divmod): Likewise.
2889 2013-11-15  Richard Biener  <rguenther@suse.de>
2891         PR tree-optimization/50262
2892         * tree-ssa-alias.h (struct pt_solution): Split
2893         vars_contains_global into vars_contains_nonlocal,
2894         vars_contains_escaped and vars_contains_escaped_heap.
2895         * tree-ssa-structalias.c (label_visit): Expand comment.
2896         (handle_lhs_call): Adjust comment.
2897         (set_uids_in_ptset): Set the new flags appropriately.
2898         (pt_solution_set): Adjust.
2899         (pt_solution_set_var): Likewise.
2900         (pt_solution_ior_into): Likewise.
2901         (pt_solution_includes_global): Likewise.
2902         (pt_solutions_intersect_1): Optimize escaped handling.
2903         (compute_points_to_sets): Remove heap variable globalization.
2904         (ipa_escaped_pt): Adjust initializer.
2905         (pass_data_ipa_pta): Do not run TODO_update_ssa.
2906         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
2907         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
2909 2013-11-15  Richard Biener  <rguenther@suse.de>
2911         * tree-loop-distribution.c (tree_loop_distribution): Make sure
2912         to distribute all stores.
2914 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2916         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
2918 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
2920         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
2921         * configure.ac: Determine target_header_dir earlier.
2922         (--with-glibc-version): New configure option.
2923         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
2924         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
2925         * configure: Regenerate.
2926         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
2927         native toolchains for default.
2928         (--with-glibc-version): Document.
2930 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
2932         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
2934 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
2936         * lto-streamer-in.c (input function): Call cgraph_create_node if
2937         cgraph_get_node failed.
2939 2013-11-14   Olivier Hainque  <hainque@adacore.com>
2941         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
2942         defer allocation of DECL_IGNORED_P variables at toplevel unless really
2943         small.  Factorize size threshold computation from the existing one.
2944         (expand_used_vars): Refine comment.
2946 2013-11-14  Cong Hou  <congh@google.com>
2948         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
2949         address field as it can be obtained from dr.  Rename the struct.
2950         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
2951         steps of data references during sort.
2952         (vect_prune_runtime_alias_test_list): Adjust with the change to
2953         struct dr_with_seg_len.
2954         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2955         Adjust with the change to struct dr_with_seg_len.
2957 2013-11-14  Jeff Law  <law@redhat.com>
2959         PR middle-end/59127
2960         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
2961         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
2962         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
2963         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
2964         edges, then ignore it.  If the statement exhibiting erroneous
2965         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
2966         then we can not optimize.
2967         (find_explicit_erroneous_behaviour): Likewise.
2969 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
2971         * gimplify-me.h:  New file.  Add prototypes.
2972         * gimplify.h: Don't include gimple.h.
2973         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
2974         Relocate from gimple.h.
2975         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
2976         is_gimple_sizepos): Move to gimplify.h.
2977         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
2978         (enum gsi_iterator_update): Move to gimple-iterator.h.
2979         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
2980         * gimplify-me.c: New File.
2981         (force_gimple_operand_1, force_gimple_operand,
2982         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2983         gimple_regimplify_operands): Relocate from gimplify.c.
2984         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
2985         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2986         gimple_regimplify_operands): Move to gimplify-me.c.
2987         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
2988         from gimple.h.
2989         * Makefile.in (OBJS): Add gimplify-me.o
2990         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
2991         required.
2992         * cfgloopmanip.c: Likewise.
2993         * cgraphunit.c: Likewise.
2994         * cilk-common.c: Likewise.
2995         * fold-const.c: Likewise.
2996         * function.c: Likewise.
2997         * gimple-expr.c: Likewise.
2998         * gimple-fold.c: Likewise.
2999         * gimple-ssa-strength-reduction.c: Likewise.
3000         * gimple.c: Likewise.
3001         * graphite-clast-to-gimple.c: Likewise.
3002         * graphite-sese-to-poly.c: Likewise.
3003         * ipa-prop.c: Likewise.
3004         * ipa-split.c: Likewise.
3005         * ipa.c: Likewise.
3006         * langhooks.c: Likewise.
3007         * omp-low.c: Likewise.
3008         * sese.c: Likewise.
3009         * stor-layout.c: Likewise.
3010         * targhooks.c: Likewise.
3011         * trans-mem.c: Likewise.
3012         * tree-affine.c: Likewise.
3013         * tree-cfg.c: Likewise.
3014         * tree-cfgcleanup.c: Likewise.
3015         * tree-complex.c: Likewise.
3016         * tree-if-conv.c: Likewise.
3017         * tree-inline.c: Likewise.
3018         * tree-loop-distribution.c: Likewise.
3019         * tree-nested.c: Likewise.
3020         * tree-parloops.c: Likewise.
3021         * tree-predcom.c: Likewise.
3022         * tree-profile.c: Likewise.
3023         * tree-scalar-evolution.c: Likewise.
3024         * tree-sra.c: Likewise.
3025         * tree-ssa-address.c: Likewise.
3026         * tree-ssa-ccp.c: Likewise.
3027         * tree-ssa-dce.c: Likewise.
3028         * tree-ssa-forwprop.c: Likewise.
3029         * tree-ssa-ifcombine.c: Likewise.
3030         * tree-ssa-loop-im.c: Likewise.
3031         * tree-ssa-loop-ivopts.c: Likewise.
3032         * tree-ssa-loop-manip.c: Likewise.
3033         * tree-ssa-loop-niter.c: Likewise.
3034         * tree-ssa-loop-prefetch.c: Likewise.
3035         * tree-ssa-loop-unswitch.c: Likewise.
3036         * tree-ssa-math-opts.c: Likewise.
3037         * tree-ssa-phiopt.c: Likewise.
3038         * tree-ssa-phiprop.c: Likewise.
3039         * tree-ssa-pre.c: Likewise.
3040         * tree-ssa-propagate.c: Likewise.
3041         * tree-ssa-reassoc.c: Likewise.
3042         * tree-ssa-sccvn.c: Likewise.
3043         * tree-ssa-strlen.c: Likewise.
3044         * tree-ssa.c: Likewise.
3045         * tree-switch-conversion.c: Likewise.
3046         * tree-tailcall.c: Likewise.
3047         * tree-vect-data-refs.c: Likewise.
3048         * tree-vect-generic.c: Likewise.
3049         * tree-vect-loop-manip.c: Likewise.
3050         * tree-vect-loop.c: Likewise.
3051         * tree-vect-patterns.c: Likewise.
3052         * tree-vect-stmts.c: Likewise.
3053         * tree.c: Likewise.
3054         * tsan.c: Likewise.
3055         * value-prof.c: Likewise.
3056         * config/aarch64/aarch64.c: Likewise.
3057         * config/alpha/alpha.c: Likewise.
3058         * config/darwin.c: Likewise.
3059         * config/i386/i386.c: Likewise.
3060         * config/ia64/ia64.c: Likewise.
3061         * config/mep/mep.c: Likewise.
3062         * config/mips/mips.c: Likewise.
3063         * config/rs6000/rs6000.c: Likewise.
3064         * config/s390/s390.c: Likewise.
3065         * config/sh/sh.c: Likewise.
3066         * config/sparc/sparc.c: Likewise.
3067         * config/spu/spu.c: Likewise.
3068         * config/stormy16/stormy16.c: Likewise.
3069         * config/tilegx/tilegx.c: Likewise.
3070         * config/tilepro/tilepro.c: Likewise.
3071         * config/xtensa/xtensa.c: Likewise.
3073 2013-11-14  Diego Novillo  <dnovillo@google.com>
3075         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
3077 2013-11-14  Diego Novillo  <dnovillo@google.com>
3079         * tree.h: Include fold-const.h.
3080         (aggregate_value_p): Moved to function.h.
3081         (alloca_call_p): Moved to calls.h.
3082         (allocate_struct_function): Moved to function.h.
3083         (apply_tm_attr): Moved to attribs.h.
3084         (array_at_struct_end_p): Moved to expr.h.
3085         (array_ref_element_size): Moved to tree-dfa.h.
3086         (array_ref_low_bound): Moved to tree-dfa.h.
3087         (array_ref_up_bound): Moved to tree.h.
3088         (assemble_alias): Moved to cgraph.h.
3089         (bit_from_pos): Moved to stor-layout.h.
3090         (build_addr): Moved to tree-nested.h.
3091         (build_duplicate_type): Moved to tree-inline.h.
3092         (build_fold_addr_expr): Moved to fold-const.h.
3093         (build_fold_addr_expr_with_type): Moved to fold-const.h.
3094         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
3095         (build_fold_indirect_ref): Moved to fold-const.h.
3096         (build_fold_indirect_ref_loc): Moved to fold-const.h.
3097         (build_personality_function): Moved to tree.h.
3098         (build_range_check): Moved to fold-const.h.
3099         (build_simple_mem_ref): Moved to fold-const.h.
3100         (build_simple_mem_ref_loc): Moved to fold-const.h.
3101         (build_tm_abort_call): Moved to trans-mem.h.
3102         (byte_from_pos): Moved to stor-layout.h.
3103         (call_expr_flags): Moved to calls.h.
3104         (can_move_by_pieces): Moved to expr.h.
3105         (categorize_ctor_elements): Moved to expr.h.
3106         (change_decl_assembler_name): Moved to gcc-symtab.h.
3107         (combine_comparisons): Moved to fold-const.h.
3108         (complete_ctor_at_level_p): Moved to tree.h.
3109         (component_ref_field_offset): Moved to tree-dfa.h.
3110         (compute_builtin_object_size): Moved to tree-object-size.h.
3111         (compute_record_mode): Moved to stor-layout.h.
3112         (constant_boolean_node): Moved to fold-const.h.
3113         (constructor_static_from_elts_p): Moved to varasm.h.
3114         (cxx11_attribute_p): Moved to attribs.h.
3115         (debug_body): Moved to print-tree.h.
3116         (debug_find_tree): Moved to tree-inline.h.
3117         (debug_fold_checksum): Moved to fold-const.h.
3118         (debug_head): Moved to print-tree.h.
3119         (debug_head): Moved to print-tree.h.
3120         (debug_raw): Moved to print-tree.h.
3121         (debug_tree): Moved to print-tree.h.
3122         (debug_vec_tree): Moved to print-tree.h.
3123         (debug_verbose): Moved to print-tree.h.
3124         (debug_verbose): Moved to print-tree.h.
3125         (decl_attributes): Moved to attribs.h.
3126         (decl_binds_to_current_def_p): Moved to varasm.h.
3127         (decl_default_tls_model): Moved to varasm.h.
3128         (decl_replaceable_p): Moved to varasm.h.
3129         (div_if_zero_remainder): Moved to fold-const.h.
3130         (double_int mem_ref_offset): Moved to fold-const.h.
3131         (dump_addr): Moved to print-tree.h.
3132         (element_precision): Moved to machmode.h.
3133         (expand_dummy_function_end): Moved to function.h.
3134         (expand_function_end): Moved to function.h.
3135         (expand_function_start): Moved to function.h.
3136         (expand_label): Moved to stmt.h.
3137         (expr_first): Moved to tree-iterator.h.
3138         (expr_last): Moved to tree-iterator.h.
3139         (finalize_size_functions): Moved to stor-layout.h.
3140         (finish_builtin_struct): Moved to stor-layout.h.
3141         (finish_record_layout): Moved to stor-layout.h.
3142         (fixup_signed_type): Moved to stor-layout.h.
3143         (fixup_unsigned_type): Moved to stor-layout.h.
3144         (flags_from_decl_or_type): Moved to calls.h.
3145         (fold): Moved to fold-const.h.
3146         (fold_abs_const): Moved to fold-const.h.
3147         (fold_binary): Moved to fold-const.h.
3148         (fold_binary_loc): Moved to fold-const.h.
3149         (fold_binary_to_constant): Moved to fold-const.h.
3150         (fold_build1): Moved to fold-const.h.
3151         (fold_build1_initializer_loc): Moved to fold-const.h.
3152         (fold_build1_loc): Moved to fold-const.h.
3153         (fold_build1_stat_loc): Moved to fold-const.h.
3154         (fold_build2): Moved to fold-const.h.
3155         (fold_build2_initializer_loc): Moved to fold-const.h.
3156         (fold_build2_loc): Moved to fold-const.h.
3157         (fold_build2_stat_loc): Moved to fold-const.h.
3158         (fold_build3): Moved to fold-const.h.
3159         (fold_build3_loc): Moved to fold-const.h.
3160         (fold_build3_stat_loc): Moved to fold-const.h.
3161         (fold_build_call_array): Moved to fold-const.h.
3162         (fold_build_call_array_initializer): Moved to fold-const.h.
3163         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
3164         (fold_build_call_array_loc): Moved to fold-const.h.
3165         (fold_build_cleanup_point_expr): Moved to fold-const.h.
3166         (fold_convert): Moved to fold-const.h.
3167         (fold_convert_loc): Moved to fold-const.h.
3168         (fold_convertible_p): Moved to fold-const.h.
3169         (fold_defer_overflow_warnings): Moved to fold-const.h.
3170         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
3171         (fold_fma): Moved to fold-const.h.
3172         (fold_ignored_result): Moved to fold-const.h.
3173         (fold_indirect_ref): Moved to fold-const.h.
3174         (fold_indirect_ref_1): Moved to fold-const.h.
3175         (fold_indirect_ref_loc): Moved to fold-const.h.
3176         (fold_read_from_constant_string): Moved to fold-const.h.
3177         (fold_real_zero_addition_p): Moved to fold-const.h.
3178         (fold_single_bit_test): Moved to fold-const.h.
3179         (fold_strip_sign_ops): Moved to fold-const.h.
3180         (fold_ternary): Moved to fold-const.h.
3181         (fold_ternary_loc): Moved to fold-const.h.
3182         (fold_unary): Moved to tree-data-ref.h.
3183         (fold_unary_ignore_overflow): Moved to fold-const.h.
3184         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
3185         (fold_unary_loc): Moved to fold-const.h.
3186         (fold_unary_to_constant): Moved to fold-const.h.
3187         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
3188         (fold_undefer_overflow_warnings): Moved to fold-const.h.
3189         (folding_initializer): Moved to fold-const.h.
3190         (free_temp_slots): Moved to function.h.
3191         (generate_setjmp_warnings): Moved to function.h.
3192         (get_attribute_name): Moved to attribs.h.
3193         (get_identifier): Moved to stringpool.h.
3194         (get_identifier_with_length): Moved to stringpool.h.
3195         (get_inner_reference): Moved to tree.h.
3196         (gimple_alloca_call_p): Moved to calls.h.
3197         (gimplify_parameters): Moved to function.h.
3198         (highest_pow2_factor): Moved to expr.h.
3199         (indent_to): Moved to print-tree.h.
3200         (init_attributes): Moved to attribs.h.
3201         (init_dummy_function_start): Moved to function.h.
3202         (init_function_start): Moved to function.h.
3203         (init_inline_once): Moved to tree-inline.h.
3204         (init_object_sizes): Moved to tree-object-size.h.
3205         (init_temp_slots): Moved to function.h.
3206         (init_tree_optimization_optabs): Moved to optabs.h.
3207         (initialize_sizetypes): Moved to stor-layout.h.
3208         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
3209         (initializer_constant_valid_p): Moved to varasm.h.
3210         (int_const_binop): Moved to fold-const.h.
3211         (internal_reference_types): Moved to stor-layout.h.
3212         (invert_tree_comparison): Moved to fold-const.h.
3213         (invert_truthvalue): Moved to fold-const.h.
3214         (invert_truthvalue_loc): Moved to fold-const.h.
3215         (is_tm_ending_fndecl): Moved to trans-mem.h.
3216         (is_tm_may_cancel_outer): Moved to trans-mem.h.
3217         (is_tm_pure): Moved to trans-mem.h.
3218         (is_tm_safe): Moved to trans-mem.h.
3219         (layout_decl): Moved to stor-layout.h.
3220         (layout_type): Moved to stor-layout.h.
3221         (lookup_attribute_spec): Moved to attribs.h.
3222         (make_accum_type): Moved to stor-layout.h.
3223         (make_decl_one_only): Moved to varasm.h.
3224         (make_decl_rtl): Moved to tree.h.
3225         (make_decl_rtl_for_debug): Moved to varasm.h.
3226         (make_fract_type): Moved to stor-layout.h.
3227         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
3228         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
3229         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
3230         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
3231         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
3232         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
3233         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
3234         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
3235         (make_range): Moved to fold-const.h.
3236         (make_range_step): Moved to fold-const.h.
3237         (make_sat_signed_accum_type): Moved to stor-layout.h.
3238         (make_sat_signed_fract_type): Moved to stor-layout.h.
3239         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
3240         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
3241         (make_signed_accum_type): Moved to stor-layout.h.
3242         (make_signed_fract_type): Moved to stor-layout.h.
3243         (make_signed_type): Moved to stor-layout.h.
3244         (make_unsigned_accum_type): Moved to stor-layout.h.
3245         (make_unsigned_fract_type): Moved to stor-layout.h.
3246         (make_unsigned_type): Moved to stor-layout.h.
3247         (mark_decl_referenced): Moved to varasm.h.
3248         (mark_referenced): Moved to varasm.h.
3249         (may_negate_without_overflow_p): Moved to fold-const.h.
3250         (maybe_get_identifier): Moved to stringpool.h.
3251         (merge_ranges): Moved to fold-const.h.
3252         (merge_weak): Moved to varasm.h.
3253         (mode_for_size_tree): Moved to stor-layout.h.
3254         (multiple_of_p): Moved to fold-const.h.
3255         (must_pass_in_stack_var_size): Moved to calls.h.
3256         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
3257         (native_encode_expr): Moved to fold-const.h.
3258         (native_interpret_expr): Moved to fold-const.h.
3259         (non_lvalue): Moved to fold-const.h.
3260         (non_lvalue_loc): Moved to fold-const.h.
3261         (normalize_offset): Moved to stor-layout.h.
3262         (normalize_rli): Moved to stor-layout.h.
3263         (notice_global_symbol): Moved to varasm.h.
3264         (omit_one_operand): Moved to fold-const.h.
3265         (omit_one_operand_loc): Moved to fold-const.h.
3266         (omit_two_operands): Moved to fold-const.h.
3267         (omit_two_operands_loc): Moved to fold-const.h.
3268         (operand_equal_p): Moved to tree-data-ref.h.
3269         (parse_input_constraint): Moved to stmt.h.
3270         (parse_output_constraint): Moved to stmt.h.
3271         (place_field): Moved to stor-layout.h.
3272         (pop_function_context): Moved to function.h.
3273         (pop_temp_slots): Moved to function.h.
3274         (pos_from_bit): Moved to stor-layout.h.
3275         (preserve_temp_slots): Moved to function.h.
3276         (print_node): Moved to print-tree.h.
3277         (print_node_brief): Moved to print-tree.h.
3278         (print_rtl): Moved to rtl.h.
3279         (process_pending_assemble_externals): Moved to varasm.h.
3280         (ptr_difference_const): Moved to fold-const.h.
3281         (push_function_context): Moved to function.h.
3282         (push_struct_function): Moved to function.h.
3283         (push_temp_slots): Moved to function.h.
3284         (record_tm_replacement): Moved to trans-mem.h.
3285         (relayout_decl): Moved to stor-layout.h.
3286         (resolve_asm_operand_names): Moved to stmt.h.
3287         (resolve_unique_section): Moved to varasm.h.
3288         (rli_size_so_far): Moved to stor-layout.h.
3289         (rli_size_unit_so_far): Moved to stor-layout.h.
3290         (round_down): Moved to fold-const.h.
3291         (round_down_loc): Moved to fold-const.h.
3292         (round_up): Moved to fold-const.h.
3293         (round_up_loc): Moved to fold-const.h.
3294         (set_decl_incoming_rtl): Moved to emit-rtl.h.
3295         (set_decl_rtl): Moved to tree.h.
3296         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
3297         (set_user_assembler_name): Moved to varasm.h.
3298         (setjmp_call_p): Moved to calls.h.
3299         (size_binop): Moved to fold-const.h.
3300         (size_binop_loc): Moved to fold-const.h.
3301         (size_diffop): Moved to fold-const.h.
3302         (size_diffop_loc): Moved to fold-const.h.
3303         (size_int_kind): Moved to fold-const.h.
3304         (stack_protect_epilogue): Moved to function.h.
3305         (start_record_layout): Moved to stor-layout.h.
3306         (supports_one_only): Moved to varasm.h.
3307         (swap_tree_comparison): Moved to fold-const.h.
3308         (tm_malloc_replacement): Moved to trans-mem.h.
3309         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
3310         (tree build_invariant_address): Moved to fold-const.h.
3311         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
3312         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
3313         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
3314         (tree_expr_nonnegative_p): Moved to fold-const.h.
3315         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
3316         (tree_output_constant_def): Moved to varasm.h.
3317         (tree_overlaps_hard_reg_set): Moved to stmt.h.
3318         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
3319         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
3320         (tree_swap_operands_p): Moved to fold-const.h.
3321         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
3322         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
3323         (update_alignment_for_field): Moved to stor-layout.h.
3324         (use_register_for_decl): Moved to function.h.
3325         (variable_size): Moved to rtl.h.
3326         (vector_type_mode): Moved to stor-layout.h.
3327         * cgraph.h: Corresponding changes.
3328         * emit-rtl.h: Corresponding changes.
3329         * expr.h: Corresponding changes.
3330         * function.h: Corresponding changes.
3331         * optabs.h: Corresponding changes.
3332         * trans-mem.h: Corresponding changes.
3333         Protect against multiple inclusion.
3334         * tree-inline.h: Corresponding changes.
3335         * tree-iterator.h: Corresponding changes.
3336         * tree-dfa.h: Include expr.h.
3337         * tree-ssanames.h: Include stringpool.h.
3338         * attribs.h: New file.
3339         * calls.h: New file.
3340         * fold-const.h: New file.
3341         * gcc-symtab.h: New file.
3342         * print-rtl.h: New file.
3343         * print-tree.h: New file.
3344         * stmt.h: New file.
3345         * stor-layout.h: New file.
3346         * strinpool.h: New file.
3347         * tree-nested.h: New file
3348         * tree-object-size.h: New file.
3349         * varasm.h: New file.
3351 2013-11-14  Diego Novillo  <dnovillo@google.com>
3353         * alias.c: Include varasm.h.
3354         Include expr.h.
3355         * asan.c: Include calls.h.
3356         Include stor-layout.h.
3357         Include varasm.h.
3358         * attribs.c: Include stringpool.h.
3359         Include attribs.h.
3360         Include stor-layout.h.
3361         * builtins.c: Include stringpool.h.
3362         Include stor-layout.h.
3363         Include calls.h.
3364         Include varasm.h.
3365         Include tree-object-size.h.
3366         * calls.c: Include stor-layout.h.
3367         Include varasm.h.
3368         Include stringpool.h.
3369         Include attribs.h.
3370         * cfgexpand.c: Include stringpool.h.
3371         Include varasm.h.
3372         Include stor-layout.h.
3373         Include stmt.h.
3374         Include print-tree.h.
3375         * cgraph.c: Include varasm.h.
3376         Include calls.h.
3377         Include print-tree.h.
3378         * cgraphclones.c: Include stringpool.h.
3379         Include function.h.
3380         Include emit-rtl.h.
3381         Move inclusion of rtl.h earlier in the file.
3382         * cgraphunit.c: Include varasm.h.
3383         Include stor-layout.h.
3384         Include stringpool.h.
3385         * cilk-common.c: Include stringpool.h.
3386         Include stor-layout.h.
3387         * combine.c: Include stor-layout.h.
3388         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
3389         Include stringpool.h.
3390         Include calls.h.
3391         * config/aarch64/aarch64.c: Include stringpool.h.
3392         Include stor-layout.h.
3393         Include calls.h.
3394         Include varasm.h.
3395         * config/alpha/alpha.c: Include stor-layout.h.
3396         Include calls.h.
3397         Include varasm.h.
3398         * config/arc/arc.c: Include varasm.h.
3399         Include stor-layout.h.
3400         Include stringpool.h.
3401         Include calls.h.
3402         * config/arm/arm.c: Include stringpool.h.
3403         Include stor-layout.h.
3404         Include calls.h.
3405         Include varasm.h.
3406         * config/avr/avr-c.c: Include stor-layout.h.
3407         * config/avr/avr-log.c: Include print-tree.h.
3408         * config/avr/avr.c: Include print-tree.h.
3409         Include calls.h.
3410         Include stor-layout.h.
3411         Include stringpool.h.
3412         * config/bfin/bfin.c: Include varasm.h.
3413         Include calls.h.
3414         * config/c6x/c6x.c: Include stor-layout.h.
3415         Include varasm.h.
3416         Include calls.h.
3417         Include stringpool.h.
3418         * config/cr16/cr16.c: Include stor-layout.h.
3419         Include calls.h.
3420         * config/cris/cris.c: Include varasm.h.
3421         Include stor-layout.h.
3422         Include calls.h.
3423         Include stmt.h.
3424         * config/darwin.c: Include stringpool.h.
3425         Include varasm.h.
3426         Include stor-layout.h.
3427         * config/epiphany/epiphany.c: Include stor-layout.h.
3428         Include varasm.h.
3429         Include calls.h.
3430         Include stringpool.h.
3431         * config/fr30/fr30.c: Include stor-layout.h.
3432         Include varasm.h.
3433         * config/frv/frv.c: Include varasm.h.
3434         Include stor-layout.h.
3435         Include stringpool.h.
3436         * config/h8300/h8300.c: Include stor-layout.h.
3437         Include varasm.h.
3438         Include calls.h.
3439         Include stringpool.h.
3440         * config/i386/i386.c: Include stringpool.h.
3441         Include attribs.h.
3442         Include calls.h.
3443         Include stor-layout.h.
3444         Include varasm.h.
3445         * config/i386/winnt-cxx.c: Include stringpool.h.
3446         Include attribs.h.
3447         * config/i386/winnt.c: Include stringpool.h.
3448         Include varasm.h.
3449         * config/ia64/ia64-c.c: Include stringpool.h.
3450         * config/ia64/ia64.c: Include stringpool.h.
3451         Include stor-layout.h.
3452         Include calls.h.
3453         Include varasm.h.
3454         * config/iq2000/iq2000.c: Include stor-layout.h.
3455         Include calls.h.
3456         Include varasm.h.
3457         * config/lm32/lm32.c: Include calls.h.
3458         * config/m32c/m32c.c: Include stor-layout.h.
3459         Include varasm.h.
3460         Include calls.h.
3461         * config/m32r/m32r.c: Include stor-layout.h.
3462         Include varasm.h.
3463         Include stringpool.h.
3464         Include calls.h.
3465         * config/m68k/m68k.c: Include calls.h.
3466         Include stor-layout.h.
3467         Include varasm.h.
3468         * config/mcore/mcore.c: Include stor-layout.h.
3469         Include varasm.h.
3470         Include stringpool.h.
3471         Include calls.h.
3472         * config/mep/mep.c: Include varasm.h.
3473         Include calls.h.
3474         Include stringpool.h.
3475         Include stor-layout.h.
3476         * config/microblaze/microblaze.c: Include varasm.h.
3477         Include stor-layout.h.
3478         Include calls.h.
3479         * config/mips/mips.c: Include varasm.h.
3480         Include stringpool.h.
3481         Include stor-layout.h.
3482         Include calls.h.
3483         * config/mmix/mmix.c: Include varasm.h.
3484         Include stor-layout.h.
3485         Include calls.h.
3486         * config/mn10300/mn10300.c: Include stor-layout.h.
3487         Include varasm.h.
3488         Include calls.h.
3489         * config/moxie/moxie.c: Include stor-layout.h.
3490         Include varasm.h.
3491         Include calls.h.
3492         * config/msp430/msp430.c: Include stor-layout.h.
3493         Include calls.h.
3494         * config/nds32/nds32.c: Include stor-layout.h.
3495         Include varasm.h.
3496         Include calls.h.
3497         * config/pa/pa.c: Include stor-layout.h.
3498         Include stringpool.h.
3499         Include varasm.h.
3500         Include calls.h.
3501         * config/pdp11/pdp11.c: Include stor-layout.h.
3502         Include varasm.h.
3503         Include calls.h.
3504         * config/picochip/picochip.c: Include calls.h.
3505         Include stor-layout.h.
3506         Include stringpool.h.
3507         Include varasm.h.
3508         * config/rl78/rl78.c: Include varasm.h.
3509         Include stor-layout.h.
3510         Include calls.h.
3511         * config/rs6000/rs6000-c.c: Include stor-layout.h.
3512         Include stringpool.h.
3513         * config/rs6000/rs6000.c: Include stringpool.h.
3514         Include stor-layout.h.
3515         Include calls.h.
3516         Include print-tree.h.
3517         Include varasm.h.
3518         * config/rx/rx.c: Include varasm.h.
3519         Include stor-layout.h.
3520         Include calls.h.
3521         * config/s390/s390.c: Include print-tree.h.
3522         Include stringpool.h.
3523         Include stor-layout.h.
3524         Include varasm.h.
3525         Include calls.h.
3526         * config/score/score.c: Include stringpool.h.
3527         Include calls.h.
3528         Include varasm.h.
3529         Include stor-layout.h.
3530         * config/sh/sh-c.c: Include stringpool.h.
3531         Include attribs.h.h.
3532         * config/sh/sh.c: Include stringpool.h.
3533         Include stor-layout.h.
3534         Include calls.h.
3535         Include varasm.h.
3536         * config/sol2-c.c: Include stringpool.h.
3537         Include attribs.h.
3538         * config/sol2-cxx.c: Include stringpool.h.
3539         * config/sol2.c: Include stringpool.h.
3540         Include varasm.h.
3541         * config/sparc/sparc.c: Include stringpool.h.
3542         Include stor-layout.h.
3543         Include calls.h.
3544         Include varasm.h.
3545         * config/spu/spu-c.c: Include stringpool.h.
3546         * config/spu/spu.c: Include stringpool.h.
3547         Include stor-layout.h.
3548         Include calls.h.
3549         Include varasm.h.
3550         * config/stormy16/stormy16.c: Include stringpool.h.
3551         Include stor-layout.h.
3552         Include varasm.h.
3553         Include calls.h.
3554         * config/tilegx/tilegx.c: Include stringpool.h.
3555         Include stor-layout.h.
3556         Include varasm.h.
3557         Include calls.h.
3558         * config/tilepro/tilepro.c: Include stringpool.h.
3559         Include stor-layout.h.
3560         Include varasm.h.
3561         Include calls.h.
3562         * config/v850/v850-c.c: Include stringpool.h.
3563         Include attribs.h.
3564         * config/v850/v850.c: Include stringpool.h.
3565         Include stor-layout.h.
3566         Include varasm.h.
3567         Include calls.h.
3568         * config/vax/vax.c: Include calls.h.
3569         Include varasm.h.
3570         * config/vms/vms.c: Include stringpool.h.
3571         * config/vxworks.c: Include stringpool.h.
3572         * config/xtensa/xtensa.c: Include stringpool.h.
3573         Include stor-layout.h.
3574         Include calls.h.
3575         Include varasm.h.
3576         * convert.c: Include stor-layout.h.
3577         * coverage.c: Include stringpool.h.
3578         Include stor-layout.h.
3579         * dbxout.c: Include varasm.h.
3580         Include stor-layout.h.
3581         * dojump.c: Include stor-layout.h.
3582         * dse.c: Include stor-layout.h.
3583         * dwarf2asm.c: Include stringpool.h.
3584         Include varasm.h.
3585         * dwarf2cfi.c: Include stor-layout.h.
3586         * dwarf2out.c: Include rtl.h.
3587         Include stringpool.h.
3588         Include stor-layout.h.
3589         Include varasm.h.
3590         Include function.h.
3591         Include emit-rtl.h.
3592         Move inclusion of rtl.h earlier in the file.
3593         * emit-rtl.c: Include varasm.h.
3594         * except.c: Include stringpool.h.
3595         Include stor-layout.h.
3596         * explow.c: Include stor-layout.h.
3597         * expmed.c: Include stor-layout.h.
3598         * expr.c: Include stringpool.h.
3599         Include stor-layout.h.
3600         Include attribs.h.
3601         Include varasm.h.
3602         * final.c: Include varasm.h.
3603         * fold-const.c: Include stor-layout.h.
3604         Include calls.h.
3605         Include tree-iterator.h.
3606         * function.c: Include stor-layout.h.
3607         Include varasm.h.
3608         Include stringpool.h.
3609         * genattrtab.c (write_header): Emit includes for varasm.h,
3610         stor-layout.h and calls.h.
3611         * genautomata.c (main): Likewise.
3612         * genemit.c: Likewise.
3613         * genopinit.c: Likewise.
3614         * genoutput.c (output_prologue): Likewise.
3615         * genpeep.c: Likewise.
3616         * genpreds.c (write_insn_preds_c): Likewise.
3617         * gengtype.c (open_base_files): Add stringpool.h.
3618         * gimple-expr.c: Include stringpool.h.
3619         Include stor-layout.h.
3620         * gimple-fold.c: Include stringpool.h.
3621         Include expr.h.
3622         Include stmt.h.
3623         Include stor-layout.h.
3624         * gimple-low.c: Include tree-nested.h.
3625         Include calls.h.
3626         * gimple-pretty-print.c: Include stringpool.h.
3627         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
3628         Include expr.h.
3629         * gimple-walk.c: Include stmt.h.
3630         * gimple.c: Include calls.h.
3631         Include stmt.h.
3632         Include stor-layout.h.
3633         * gimplify.c: Include stringpool.h.
3634         Include calls.h.
3635         Include varasm.h.
3636         Include stor-layout.h.
3637         Include stmt.h.
3638         Include print-tree.h.
3639         Include expr.h.
3640         * gimplify-me.c: Include stmt.h
3641         Include stor-layout.h
3642         * internal-fn.c: Include stor-layout.h.
3643         * ipa-devirt.c: Include print-tree.h.
3644         Include calls.h.
3645         * ipa-inline-analysis.c: Include stor-layout.h.
3646         Include stringpool.h.
3647         Include print-tree.h.
3648         * ipa-inline.c: Include trans-mem.h.
3649         Include calls.h.
3650         * ipa-prop.c: Include expr.h.
3651         Include stor-layout.h.
3652         Include print-tree.h.
3653         * ipa-pure-const.c: Include print-tree.h.
3654         Include calls.h.
3655         * ipa-reference.c: Include calls.h.
3656         * ipa-split.c: Include stringpool.h.
3657         Include expr.h.
3658         Include calls.h.
3659         * ipa.c: Include calls.h.
3660         Include stringpool.h.
3661         * langhooks.c: Include stringpool.h.
3662         Include attribs.h.
3663         * lto-cgraph.c: Include stringpool.h.
3664         * lto-streamer-in.c: Include stringpool.h.
3665         * lto-streamer-out.c: Include stor-layout.h.
3666         Include stringpool.h.
3667         * omp-low.c: Include stringpool.h.
3668         Include stor-layout.h.
3669         Include expr.h.
3670         * optabs.c: Include stor-layout.h.
3671         Include stringpool.h.
3672         Include varasm.h.
3673         * passes.c: Include varasm.h.
3674         * predict.c: Include calls.h.
3675         * print-rtl.c: Include print-tree.h.
3676         * print-tree.c: Include varasm.h.
3677         Include print-rtl.h.
3678         Include stor-layout.h.
3679         * realmpfr.c: Include stor-layout.h.
3680         * reg-stack.c: Include varasm.h.
3681         * sdbout.c: Include varasm.h.
3682         Include stor-layout.h.
3683         * simplify-rtx.c: Include varasm.h.
3684         * stmt.c: Include varasm.h.
3685         Include stor-layout.h.
3686         * stor-layout.c: Include stor-layout.h.
3687         Include stringpool.h.
3688         Include varasm.h.
3689         Include print-tree.h.
3690         * symtab.c: Include rtl.h.
3691         Include print-tree.h.
3692         Include varasm.h.
3693         Include function.h.
3694         Include emit-rtl.h.
3695         * targhooks.c: Include stor-layout.h.
3696         Include varasm.h.
3697         * toplev.c: Include varasm.h.
3698         Include tree-inline.h.
3699         * trans-mem.c: Include calls.h.
3700         Include function.h.
3701         Include rtl.h.
3702         Include emit-rtl.h.
3703         * tree-affine.c: Include expr.h.
3704         * tree-browser.c: Include print-tree.h.
3705         * tree-call-cdce.c: Include stor-layout.h.
3706         * tree-cfg.c: Include trans-mem.h.
3707         Include stor-layout.h.
3708         Include print-tree.h.
3709         * tree-complex.c: Include stor-layout.h.
3710         * tree-data-ref.c: Include expr.h.
3711         * tree-dfa.c: Include stor-layout.h.
3712         * tree-eh.c: Include expr.h.
3713         Include calls.h.
3714         * tree-emutls.c: Include stor-layout.h.
3715         Include varasm.h.
3716         * tree-if-conv.c: Include stor-layout.h.
3717         * tree-inline.c: Include stor-layout.h.
3718         Include calls.h.
3719         * tree-loop-distribution.c: Include stor-layout.h.
3720         * tree-nested.c: Include stringpool.h.
3721         Include stor-layout.h.
3722         * tree-object-size.c: Include tree-object-size.h.
3723         * tree-outof-ssa.c: Include stor-layout.h.
3724         * tree-parloops.c: Include stor-layout.h.
3725         Include tree-nested.h.
3726         * tree-pretty-print.c: Include stor-layout.h.
3727         Include expr.h.
3728         * tree-profile.c: Include varasm.h.
3729         Include tree-nested.h.
3730         * tree-scalar-evolution.c: Include expr.h.
3731         * tree-sra.c: Include stor-layout.h.
3732         * tree-ssa-address.c: Include stor-layout.h.
3733         * tree-ssa-ccp.c: Include stor-layout.h.
3734         * tree-ssa-dce.c: Include calls.h.
3735         * tree-ssa-dom.c: Include stor-layout.h.
3736         * tree-ssa-forwprop.c: Include stor-layout.h.
3737         * tree-ssa-ifcombine.c: Include stor-layout.h.
3738         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
3739         * tree-ssa-loop-niter.c: Include calls.h.
3740         Include expr.h.
3741         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
3742         * tree-ssa-math-opts.c: Include stor-layout.h.
3743         * tree-ssa-operands.c: Include stmt.h.
3744         Include print-tree.h.
3745         * tree-ssa-phiopt.c: Include stor-layout.h.
3746         * tree-ssa-reassoc.c: Include stor-layout.h.
3747         * tree-ssa-sccvn.c: Include stor-layout.h.
3748         * tree-ssa-sink.c: Include stor-layout.h.
3749         * tree-ssa-strlen.c: Include stor-layout.h.
3750         * tree-ssa-structalias.c: Include stor-layout.h.
3751         Include stmt.h.
3752         * tree-ssa-tail-merge.c: Include stor-layout.h.
3753         Include trans-mem.h.
3754         * tree-ssa-uncprop.c: Include stor-layout.h.
3755         * tree-ssa.c: Include stor-layout.h.
3756         * tree-ssanames.c: Include stor-layout.h.
3757         * tree-streamer-in.c: Include stringpool.h.
3758         * tree-streamer-out.c: Include stor-layout.h.
3759         * tree-switch-conversion.c: Include varasm.h.
3760         Include stor-layout.h.
3761         * tree-tailcall.c: Include stor-layout.h.
3762         * tree-vect-data-refs.c: Include stor-layout.h.
3763         * tree-vect-generic.c: Include stor-layout.h.
3764         * tree-vect-loop.c: Include stor-layout.h.
3765         * tree-vect-patterns.c: Include stor-layout.h.
3766         * tree-vect-slp.c: Include stor-layout.h.
3767         * tree-vect-stmts.c: Include stor-layout.h.
3768         * tree-vectorizer.c: Include stor-layout.h.
3769         * tree-vrp.c: Include stor-layout.h.
3770         Include calls.h.
3771         * tree.c: Include stor-layout.h.
3772         Include calls.h.
3773         Include attribs.h.
3774         Include varasm.h.
3775         * tsan.c: Include expr.h.
3776         * ubsan.c: Include stor-layout.h.
3777         Include stringpool.h.
3778         * value-prof.c: Include tree-nested.h.
3779         Include calls.h.
3780         * var-tracking.c: Include varasm.h.
3781         Include stor-layout.h.
3782         * varasm.c: Include stor-layout.h.
3783         Include stringpool.h.
3784         Include gcc-symtab.h.
3785         Include varasm.h.
3786         * varpool.c: Include varasm.h.
3787         * vmsdbgout.c: Include varasm.h.
3788         * xcoffout.c: Include varasm.h.
3790 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
3792         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
3793         use (.&-4) idiom.
3795 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3797         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
3799 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3800             Alan Modra  <amodra@gmail.com>
3802         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
3803         (RS6000_SAVE_TOC): Remove.
3804         (RS6000_TOC_SAVE_SLOT): New macro.
3805         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
3806         (rs6000_parm_start): Use it.
3807         (rs6000_function_arg_advance_1): Likewise.
3808         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
3809         (rs6000_emit_epilogue): Likewise.
3810         (rs6000_call_aix): Likewise.
3811         (rs6000_output_function_prologue): Do not save/restore r11
3812         around calling _mcount for ABI_ELFv2.
3814 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3815             Alan Modra  <amodra@gmail.com>
3817         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
3818         Add prototype.
3819         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
3820         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
3821         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
3822         (rs6000_function_parms_need_stack): Likewise.
3823         (rs6000_reg_parm_stack_space): Likewise.
3824         (rs6000_function_arg): Do not replace BLKmode by Pmode when
3825         returning a register argument.
3827 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3828             Michael Gschwind  <mkg@us.ibm.com>
3830         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
3831         (ALTIVEC_ARG_MAX_RETURN): Likewise.
3832         (FUNCTION_VALUE_REGNO_P): Use them.
3833         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
3834         (rs6000_return_in_msb): New function.
3835         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
3836         Handle aggregates of up to 16 bytes for ELFv2.
3837         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
3839 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3840             Michael Gschwind  <mkg@us.ibm.com>
3842         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3843         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3844         (rs6000_discover_homogeneous_aggregate): Likewise.
3845         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3846         (rs6000_function_arg_advance_1): Likewise.
3847         (rs6000_function_arg): Likewise.
3848         (rs6000_arg_partial_bytes): Likewise.
3849         (rs6000_psave_function_arg): Handle BLKmode arguments.
3851 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3852             Michael Gschwind  <mkg@us.ibm.com>
3854         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3855         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3856         (rs6000_discover_homogeneous_aggregate): Likewise.
3857         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3858         (rs6000_function_arg_advance_1): Likewise.
3859         (rs6000_function_arg): Likewise.
3860         (rs6000_arg_partial_bytes): Likewise.
3861         (rs6000_psave_function_arg): Handle BLKmode arguments.
3863 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3865         * config/rs6000/rs6000.c (machine_function): New member
3866         r2_setup_needed.
3867         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
3868         (rs6000_output_mi_thunk): Set r2_setup_needed.
3869         (rs6000_output_function_prologue): Output global entry point
3870         prologue and local entry point marker if needed for ABI_ELFv2.
3871         Output -mprofile-kernel code here.
3872         (output_function_profiler): Do not output -mprofile-kernel
3873         code here; moved to rs6000_output_function_prologue.
3874         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
3876         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
3877         (rs6000_output_function_entry): Likewise.
3878         (rs6000_assemble_integer): Likewise.
3879         (rs6000_elf_encode_section_info): Likewise.
3880         (rs6000_elf_declare_function_name): Do not create dot symbols
3881         or .opd section for ABI_ELFv2.
3883         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
3884         (rs6000_trampoline_init): Likewise.
3885         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
3887         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
3888         for function descriptors in ABI_ELFv2.
3890         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
3891         on ABI_AIX only, not ABI_ELFv2.
3892         ("*call_value_indirect_aix<mode>"): Likewise.
3893         ("*call_indirect_elfv2<mode>"): New pattern.
3894         ("*call_value_indirect_elfv2<mode>"): Likewise.
3896         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
3897         check for function descriptors in ABI_ELFv2.
3898         ("current_file_function_operand"): Likewise.
3900         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
3901         (toc): Undefine.
3902         (FUNC_NAME): Define ELFv2 variant.
3903         (JUMP_TARGET): Likewise.
3904         (FUNC_START): Likewise.
3905         (HIDDEN_FUNC): Likewise.
3906         (FUNC_END): Likeiwse.
3908 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3910         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
3911         and --with-abi=elfv2.
3912         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
3913         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
3914         (mabi=elfv2): Likewise.
3915         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
3916         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
3917         if !RS6000_BI_ARCH.
3918         (ELFv2_ABI_CHECK): New macro.
3919         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
3920         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
3921         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
3922         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
3923         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
3925         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
3926         (debug_stack_info): Likewise.
3927         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
3928         (rs6000_legitimize_tls_address): Likewise.
3929         (rs6000_conditional_register_usage): Likewise.
3930         (rs6000_emit_move): Likewise.
3931         (init_cumulative_args): Likewise.
3932         (rs6000_function_arg_advance_1): Likewise.
3933         (rs6000_function_arg): Likewise.
3934         (rs6000_arg_partial_bytes): Likewise.
3935         (rs6000_output_function_entry): Likewise.
3936         (rs6000_assemble_integer): Likewise.
3937         (rs6000_savres_strategy): Likewise.
3938         (rs6000_stack_info): Likewise.
3939         (rs6000_function_ok_for_sibcall): Likewise.
3940         (rs6000_emit_load_toc_table): Likewise.
3941         (rs6000_savres_routine_name): Likewise.
3942         (ptr_regno_for_savres): Likewise.
3943         (rs6000_emit_prologue): Likewise.
3944         (rs6000_emit_epilogue): Likewise.
3945         (rs6000_output_function_epilogue): Likewise.
3946         (output_profile_hook): Likewise.
3947         (output_function_profiler): Likewise.
3948         (rs6000_trampoline_size): Likewise.
3949         (rs6000_trampoline_init): Likewise.
3950         (rs6000_elf_output_toc_section_asm_op): Likewise.
3951         (rs6000_elf_encode_section_info): Likewise.
3952         (rs6000_elf_reloc_rw_mask): Likewise.
3953         (rs6000_elf_declare_function_name): Likewise.
3954         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
3955         except that rs6000_compat_align_parm is always assumed false.
3956         (rs6000_gimplify_va_arg): Likewise.
3957         (rs6000_call_aix): Update comment.
3958         (rs6000_sibcall_aix): Likewise.
3959         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
3960         Treat ABI_ELFv2 the same as ABI_AIX.
3961         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3962         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
3963         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3964         ("load_toc_aix_si"): Likewise.
3965         ("load_toc_aix_di"): Likewise.
3966         ("call"): Likewise.
3967         ("call_value"): Likewise.
3968         ("*call_local_aix<mode>"): Likewise.
3969         ("*call_value_local_aix<mode>"): Likewise.
3970         ("*call_nonlocal_aix<mode>"): Likewise.
3971         ("*call_value_nonlocal_aix<mode>"): Likewise.
3972         ("*call_indirect_aix<mode>"): Likewise.
3973         ("*call_value_indirect_aix<mode>"): Likewise.
3974         ("sibcall"): Likewise.
3975         ("sibcall_value"): Likewise.
3976         ("*sibcall_aix<mode>"): Likewise.
3977         ("*sibcall_value_aix<mode>"): Likewise.
3978         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
3979         ("current_file_function_operand"): Likewise.
3981 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3983         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
3984         by making use of the fact that for vector / floating point arguments
3985         passed both in VRs/FPRs and in the fixed parameter area, the partial
3986         bytes mechanism is in fact not used.
3988 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3990         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
3991         (rs6000_finish_function_arg): Likewise.
3992         (rs6000_function_arg): Use rs6000_psave_function_arg and
3993         rs6000_finish_function_arg to handle both vector and floating
3994         point arguments that are also passed in GPRs / the stack.
3996 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3998         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
3999         (USE_ALTIVEC_FOR_ARG_P): Likewise.
4000         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
4001         (rs6000_function_arg_advance_1):Likewise.
4002         (rs6000_darwin64_record_arg_recurse): Likewise.
4003         (rs6000_function_arg): Likewise.
4004         (rs6000_arg_partial_bytes): Likewise.
4006 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4008         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
4009         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
4010         (rs6000_savres_strategy): Likewise.
4011         (rs6000_return_addr): Likewise.
4012         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
4013         testing for ABI_V4 (since ABI_DARWIN is impossible here).
4014         (rs6000_emit_prologue): Likewise.
4015         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
4016         (rs6000_elf_declare_function_name): Remove duplicated test.
4017         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
4018         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
4019         ("load_toc_v4_PIC_1_normal"): Likewise.
4020         ("load_toc_v4_PIC_1_476"): Likewise.
4021         ("load_toc_v4_PIC_1b"): Likewise.
4022         ("load_toc_v4_PIC_1b_normal"): Likewise.
4023         ("load_toc_v4_PIC_1b_476"): Likewise.
4024         ("load_toc_v4_PIC_2"): Likewise.
4025         ("load_toc_v4_PIC_3b"): Likewise.
4026         ("load_toc_v4_PIC_3c"): Likewise.
4027         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
4028         (RS6000_SAVE_AREA): Likewise.
4029         (FP_ARG_MAX_REG): Likewise.
4030         (RETURN_ADDRESS_OFFSET): Likewise.
4031         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
4032         of ABI_AIX.
4033         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4034         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4036 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4038         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
4039         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
4040         Create call insn directly instead of via various gen_... routines.
4041         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
4042         (rs6000_sibcall_aix): New function.
4043         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
4044         (TOC_SAVE_OFFSET_64BIT): Likewise.
4045         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
4046         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
4047         (AIX_FUNC_DESC_SC_32BIT): Likewise.
4048         (AIX_FUNC_DESC_SC_64BIT): Likewise.
4049         ("call" expander): Call rs6000_call_aix.
4050         ("call_value" expander): Likewise.
4051         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
4052         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4053         ("*call_indirect_aix<mode>"): ... by this insn pattern.
4054         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
4055         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4056         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
4057         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
4058         ("*call_nonlocal_aix<mode>"): ... this pattern.
4059         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
4060         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
4061         ("*call_local_aix<mode>"): New insn pattern.
4062         ("*call_value_local_aix<mode>"): Likewise.
4063         ("sibcall" expander): Call rs6000_sibcall_aix.
4064         ("sibcall_value" expander): Likewise.  Move earlier in file.
4065         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
4066         ("*sibcall_aix<mode>"): ... this pattern.
4067         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
4068         ("*sibcall_value_aix<mode>"): ... this pattern.
4069         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
4070         (rs6000_call_aix): Add prototype.
4071         (rs6000_sibcall_aix): Likewise.
4073 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
4075         PR sanitizer/59122
4076         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
4077         isn't confused by the artificial decl.
4079 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4081         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
4082         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
4083         Instead, add USEs of all modified call-saved CR fields to the
4084         insn storing the result to the stack slot, and provide an
4085         appropriate REG_FRAME_RELATED_EXPR for that insn.
4086         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
4087         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
4089 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4090             Alan Modra  <amodra@gmail.com>
4092         * function.c (assign_parms): Use all.reg_parm_stack_space instead
4093         of re-evaluating REG_PARM_STACK_SPACE target macro.
4094         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
4095         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
4096         (assign_parm_find_entry_rtl): Update call.
4097         * calls.c (initialize_argument_information): Update call.
4098         (emit_library_call_value_1): Likewise.
4099         * expr.h (locate_and_pad_parm): Update prototype.
4101 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4103         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
4104         arguments.
4106 2013-11-14  DJ Delorie  <dj@redhat.com>
4108         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
4109         to 16 bits.
4111 2013-11-14  Jeff Law  <law@redhat.com>
4113         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
4114         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
4116 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4118         * doc/invoke.texi: Update documentation for AArch64's -mcpu
4119         and -mtune options.
4121 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4123         * config/aarch64/aarch64-cores.def (example-1): Remove.
4124         (example-2): Likewise.
4125         * config/aarch64/aarch64-tune.md: Regenerate.
4126         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
4127         (generic_sched): Remove "large", "small".
4128         * config/aarch64/large.md: Delete.
4129         * config/aarch64/small.md: Delete.
4131 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4133         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
4134         * config/aarch64/aarch64-tune.md: Regenerate.
4135         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
4136         (generic_sched): "no" if we are tuning for cortexa15.
4137         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
4138         relative path.
4140 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4142         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
4143         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
4144         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
4145         (all_cores): Use cortexa53 when tuning for "generic".
4146         (aarch64_override_options): Fix comment.
4147         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
4148         * config/aarch64/aarch64-generic.md: Delete.
4150 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4152         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
4154 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4156         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
4157         (generic_rtx_cost_table): Remove.
4158         (aarch64_rtx_costs): Use fields from cpu_cost_table.
4159         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
4160         insn_extra_cost.
4161         (cpu_rtx_cost_table): Remove.
4163 2013-11-14  Julian Brown  <julian@codesourcery.com>
4164             Joey Ye  <joey.ye@arm.com>
4166         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
4167         (arm_v7m_tune): New.
4168         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
4169         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
4170         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
4171         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
4173 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
4175         PR target/57491
4176         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
4177         flag setting.
4179 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
4180             Uros Bizjak  <ubizjak@gmail.com>
4182         PR target/59101
4183         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
4184         operands[2] satisfies_constraint_Z that might have bit 31 set.
4186 2013-11-13  Jeff Law  <law@redhat.com>
4188         PR tree-optimization/59102
4189         * gimple-ssa-isolate-paths.c
4190         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
4191         gimple assignment before looking at gimple_assign_lhs.
4193 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4195         * ira.c: Add comment about threads at the top of file.
4197 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4199         * ira-color.c (coalesce_allocnos): Don't allocate and free
4200         sorted_copies.
4202 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4204         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
4205         equality for GIMPLE_ASSIGN.
4207 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4209         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
4210         function out of ...
4211         (gimple_equal_p): ... here.
4213 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4215         * trans-mem.c (is_tm_ending): New function.
4216         * gimple.h (is_tm_ending): Declare.
4217         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
4218         BUILT_IN_TM_COMMIT.
4219         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
4221 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4223         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
4225 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
4227         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
4228         (struct walk_stmt_info):  Relocate here from gimple.h.
4229         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
4230         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
4231         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4232         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4233         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4234         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4235         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
4236         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
4237         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4238         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4239         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4240         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4241         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
4242         (struct walk_stmt_info): Move to gimple-walk.h.
4243         (gimple_seq_set_location): Move to gimple.c
4244         * gimple-walk.c: New File.
4245         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
4246         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
4247         walk_stmt_load_store_ops): Relocate here from gimple.c.
4248         * gimple-iterator.c: Include gimple-iterator.h.
4249         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
4250         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
4251         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
4252         gimple-walk.c.
4253         (gimple_seq_set_location): Relocate from gimple.h.
4254         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
4255         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
4256         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
4257         * Makefile.in (OBJS): Add gimple-walk.o
4258         * asan.c: Update Include list as required for gimple-iterator.h and
4259         gimple-walk.h.
4260         * cfgexpand.c: Likewise.
4261         * cfgloop.c: Likewise.
4262         * cfgloopmanip.c: Likewise.
4263         * cgraph.c: Likewise.
4264         * cgraphbuild.c: Likewise.
4265         * cgraphunit.c: Likewise.
4266         * gimple-fold.c: Likewise.
4267         * gimple-low.c: Likewise.
4268         * gimple-pretty-print.c: Likewise.
4269         * gimple-ssa-isolate-paths.c: Likewise.
4270         * gimple-ssa-strength-reduction.c: Likewise.
4271         * gimple-streamer-in.c: Likewise.
4272         * gimple-streamer-out.c: Likewise.
4273         * gimplify.c: Likewise.
4274         * graphite-blocking.c: Likewise.
4275         * graphite-clast-to-gimple.c: Likewise.
4276         * graphite-dependences.c: Likewise.
4277         * graphite-interchange.c: Likewise.
4278         * graphite-optimize-isl.c: Likewise.
4279         * graphite-poly.c: Likewise.
4280         * graphite-scop-detection.c: Likewise.
4281         * graphite-sese-to-poly.c: Likewise.
4282         * graphite.c: Likewise.
4283         * ipa-inline-analysis.c: Likewise.
4284         * ipa-profile.c: Likewise.
4285         * ipa-prop.c: Likewise.
4286         * ipa-pure-const.c: Likewise.
4287         * ipa-split.c: Likewise.
4288         * lto-streamer-in.c: Likewise.
4289         * lto-streamer-out.c: Likewise.
4290         * omp-low.c: Likewise.
4291         * predict.c: Likewise.
4292         * profile.c: Likewise.
4293         * sese.c: Likewise.
4294         * tracer.c: Likewise.
4295         * trans-mem.c: Likewise.
4296         * tree-call-cdce.c: Likewise.
4297         * tree-cfg.c: Likewise.
4298         * tree-cfgcleanup.c: Likewise.
4299         * tree-complex.c: Likewise.
4300         * tree-data-ref.c: Likewise.
4301         * tree-dfa.c: Likewise.
4302         * tree-eh.c: Likewise.
4303         * tree-emutls.c: Likewise.
4304         * tree-if-conv.c: Likewise.
4305         * tree-inline.c: Likewise.
4306         * tree-into-ssa.c: Likewise.
4307         * tree-loop-distribution.c: Likewise.
4308         * tree-nested.c: Likewise.
4309         * tree-nrv.c: Likewise.
4310         * tree-object-size.c: Likewise.
4311         * tree-outof-ssa.c: Likewise.
4312         * tree-parloops.c: Likewise.
4313         * tree-predcom.c: Likewise.
4314         * tree-profile.c: Likewise.
4315         * tree-scalar-evolution.c: Likewise.
4316         * tree-sra.c: Likewise.
4317         * tree-ssa-ccp.c: Likewise.
4318         * tree-ssa-coalesce.c: Likewise.
4319         * tree-ssa-copy.c: Likewise.
4320         * tree-ssa-copyrename.c: Likewise.
4321         * tree-ssa-dce.c: Likewise.
4322         * tree-ssa-dom.c: Likewise.
4323         * tree-ssa-dse.c: Likewise.
4324         * tree-ssa-forwprop.c: Likewise.
4325         * tree-ssa-ifcombine.c: Likewise.
4326         * tree-ssa-live.c: Likewise.
4327         * tree-ssa-loop-ch.c: Likewise.
4328         * tree-ssa-loop-im.c: Likewise.
4329         * tree-ssa-loop-ivcanon.c: Likewise.
4330         * tree-ssa-loop-ivopts.c: Likewise.
4331         * tree-ssa-loop-manip.c: Likewise.
4332         * tree-ssa-loop-niter.c: Likewise.
4333         * tree-ssa-loop-prefetch.c: Likewise.
4334         * tree-ssa-loop.c: Likewise.
4335         * tree-ssa-math-opts.c: Likewise.
4336         * tree-ssa-phiopt.c: Likewise.
4337         * tree-ssa-phiprop.c: Likewise.
4338         * tree-ssa-pre.c: Likewise.
4339         * tree-ssa-propagate.c: Likewise.
4340         * tree-ssa-reassoc.c: Likewise.
4341         * tree-ssa-sink.c: Likewise.
4342         * tree-ssa-strlen.c: Likewise.
4343         * tree-ssa-structalias.c: Likewise.
4344         * tree-ssa-tail-merge.c: Likewise.
4345         * tree-ssa-ter.c: Likewise.
4346         * tree-ssa-threadedge.c: Likewise.
4347         * tree-ssa-threadupdate.c: Likewise.
4348         * tree-ssa-uncprop.c: Likewise.
4349         * tree-ssa-uninit.c: Likewise.
4350         * tree-ssa.c: Likewise.
4351         * tree-stdarg.c: Likewise.
4352         * tree-switch-conversion.c: Likewise.
4353         * tree-tailcall.c: Likewise.
4354         * tree-vect-data-refs.c: Likewise.
4355         * tree-vect-generic.c: Likewise.
4356         * tree-vect-loop-manip.c: Likewise.
4357         * tree-vect-loop.c: Likewise.
4358         * tree-vect-patterns.c: Likewise.
4359         * tree-vect-slp.c: Likewise.
4360         * tree-vect-stmts.c: Likewise.
4361         * tree-vectorizer.c: Likewise.
4362         * tree-vrp.c: Likewise.
4363         * tree.c: Likewise.
4364         * tsan.c: Likewise.
4365         * value-prof.c: Likewise.
4366         * vtable-verify.c: Likewise.
4368 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
4370         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
4371         fix.
4373 2013-11-13  Jeff Law  <law@redhat.com>
4375         * PR middle-end/59119
4376         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
4377         function, extracted from gimple_ssa_isolate_erroneous_paths.
4378         (find_explicit_erroneous_behaviour): Similarly.
4379         (insert_trap_and_remove_trailing_statements): Remove statements
4380         in reverse order.
4382 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
4384         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
4385         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
4386         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
4387         looking at INSN_CODE.
4388         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
4389         active_insn_p object, respect basic block boundaries.
4390         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
4391         follows immediately after the jump table data label.
4392         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
4393         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
4394         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
4396 2013-11-13  Teresa Johnson  <tejohnson@google.com>
4398         PR ipa/58862
4399         * predict.c (drop_profile): Error is currently too strict.
4400         (handle_missing_profiles): Pass call_count to drop_profile.
4402 2013-11-13  Teresa Johnson  <tejohnson@google.com>
4404         PR ipa/58862
4405         * ipa-inline.c (edge_badness): Fix overflow.
4407 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4409         PR rtl-optimization/59036
4410         * ira-color.c (struct allocno_color_data): Add new members
4411         first_thread_allocno, next_thread_allocno, thread_freq.
4412         (sorted_copies): New static var.
4413         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
4414         (allocno_thread_conflict_p, merge_threads)
4415         (form_threads_from_copies, form_threads_from_bucket)
4416         (form_threads_from_colorable_allocno, init_allocno_threads): New
4417         functions.
4418         (bucket_allocno_compare_func): Add comparison by thread frequency
4419         and threads.
4420         (add_allocno_to_ordered_bucket): Rename to
4421         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
4422         (push_only_colorable): Call form_threads_from_bucket.
4423         (color_pass): Call init_allocno_threads.  Use
4424         consideration_allocno_bitmap instead of coloring_allocno_bitmap
4425         for nuillify allocno color data.
4426         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
4427         (coalesce_allocnos): Use static sorted copies.
4429 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
4431         * passes.c (execute_todo): Don't call do_per_function if
4432         flags are zero.
4433         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
4434         execute_function_dump if dump_file is NULL.
4436 2013-11-13  Martin Jambor  <mjambor@suse.cz>
4438         * cgraph.c (cgraph_get_create_node): Do what
4439         cgraph_get_create_real_symbol_node used to do.
4440         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
4441         call cgraph_get_create_node.
4442         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
4443         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
4444         cgraph_get_create_node.  Assert we get a node.
4446 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
4448         * config/aarch64/aarch64-simd.md (vec_extract): New.
4450 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
4452         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
4453         the constraint.
4455 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
4457         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
4458         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
4459         or if optimization is enabled.
4460         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
4461         require that all the names based on a PARM_DECL or a RESULT_DECL that
4462         isn't ignored for debug info be coalesced.
4464 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4466         * config/c6x/c6x.c: Include "gimple-expr.h".
4468 2013-11-13  Richard Biener  <rguenther@suse.de>
4470         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
4471         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
4472         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
4473         dealing with type mismatches inside component reference chains.
4475 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
4477         PR tree-optimization/59077
4478         * ipa-pure-const.c (better_state): Update *state.
4480 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
4482         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
4483         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
4484         Update offset calculations.
4486 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
4488         PR ada/35998
4489         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
4490         for fields.  Do not add the attribute if the size is negative.
4492 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4494         * config/arm/arm.c: Include aarch-cost-tables.h.
4495         (generic_extra_costs): Move from here...
4496         * config/arm/aarch-cost-tables.h: ... To here.  New file.
4498 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4499             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4500             Sergey Lega  <sergey.s.lega@intel.com>
4501             Anna Tikhonova  <anna.tikhonova@intel.com>
4502             Ilya Tocar  <ilya.tocar@intel.com>
4503             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4504             Ilya Verbin  <ilya.verbin@intel.com>
4505             Kirill Yukhin  <kirill.yukhin@intel.com>
4506             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4508         * config/i386/i386.c (ix86_print_operand): Support z-masking.
4509         * config/i386/predicate.md (const_0_to_4_operand): New.
4510         (const_0_to_5_operand): Ditto.
4511         * config/i386/sse.md (UNSPEC_COMPRESS): New.
4512         (UNSPEC_COMPRESS_STORE): Ditto.
4513         (UNSPEC_EXPAND): Ditto.
4514         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
4515         (define_mode_attr ssescalarsize): Ditto.
4516         (avx512f_load<mode>_mask): Ditto.
4517         (avx512f_store<mode>_mask): Ditto.
4518         (avx512f_storedqu<mode>_mask): Ditto.
4519         (avx512f_vmcmp<mode>3_mask): Ditto.
4520         (avx512f_fmadd_<mode>_mask): Ditto.
4521         (avx512f_fmadd_<mode>_mask3): Ditto.
4522         (avx512f_fmsub_<mode>_mask): Ditto.
4523         (avx512f_fmsub_<mode>_mask3): Ditto.
4524         (avx512f_fnmadd_<mode>_mask): Ditto.
4525         (avx512f_fnmadd_<mode>_mask3): Ditto.
4526         (avx512f_fnmsub_<mode>_mask): Ditto.
4527         (avx512f_fnmsub_<mode>_mask3): Ditto.
4528         (avx512f_fmaddsub_<mode>_mask): Ditto.
4529         (avx512f_fmaddsub_<mode>_mask3): Ditto.
4530         (avx512f_fmsubadd_<mode>_mask): Ditto.
4531         (avx512f_fmsubadd_<mode>_mask3): Ditto.
4532         (vec_unpacku_float_lo_v16si): Ditto.
4533         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
4534         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
4535         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
4536         (vec_extract_lo_<mode>_maskm): Ditto.
4537         (vec_extract_hi_<mode>_maskm): Ditto.
4538         (avx512f_vternlog<mode>_mask): Ditto.
4539         (avx512f_shufps512_mask): Ditto.
4540         (avx512f_fixupimm<mode>_mask): Ditto.
4541         (avx512f_shufpd512_mask): Ditto.
4542         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
4543         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
4544         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
4545         (ashr<mode>3<mask_name>): Ditto.
4546         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
4547         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
4548         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
4549         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
4550         (avx512f_pshufdv3_mask): Ditto.
4551         (avx512f_perm<mode>_mask): Ditto.
4552         (avx512f_vpermi2var<mode>3_mask): Ditto.
4553         (avx512f_vpermt2var<mode>3_mask): Ditto.
4554         (avx512f_compress<mode>_mask): Ditto.
4555         (avx512f_compressstore<mode>_mask): Ditto.
4556         (avx512f_expand<mode>_mask): Ditto.
4557         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
4558         to support masking.
4559         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
4560         (<plusminus_insn><mode>3<mask_name>): Ditto.
4561         (*<plusminus_insn><mode>3<mask_name>): Ditto.
4562         (mul<mode>3<mask_name>): Ditto.
4563         (*mul<mode>3<mask_name>): Ditto.
4564         (<sse>_div<mode>3<mask_name>): Ditto.
4565         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
4566         (<sse>_sqrt<mode>2<mask_name>): Ditto.
4567         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
4568         (<code><mode>3<mask_name>/smaxmin): Ditto.
4569         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
4570         (*<code><mode>3<mask_name>/smaxmin): Ditto.
4571         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
4572         (ufloatv16siv16sf2<mask_name>): Ditto.
4573         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
4574         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
4575         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
4576         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
4577         (ufloatv8siv8df<mask_name>): Ditto.
4578         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
4579         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
4580         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
4581         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
4582         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
4583         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
4584         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
4585         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
4586         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
4587         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4588         (vec_extract_lo_<mode><mask_name>): Ditto.
4589         (vec_extract_hi_<mode><mask_name>): Ditto.
4590         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
4591         (avx512f_movddup512<mask_name>): Ditto.
4592         (avx512f_unpcklpd512<mask_name>): Ditto.
4593         (*avx512f_unpcklpd512<mask_name>): Ditto.
4594         (*avx512f_vmscalef<mode>): Ditto.
4595         (avx512f_scalef<mode><mask_name>): Ditto.
4596         (avx512f_getexp<mode><mask_name>): Ditto.
4597         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
4598         (avx512f_rndscale<mode><mask_name>): Ditto.
4599         (avx512f_shufps512_1<mask_name>): Ditto.
4600         (avx512f_shufpd512_1<mask_name>): Ditto.
4601         (<plusminus_insn><mode>3<mask_name>): Ditto.
4602         (*<plusminus_insn><mode>3<mask_name>): Ditto.
4603         (vec_widen_umult_even_v16si<mask_name>): Ditto.
4604         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
4605         (vec_widen_smult_even_v16si<mask_name>): Ditto.
4606         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
4607         (mul<mode>3<mask_name>): Ditto.
4608         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
4609         (<shift_insn><mode>3<mask_name>): Ditto.
4610         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
4611         (avx512f_<rotate><mode><mask_name>): Ditto.
4612         (<code><mode>3<mask_name>/maxmin): Ditto.
4613         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
4614         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
4615         (*andnot<mode>3<mask_name>): Ditto.
4616         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
4617         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
4618         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
4619         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
4620         (vec_set_lo_<mode><mask_name>): Ditto.
4621         (vec_set_hi_<mode><mask_name>): Ditto.
4622         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
4623         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
4624         (avx512f_pshufd_1<mask_name>): Ditto.
4625         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
4626         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
4627         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
4628         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
4629         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
4630         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
4631         (avx512er_exp2<mode><mask_name>): Ditto.
4632         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
4633         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
4634         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
4635         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
4636         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
4637         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
4638         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
4639         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
4640         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
4641         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
4642         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
4643         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
4644         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
4645         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
4646         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
4647         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
4648         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
4649         (avx512f_getmant<mode><mask_name>): Ditto.
4650         (clz<mode>2<mask_name>): Ditto.
4651         (<mask_codefor>conflict<mode><mask_name>): Ditto.
4652         (*srcp14<mode>): Remove visibility.
4653         (*rsqrt14<mode>): Ditto.
4654         (*fma_fmsub_<mode>): Ditto.
4655         (*fma_fnmadd_<mode>): Ditto.
4656         (*avx512f_rndscale<mode>): Ditto.
4657         * config/i386/subst.md: New file.
4659 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
4661         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
4662         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
4663         (atomic_load_explicit, atomic_exchange_explicit)
4664         (atomic_compare_exchange_strong_explicit)
4665         (atomic_compare_exchange_weak_explicit): Use __auto_type to
4666         declare variable initialized with PTR argument.
4668 2013-11-12  Jeff Law  <law@redhat.com>
4670         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
4671         backedge_seen_p.  Set, use and pass it to children appropriately.
4672         (thread_through_normal_block): Similarly.
4673         (thread_across_edge): Similarly.
4675         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
4676         memory references as volatile.
4677         (insert_trap_and_remove_trailing_statements): Fix comment.
4679 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
4681         PR other/58712
4682         * ira-costs.c (record_operand_costs): Check operands number for
4683         the single set.
4685 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4687         PR target/59054
4688         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
4689         constraints that would allow DImode into the traditional Altivec
4690         registers, but cause undesirable code generation when loading 0 as
4691         a constant.
4692         (movdi_internal64): Likewise.
4693         (cmp<mode>_fpr): Do not use %x for CR register output.
4694         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
4695         -mallow-upper-sf debug switches are used.
4697 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
4699         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
4700         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
4701         Relocate prototypes from gimple.h.
4702         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
4703         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
4704         from gimple.h.
4705         * gimple.h: Move some prototypes to gimplify.h.
4706         (gimple_predicate, enum fallback, enum gimplify_status): Move to
4707         gimplify.h.
4708         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
4709         Relocate from gimpify.c.
4710         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4711         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
4712         is_gimple_reg_rhs) Relocate from gimplify.c.
4713         * gimplify.c (mark_addressable): Move to gimple-expr.c.
4714         (gimple_seq_add_stmt_without_update): Move to gimple.c.
4715         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4716         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
4717         is_gimple_reg_rhs): Move to gimple-expr.c.
4718         (should_carry_location_p): Move to gimple.c.
4719         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
4720         to gimple.h.
4721         (annotate_one_with_location, annotate_all_with_location_after,
4722         annotate_all_with_location): Move to gimple.c.
4723         (compare_case_labels, sort_case_labels,
4724         preprocess_case_label_vec_for_gimple): Move to gimple.c.
4725         (rhs_predicate_for): Make static.
4726         (gimplify_assign): Relocate from gimple.c.
4727         * gimple.c (gimplify_assign): Move to gimplify.c.
4728         (gimple_seq_add_stmt_without_update, should_carry_location_p,
4729         annotate_one_with_location, annotate_all_with_location_after,
4730         annotate_all_with_location, compare_case_labels, sort_case_labels,
4731         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
4732         * tree.h (unshare_expr, unshare_expr_without_location,
4733         mark_addressable): Move prototypes to gimplify.h.
4734         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
4735         tmp_var_id_num
4736         * asan.c: Include gimplify.h rather than gimple.h.
4737         * cfgloopmanip.c: Likewise.
4738         * cgraphunit.c: Likewise.
4739         * cilk-common.c: Likewise.
4740         * dwarf2out.c: Dont include gimple.h.
4741         * fold-const.c: Include gimplify.h rather than gimple.h.
4742         * function.c: Likewise.
4743         * gimple-fold.c: Likewise.
4744         * gimple-ssa-strength-reduction.c: Likewise.
4745         * graphite-clast-to-gimple.c: Likewise.
4746         * graphite-sese-to-poly.c: Likewise.
4747         * ipa-prop.c: Likewise.
4748         * ipa-split.c: Likewise.
4749         * ipa.c: Likewise.
4750         * langhooks.c: Dont include gimple.h.
4751         * loop-init.c: Include gimplify.h rather than gimple.h.
4752         * omp-low.c: Likewise.
4753         * sese.c: Likewise.
4754         * stor-layout.c: Likewise.
4755         * targhooks.c: Likewise.
4756         * trans-mem.c: Likewise.
4757         * tree-affine.c: Likewise.
4758         * tree-cfg.c: Likewise.
4759         * tree-cfgcleanup.c: Likewise.
4760         * tree-complex.c: Likewise.
4761         * tree-if-conv.c: Likewise.
4762         * tree-inline.c: Likewise.
4763         * tree-iterator.c: Likewise.
4764         * tree-loop-distribution.c: Likewise.
4765         * tree-nested.c: Likewise.
4766         * tree-parloops.c: Likewise.
4767         * tree-predcom.c: Likewise.
4768         * tree-profile.c: Likewise.
4769         * tree-scalar-evolution.c: Likewise.
4770         * tree-sra.c: Likewise.
4771         * tree-ssa-address.c: Likewise.
4772         * tree-ssa-ccp.c: Likewise.
4773         * tree-ssa-dce.c: Likewise.
4774         * tree-ssa-forwprop.c: Likewise.
4775         * tree-ssa-ifcombine.c: Likewise.
4776         * tree-ssa-loop-im.c: Likewise.
4777         * tree-ssa-loop-ivopts.c: Likewise.
4778         * tree-ssa-loop-manip.c: Likewise.
4779         * tree-ssa-loop-niter.c: Likewise.
4780         * tree-ssa-loop-prefetch.c: Likewise.
4781         * tree-ssa-loop-unswitch.c: Likewise.
4782         * tree-ssa-math-opts.c: Likewise.
4783         * tree-ssa-phiopt.c: Likewise.
4784         * tree-ssa-phiprop.c: Likewise.
4785         * tree-ssa-pre.c: Likewise.
4786         * tree-ssa-propagate.c: Likewise.
4787         * tree-ssa-reassoc.c: Likewise.
4788         * tree-ssa-sccvn.c: Likewise.
4789         * tree-ssa-strlen.c: Likewise.
4790         * tree-ssa.c: Likewise.
4791         * tree-switch-conversio: Likewise.n.c
4792         * tree-tailcall.c: Likewise.
4793         * tree-vect-data-refs.c: Likewise.
4794         * tree-vect-generic.c: Likewise.
4795         * tree-vect-loop-manip.c: Likewise.
4796         * tree-vect-loop.c: Likewise.
4797         * tree-vect-patterns.c: Likewise.
4798         * tree-vect-stmts.c: Likewise.
4799         * tsan.c: Likewise.
4800         * value-prof.c: Likewise.
4801         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
4802         * config/alpha/alpha.c: Likewise.
4803         * config/darwin.c: Likewise.
4804         * config/i386/i386.c: Likewise.
4805         * config/ia64/ia64.c: Likewise.
4806         * config/mep/mep.c: Likewise.
4807         * config/mips/mips.c: Likewise.
4808         * config/rs6000/rs6000.c: Likewise.
4809         * config/s390/s390.c: Likewise.
4810         * config/sh/sh.c: Likewise.
4811         * config/sparc/sparc.c: Likewise.
4812         * config/spu/spu.c: Likewise.
4813         * config/stormy16/stormy16.c: Likewise.
4814         * config/tilegx/tilegx.c: Likewise.
4815         * config/tilepro/tilepro.c: Likewise.
4816         * config/xtensa/xtensa.c: Likewise.
4818 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
4820         * tree.c (grow_tree_vec_stat): New function ...
4821         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
4822         and macro front-end.
4824 2013-11-12  Marek Polacek  <polacek@redhat.com>
4826         * final.c (update_alignments): Initialize label to NULL_RTX.
4828 2013-11-12  Jeff Law  <law@redhat.com>
4830         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
4831         (insert_trap_and_remove_trailing_statements): New argument OP which
4832         is the NULL pointer.  Emit the trap after the load/store through
4833         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
4834         when trivial to do so.
4835         (isolate_path): Corresponding changes.
4836         (gimple_ssa_isolate_erroneous_path): Likewise.
4838 2013-11-12  Teresa Johnson  <tejohnson@google.com>
4839             Jan Hubicka  <jh@suse.cz>
4841         * predict.c (drop_profile): New function.
4842         (handle_missing_profiles): Ditto.
4843         (counts_to_freqs): Don't overwrite estimated frequencies
4844         when function has no profile counts.
4845         * predict.h (handle_missing_profiles): Declare.
4846         * tree-inline.c (freqs_to_counts): New function.
4847         (copy_cfg_body): Invoke freqs_to_counts as needed.
4848         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
4850 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
4852         PR target/59088
4853         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
4854         Set for m_HASWELL.
4855         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
4857 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
4859         PR target/59084
4860         * config/i386/i386.c (ix86_option_override_internal): Check
4861         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
4862         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
4863         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
4864         MASK_AVX256_SPLIT_UNALIGNED_STORE.
4866         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
4867         Clear m_COREI7_AVX and update comments.
4868         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
4870 2013-11-12  Martin Jambor  <mjambor@suse.cz>
4872         PR rtl-optimization/10474
4873         * ira.c (interesting_dest_for_shprep): New function.
4874         (split_live_ranges_for_shrink_wrap): Likewise.
4875         (find_moveable_pseudos): Move calculation of dominance info,
4876         df_analysios and the final anlyses to...
4877         (ira): ...here, call split_live_ranges_for_shrink_wrap.
4879 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
4881         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
4882         Handle type conversion.
4884 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
4885             Jan Hubicka  <jh@suse.cz>
4887         * cgraph.c (dump_cgraph_node): Profile dump added.
4888         * cgraph.h (struct cgraph_node): New time profile variable added.
4889         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
4890         * gcov-io.h (gcov_type): New profiler type introduced.
4891         * ipa-profile.c (lto_output_node): Streaming for time profile added.
4892         (input_node): Time profiler is read from LTO stream.
4893         * predict.c (maybe_hot_count_p): Hot prediction changed.
4894         * profile.c (instrument_values): New case for time profiler added.
4895         (compute_value_histograms): Read of time profile.
4896         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
4897         * tree-profile.c (init_ic_make_global_vars): Time profiler
4898         function added.
4899         (gimple_init_edge_profiler): TP function instrumentation.
4900         (gimple_gen_time_profiler): New.
4901         * value-prof.c (gimple_add_histogram_value): Support for time profiler
4902         added.
4903         (dump_histogram_value): TP type added to dumps.
4904         (visit_hist): More sensitive check that takes TP into account.
4905         (gimple_find_values_to_profile): TP instrumentation.
4906         * value-prof.h (hist_type): New histogram type added.
4907         (struct histogram_value_t): Pointer to struct function added.
4908         * libgcc/Makefile.in: New GCOV merge function for TP added.
4909         * libgcov.c: function_counter variable introduced.
4910         (_gcov_merge_time_profile): New.
4911         (_gcov_time_profiler): New.
4913 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
4914             Jeff Law  <law@redhat.com>
4916         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
4917         ao_ref_init_from_ptr_and_size for builtins.
4919 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
4920             H.J. Lu  <hongjiu.lu@intel.com>
4922         PR target/58853
4923         * config/i386/x86-tune.def
4924         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4925         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
4926         * config/i386/i386.h
4927         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4928         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
4929         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
4930         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
4931         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
4932         misaligned_prologue_used.  Check that
4933         desired_aling <= epilogue_size_needed.
4935 2013-11-11  Cong Hou  <congh@google.com>
4937         PR tree-optimization/59050
4938         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
4940 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
4942         PR middle-end/59049
4943         * expmed.c (emit_store_flag): Fail for const-const comparison.
4945 2013-11-11  Tristan Gingold  <gingold@adacore.com>
4946             Eric Botcazou  <ebotcazou@adacore.com>
4948         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
4949         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
4950         * tree.def (CONSTRUCTOR): Likewise.
4951         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
4952         * gimplify.c (gimplify_init_constructor): Do not clear the object when
4953         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
4955 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
4957         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
4958         diagnostic_finish.
4960 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4962         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
4963         comparisons.
4965 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
4967         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
4969 2013-11-08  Jeff Law  <law@redhat.com>
4971         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
4972         threading paths first, then perform PHI node checks if applicable.
4974 2013-11-10  Karlson2k  <k2k@narod.ru>
4975             Kai Tietz  <ktietz@redhat.com>
4977         PR plugin/52872
4978         * configure.ac: Adding for exported symbols check
4979         and for rdynamic-check executable-extension.
4980         * configure: Regenerated.
4982 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
4984         * mode-switching.c (optimize_mode_switching): Mark block as
4985         nontransparent, if last_mode at block exit is different from no_mode.
4987 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4989         * function.c (NAME__MAIN): Move to...
4990         * cfgexpand.c (NAME__MAIN): ...here.
4992 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
4994         * target.def (can_use_doloop_p): New hook.
4995         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
4996         * doc/tm.texi: Regenerate.
4997         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
4998         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
4999         * hooks.c (hook_bool_dint_dint_uint_true): New function.
5000         * targhooks.h (can_use_doloop_if_innermost): Declare.
5001         * targhooks.c (can_use_doloop_if_innermost): New function.
5002         * target.h: Include double-int.h.
5003         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
5004         Remove iteration count, maximum iteration count, loop depth and
5005         enter-at-top inputs from doloop_begin and doloop_end.
5006         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
5007         interface.
5008         * config/arc/arc.c (arc_can_use_doloop_p): New function.
5009         (TARGET_CAN_USE_DOLOOP_P): Define.
5010         * config/arm/thumb2.md (doloop_end): Update for new interface.
5011         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
5012         * config/bfin/bfin.md (doloop_end): Update for new interface.
5013         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
5014         (TARGET_CAN_USE_DOLOOP_P): Define.
5015         * config/c6x/c6x.md (doloop_end): Update for new interface.
5016         * config/ia64/ia64.md (doloop_end): Update for new interface.
5017         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
5018         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
5019         interface.
5020         * config/mep/mep.c (mep_emit_doloop): Likewise.
5021         (TARGET_CAN_USE_DOLOOP_P): Define.
5022         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
5023         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
5024         * config/s390/s390.md (doloop_end): Update for new interface.
5025         * config/sh/sh.md (doloop_end): Likewise.
5026         * config/spu/spu.md (doloop_end): Likewise.
5027         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
5028         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
5029         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
5030         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
5031         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
5032         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
5033         interface.
5034         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
5036 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
5038         PR other/59055
5039         * doc/extend.texi: Move Cilk Plus Builtins node before Other
5040         Builtins node.
5042 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
5043             Joseph Myers  <joseph@codesourcery.com>
5045         * ginclude/stdatomic.h: New file.
5046         * Makefile.in (USER_H): Add stdatomic.h.
5048 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5050         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
5051         comparisons.
5053 2013-11-08  Jeff Law  <law@redhat.com>
5055         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
5056         * tree-ssa-threadupdate.c (delete_thread_path): New function.
5057         (ssa_redirect_edges, thread_block_1): Use it.
5058         (thread_through_loop_header, mark_threaded_blocks): Likewise.
5059         (thread_through_all_blocks, register_jump_thread): Likewise.
5060         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
5062 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
5064         * config/arm/aarch-common.c
5065         (search_term): New typedef.
5066         (shift_rtx_costs): New array.
5067         (arm_rtx_shift_left_p): New.
5068         (arm_find_sub_rtx_with_search_term): Likewise.
5069         (arm_find_sub_rtx_with_code): Likewise.
5070         (arm_early_load_addr_dep): Add sanity checking.
5071         (arm_no_early_alu_shift_dep): Likewise.
5072         (arm_no_early_alu_shift_value_dep): Likewise.
5073         (arm_no_early_mul_dep): Likewise.
5074         (arm_no_early_store_addr_dep): Likewise.
5076 2013-11-08  Richard Biener  <rguenther@suse.de>
5078         PR tree-optimization/59047
5079         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
5081 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5083         * common.opt (fcheck-pointer-bounds): Move to ...
5084         * c-family/c.opt: ... here.
5085         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
5086         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
5087         * langhooks.h (lang_hooks): Remove chkp_supported field.
5088         * toplev.c (process_options): Remove chkp_supported check.
5090 2013-11-08  Richard Biener  <rguenther@suse.de>
5092         PR tree-optimization/59038
5093         PR tree-optimization/58955
5094         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
5095         previous change.  Handle known dependences correctly.
5097 2013-11-08  Tom de Vries  <tom@codesourcery.com>
5099         * config/rs6000/t-xilinx: Remove duplicate contents.
5101 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
5102             Joseph Myers  <joseph@codesourcery.com>
5104         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
5105         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
5106         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
5107         (struct tree_base): Add atomic_flag field.
5108         * tree.h (TYPE_ATOMIC): New accessor macro.
5109         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
5110         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
5111         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
5112         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
5113         * tree.c (set_type_quals): Set TYPE_ATOMIC.
5114         (find_atomic_core_type): New function.
5115         (build_qualified_type): Adjust alignment for qualified types.
5116         (build_atomic_base): New function
5117         (build_common_tree_nodes): Build atomicQI_type_node,
5118         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
5119         atomicTI_type_node.
5120         * print-tree.c (print_node): Print atomic qualifier.
5121         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
5122         * target.def (atomic_assign_expand_fenv): New hook.
5123         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
5124         * doc/tm.texi: Regenerate.
5125         * targhooks.c (default_atomic_assign_expand_fenv): New function.
5126         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
5127         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
5128         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
5129         function type.
5130         * config/i386/i386.c (enum ix86_builtins): Add
5131         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
5132         IX86_BUILTIN_FNCLEX.
5133         (bdesc_special_args): Add __builtin_ia32_fnstenv,
5134         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
5135         (ix86_expand_builtin): Handle the new built-in functions.
5136         (ix86_atomic_assign_expand_fenv): New function.
5137         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
5138         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
5139         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
5140         (fnstenv, fldenv, fnstsw, fnclex): New insns.
5142 2013-11-07  Steve Ellcey  <sellcey@mips.com>
5144         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
5145         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
5146         (MULTILIB_DIRNAMES): Add fp64 directory.
5147         (MULTILIB_EXCEPTIONS): Add new exclusions.
5149 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
5151         * gimplify.c (gimple_regimplify_operands): Do not set
5152         SSA_NAME_DEF_STMT.
5153         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
5154         (rewrite_close_phi_out_of_ssa): Same.
5155         (rewrite_phi_out_of_ssa): Same.
5156         (rewrite_degenerate_phi): Same.
5157         (handle_scalar_deps_crossing_scop_limits): Same.
5158         * tree-if-conv.c (predicate_scalar_phi): Same.
5159         * tree-parloops.c (create_loads_for_reductions): Same.
5160         (create_final_loads_for_reduction): Same.
5161         (create_loads_and_stores_for_name): Same.
5162         (transform_to_exit_first_loop): Same.
5163         (create_parallel_loop): Same.
5164         * tree-ssa-loop-im.c
5165         (move_computations_dom_walker::before_dom_children): Same.
5166         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
5167         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
5168         * tree-ssa-propagate.c (substitute_and_fold): Same.
5169         * tree-vect-loop.c (vect_finalize_reduction): Same.
5170         * tree-vect-stmts.c (vectorizable_call): Same.
5172 2013-11-07  Mike Stump  <mikestump@comcast.net>
5174         * config/pdp11/pdp11.c: Include dbxout.h.
5175         * config/picochip/picochip.c: Likewise.
5177 2013-11-07  Cong Hou  <congh@google.com>
5179         PR tree-optimization/56764
5180         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5181         Combine alias checks if it is possible to amortize the runtime
5182         overhead.  Return the number of alias checks after merging.
5183         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5184         Use the function vect_create_cond_for_alias_checks () to check
5185         the number of alias checks.
5187 2013-11-07  Jeff Law  <law@redhat.com>
5189         * varpool.c (ctor_for_folding): Fix typo in comment.
5191 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
5193         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
5194         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
5196 2013-11-07  Jeff Law  <law@redhat.com>
5198         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
5200         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
5201         No longer check if we have __builtin_trap, assume it's available.
5203 2013-11-07  Diego Novillo  <dnovillo@google.com>
5205         * attribs.c (lookup_scoped_attribute_spec): Make static.
5206         (get_attribute_namespace): Likewise.
5207         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
5208         (validate_arglist): Move earlier in the file. Make static.
5209         (expand_stack_restore): Move from stmt.c
5210         (expand_stack_save): Move from stmt.c
5211         (rewrite_call_expr_array): Move earlier in the file.
5212         (rewrite_call_expr_valist): Likewise.
5213         * cfgexpand.c: Include hard-reg-set.h before tree.h
5214         Include recog.h.
5215         Include output.h.
5216         (expand_asm_loc): Move from stmt.c.
5217         (n_occurrences): Move from stmt.c.
5218         (check_operand_nalternatives): Move from stmt.c.
5219         (tree_conflicts_with_clobbers_p): Move from stmt.c.
5220         (expand_asm_operands): Move from stmt.c
5221         (expand_asm_stmt): Move from stmt.c
5222         (expand_computed_goto): Move from stmt.c
5223         (expand_goto): Move from stmt.c
5224         (expand_null_return_1): Move from stmt.c
5225         (expand_null_return): Move from stmt.c
5226         (expand_value_return): Move from stmt.c
5227         (expand_return): Move from stmt.c
5228         (expand_main_function): Move from function.c
5229         (stack_protect_prologue): Move from function.c
5230         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
5231         (build_function_decl_skip_args): Move from tree.c.
5232         * explow.c (tree_expr_size): Move from tree.c.
5233         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
5234         (fields_length): Move from tree.c.
5235         * fold-const.c (size_low_cst): Move from tree.c.
5236         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
5237         (tree_expr_nonzero_p): Make static. Move earlier in the file.
5238         (fold_build3_initializer_loc): Remove.
5239         (tree_invalid_nonnegative_warnv_p): Make static.
5240         * function.c (expand_main_function): Move to cfgexpand.c.
5241         (stack_protect_prologue): Move to cfgexpand.c.
5242         (set_insn_locations): Move earlier in the file.
5243         * gimple-fold.c: Include langhooks.h.
5244         (truth_type_for): Move from tree.c.
5245         * print-tree.c (print_vec_tree): Remove.
5246         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
5247         (expand_goto): Move to cfgexpand.c.
5248         (n_occurrences): Move to cfgexpand.c.
5249         (expand_asm_loc): Move to cfgexpand.c
5250         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
5251         (expand_asm_operands): Move to cfgexpand.c.
5252         (expand_asm_stmt): Move to cfgexpand.c.
5253         (check_operand_nalternatives): Move to cfgexpand.c
5254         (expand_null_return): Move to cfgexpand.c.
5255         (expand_value_return): Move to cfgexpand.c.
5256         (expand_null_return_1): Move to cfgexpand.c.
5257         (expand_return): Move to cfgexpand.c.
5258         (expand_stack_save): Move to builtins.c.
5259         (expand_stack_restore): Move to builtins.c
5260         * symtab.c: Include output.h.
5261         (decl_assembler_name_hash): Move from tree.c.
5262         (decl_assembler_name_equal): Move from tree.c.
5263         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
5264         * tree-eh.c (in_array_bounds_p): Move from tree.c.
5265         (range_in_array_bounds_p): Move from tree.c.
5266         * tree-object-size.c (fini_object_sizes): Make static.
5267         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
5268         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
5269         * tree.c (decl_assembler_name_equal): Move to symtab.c.
5270         (tree_expr_size): Move to explow.c.
5271         (decl_assembler_name_hash): Move to symtab.c.
5272         (real_twop): Remove.
5273         (tree_expr_size): Move to explow.c.
5274         (stabilize_reference_1): Move earlier in the file. Make static.
5275         (omp_remove_redundant_declare_simd_attrs): Remove.
5276         (simple_cst_list_equal): Move earlier in the file. Make static.
5277         (size_low_cst): Move to fold-const.c.
5278         (build_type_no_quals): Remove.
5279         (build_function_type_skip_args): Move to cgraphclones.c.
5280         (build_function_decl_skip_args): Move to cgraphclones.c.
5281         (in_array_bounds_p): Move to tree-eh.c.
5282         (range_in_array_bounds_p): Move to tree-eh.c.
5283         (truth_type_for): Move to gimple-fold.c.
5284         (list_equal_p): Remove.
5285         * tree.h (decl_assembler_name_equal): Remove.
5286         (decl_assembler_name_hash): Remove.
5287         (truth_type_for): Remove.
5288         (build_type_no_quals): Remove.
5289         (build_function_decl_skip_args): Remove.
5290         (in_array_bounds_p): Remove.
5291         (range_in_array_bounds_p): Remove.
5292         (size_low_cst): Remove.
5293         (omp_remove_redundant_declare_simd_attrs): Remove.
5294         (tree_expr_size): Remove.
5295         (fields_length): Remove.
5296         (stabilize_reference_1): Remove.
5297         (expand_goto): Remove.
5298         (expand_stack_save): Remove.
5299         (expand_stack_restore): Remove.
5300         (expand_return): Remove.
5301         (fold_build3_initializer_loc): Remove.
5302         (tree_expr_nonzero_p): Remove.
5303         (tree_invalid_nonnegative_warnv_p): Remove.
5304         (tree_expr_nonzero_warnv_p): Remove.
5305         (fold_builtin_snprintf_chk): Remove.
5306         (validate_arglist): Remove.
5307         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
5308         (simple_cst_list_equal): Remove.
5309         (real_twop): Remove.
5310         (expand_main_function): Remove.
5311         (stack_protect_prologue): Remove.
5312         (print_vec_tree): Remove.
5313         (lookup_scoped_attribute_spec): Remove.
5314         (get_attribute_namespace): Remove.
5315         (expand_computed_goto): Remove.
5316         (expand_asm_stmt): Remove.
5317         (list_equal_p): Remove.
5318         (ssa_name_nonnegative_p): Remove.
5319         (fini_object_sizes): Remove.
5320         (addr_expr_of_non_mem_decl_p): Remove.
5321         (is_tm_safe_or_pure): Move to trans-mem.c.
5322         (more_const_call_expr_args_p): Remove.
5323         (save_vtable_map_decl): Remove.
5325 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
5327         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
5328         linker plugins, too.
5330         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
5331         link to libgomp and its dependencies.
5332         * config/ia64/hpux.h (LIB_SPEC): Likewise.
5333         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5334         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
5335         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
5337 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
5339         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
5340         (determine_value_range): Add loop argument.  Use get_range_info to
5341         improve range.
5342         (bound_difference): Adjust caller.
5344 2013-11-07  Richard Biener  <rguenther@suse.de>
5345             Jakub Jelinek  <jakub@redhat.com>
5347         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
5348         latches from header PHI arguments from the latch edge.
5350 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
5352         PR c++/58176
5353         * varasm.c (output_constant): Handle NULLPTR_TYPE.
5355 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5357         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
5358         misaligned_prologue_used when it has been set.
5360 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
5361             Jakub Jelinek  <jakub@redhat.com>
5363         PR sanitizer/59029
5364         * asan.c (get_mem_refs_of_builtin_call): Allow
5365         integer literals as addresses in instrumented builtins.
5367 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5369         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
5370         Explain why plus_constant is not used.
5372 2013-11-07  Richard Biener  <rguenther@suse.de>
5374         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
5375         (canonicalize_value): ... this.  Also handle stripping of
5376         TREE_OVERFLOW.
5377         (get_value, set_lattice_value, get_value_for_expr): Adjust.
5378         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
5379         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
5381 2013-11-07  Richard Biener  <rguenther@suse.de>
5383         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
5385 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5387         PR target/59034
5388         * config/i386/i386.md (push peepholer/splitter): Use Pmode
5389         with stack_pointer_rtx.
5391 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
5393         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
5394         using operand_equal_p.
5396 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
5398         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
5399         * tree-affine.c (get_inner_reference_aff): Return base.
5400         * tree-affine.h (get_inner_reference_aff): Change prototype.
5402 2013-11-06  Tobias Burnus  <burnus@net-b.de>
5404         * doc/invoke.texi (Wdate-time): Fix typo.
5406 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
5408         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
5409         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
5410         fp_arith_reg_operand instead of arith_reg_operand.
5412 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
5414         * config/sh/sh.md (adddi3): Remove empty constraints.
5415         Remove can_create_pseudo_p and arith_reg_operand check.
5416         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
5417         Split before reload.
5419 2013-11-06  Jeff Law  <law@redhat.com>
5420             Tom Tromey  <tromey@redhat.com>
5422         * gdbinit.in: Disable strict type checking.
5424 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
5426         * tree-pass.h (make_pass_live_range_shrinkage): New external.
5427         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
5428         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
5429         (rest_of_handle_live_range_shrinkage): Ditto
5430         (class pass_live_range_shrinkage): Ditto.
5431         (pass_data_live_range_shrinkage): Ditto.
5432         (make_pass_live_range_shrinkage): Ditto.
5433         * sched-int.h (initialize_live_range_shrinkage): New prototype.
5434         (finish_live_range_shrinkage): Ditto.
5435         * sched-deps.c (create_insn_reg_set): Make void return value.
5436         * passes.def: Add pass_live_range_shrinkage.
5437         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
5438         * haifa-sched.c (live_range_shrinkage_p): New.
5439         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
5440         New functions.
5441         (rank_for_schedule): Add code for pressure relief through live
5442         range shrinkage.
5443         (schedule_insn): Print more debug info.
5444         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
5445         through live range shrinkage.
5446         * doc/invoke.texi (-flive-range-shrinkage): New.
5447         * common.opt (flive-range-shrinkage): New.
5449 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
5451         PR target/59021
5452         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
5453         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
5454         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
5455         RTXes that return in AVX256 register.
5457 2013-11-06  Richard Biener  <rguenther@suse.de>
5459         PR tree-optimization/58653
5460         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
5461         (prepare_initializers_chain): Adjust.
5463 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
5465         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
5466         (gimple_in_transaction): Use bb_in_transaction.
5467         * basic-block.h (bb_in_transaction): Relocate here and rename.
5468         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
5470 2013-11-06  Richard Biener  <rguenther@suse.de>
5472         * tree.c (drop_tree_overflow): New function.
5473         * tree.h (drop_tree_overflow): Declare.
5474         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
5475         * tree-vrp.c (range_int_cst_singleton_p): Use
5476         is_overflow_infinity instead of testing TREE_OVERFLOW.
5477         (extract_range_from_assert): Likewise.
5478         (zero_nonzero_bits_from_vr): Likewise.
5479         (extract_range_basic): Likewise.
5480         (register_new_assert_for): Use drop_tree_overflow.
5481         (vrp_visit_phi_node): Likewise.
5483 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
5485         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
5486         checking for leaf functions without dynamic stack allocation.
5487         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
5488         (ia64_expand_prologue): Likewise.
5489         * config/mips/mips.c (mips_expand_prologue): Likewise.
5490         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5491         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5492         (sparc_flat_expand_prologue): Likewise.
5494 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
5496         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
5497         (__ST3_LANE_FUNC): Likewise.
5498         (__ST4_LANE_FUNC): Likewise.
5500 2013-11-06  Nick Clifton  <nickc@redhat.com>
5502         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
5503         name returned by msp430_mcu_name.
5504         (LIB_SPEC): If a -T option has not been specified then set a
5505         default, mcu-specific, linker script.
5506         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
5507         * config/msp430/msp430.c (msp430x_names): Likewise.
5508         Alpha sort the names for ease of comparison.
5509         (msp430_mcu_name): New function:  Returns a string suitable for
5510         use as a C preprocessor symbol based upon the name of the MCU
5511         being targeted.
5512         (msp430_option_override): Accept msp430x and msp430xv2 as generic
5513         mcu names.
5514         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
5516         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
5517         unless it is the last part of a spec substring.
5518         * doc/invoke.texi (Spec Files): Document space insertion
5519         behaviour of %*.
5521 2013-11-06  Christian Bruel  <christian.bruel@st.com>
5523         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
5524         Factorize probabilities, Use adjust_address instead of
5525         adjust_automodify_address when possible. Enable for optimize.
5526         (sh_expand_strlen): New function.
5527         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
5528         * config/sh/sh.md (strlensi): New pattern.
5529         (UNSPEC_BUILTIN_STRLEN): Define.
5531 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
5533         PR middle-end/58970
5534         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
5535         (expand_assignment): If *bitpos is negative, set *offset
5536         and adjust *bitpos, so that it is not negative.
5538 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
5540         * config/i386/bdver3.md : Added two additional decoder units
5541         to support issue rate of 4 and remodeled vector unit.
5542         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
5543         architectures is set to 4.
5544         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
5545         lookahead is set to 4 for BD architectures.
5547 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5549         * config/rs6000/rs6000.c (rs6000_option_override_internal):
5550         Remove restriction against use of VSX instructions when generating
5551         code for little endian mode.
5553 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5555         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
5556         for both big and little endian.
5557         (mulv8hi3): Swap input operands for merge high and merge low
5558         instructions for little endian.
5560 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5562         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
5563         define_insn to define_expand that uses even patterns for big
5564         endian and odd patterns for little endian.
5565         (vec_widen_smult_even_v16qi): Likewise.
5566         (vec_widen_umult_even_v8hi): Likewise.
5567         (vec_widen_smult_even_v8hi): Likewise.
5568         (vec_widen_umult_odd_v16qi): Likewise.
5569         (vec_widen_smult_odd_v16qi): Likewise.
5570         (vec_widen_umult_odd_v8hi): Likewise.
5571         (vec_widen_smult_odd_v8hi): Likewise.
5572         (altivec_vmuleub): New define_insn.
5573         (altivec_vmuloub): Likewise.
5574         (altivec_vmulesb): Likewise.
5575         (altivec_vmulosb): Likewise.
5576         (altivec_vmuleuh): Likewise.
5577         (altivec_vmulouh): Likewise.
5578         (altivec_vmulesh): Likewise.
5579         (altivec_vmulosh): Likewise.
5581 2013-11-05  Mike Stump  <mikestump@comcast.net>
5583         * Makefile.in (mostlyclean): Remove c-family objects.
5585 2013-11-05  Ian Lance Taylor  <iant@google.com>
5587         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5588         If possible, add .cfi directives to record change to bx.
5589         * config/i386/i386.c (ix86_emit_cfi): New function.
5590         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
5592 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
5594         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
5595         immediately after a label for a tablejump pattern.
5597         * config/arm/arm.c (is_jump_table): Remove.
5598         (create_fix_barrier): Use tablejump_p instead.
5599         (arm_reorg): Likewise.
5600         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
5601         (thumb2_output_casesi): Likewise.
5602         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
5603         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
5604         casesi_shift_media, casesi_load_media): Likewise.
5605         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
5606         * config/microblaze/microblaze.md: Likewise.
5608 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5610         * doc/invoke.texi (-Wdate-time): Document.
5612 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
5614         * double-int.c (lshift_double, rshift_double): Remove
5615         SHIFT_COUNT_TRUNCATED handling.
5617 2013-11-05  Jeff Law  <law@redhat.com>
5619         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
5620         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
5621         * gimple-ssa-isolate-paths.c: New file.
5622         * gimple.c (check_loadstore): New function.
5623         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
5624         Verify OP is in the argument list and the argument corresponding
5625         to OP is a pointer type.  Use operand_equal_p rather than
5626         pointer equality when testing if OP is on the nonnull list.
5627         Use check_loadstore rather than count_ptr_derefs.  Handle
5628         GIMPLE_RETURN statements.
5629         * tree-vrp.c (infer_nonnull_range): Remove.
5630         * gimple.h (infer_nonnull_range): Declare.
5631         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
5632         * passes.def: Add pass_isolate_erroneous_paths.
5633         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
5634         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
5635         * tree-ssa.c (struct count_ptr_d): Remove.
5636         (count_ptr_derefs, count_uses_and_derefs): Remove.
5637         * tree-ssa.h (count_uses_and_derefs): Remove.
5639 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
5641         PR rtl-optimization/58997
5642         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
5643         get_iv_value to be in iv->mode rather than iv->extend_mode.
5644         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
5645         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
5646         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
5647         mode.
5649 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
5651         * gimple.h: Move some prototypes to gimple-expr.h and add to include
5652         list.
5653         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
5654         Move to gimple-expr.h.
5655         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
5656         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
5657         is_gimple_id, virtual_operand_p, is_gimple_addressable,
5658         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
5659         Relocate here.
5660         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
5661         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
5662         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
5663         is_gimple_address, is_gimple_invariant_address,
5664         is_gimple_ip_invariant_address, is_gimple_min_invariant,
5665         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
5666         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
5667         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
5668         gimple_decl_printable_name, useless_type_conversion_p,
5669         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
5670         gimple-expr.[ch].
5671         * gimple-expr.c: New File.
5672         (useless_type_conversion_p, gimple_set_body, gimple_body,
5673         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
5674         gimple_can_coalesce_p, extract_ops_from_tree_1,
5675         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
5676         is_gimple_address, is_gimple_invariant_address,
5677         is_gimple_ip_invariant_address, is_gimple_min_invariant,
5678         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
5679         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
5680         is_gimple_mem_ref_addr): Relocate here.
5681         * Makefile.in (OBJS): Add gimple-expr.o.
5683 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
5685         * gengtype-parse.c (struct_field_seq): Support empty structs.
5687 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
5689         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
5691 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
5693         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
5694         for !TARGET_80387.
5695         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
5696         _SOFT_FLOAT here.
5697         (LONG_DOUBLE_TYPE_SIZE): New define.
5698         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
5700 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
5702         PR c++/58724
5703         * doc/extend.texi [visibility ("visibility_type")]: Add example
5704         about visibility attribute on namespace declaration.
5706 2013-11-05  Richard Biener  <rguenther@suse.de>
5708         PR ipa/58492
5709         * passes.def (all_passes): Start with pass_fixup_cfg again.
5711 2013-11-05  Richard Biener  <rguenther@suse.de>
5713         PR tree-optimization/58955
5714         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
5715         edge direction.
5717 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5719         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
5720         little endian.
5721         (vec_pack_ufix_trunc_v2df): Likewise.
5723 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
5725         PR middle-end/58981
5726         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
5727         pattern, instead of word_mode.
5729         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
5730         Pmode for size.
5731         (set_storage_via_setmem): Likewise.
5733 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
5735         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
5736         gimple.h and the rest of the condition in eliminate_build.
5737         (eliminate_build): Call new routine.
5738         * gimple.h (phi_ssa_name_p): Delete.
5740 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
5742         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
5743         case of no prefix and reserving zero slots, because when that's the
5744         case we'll never get here.
5745         * vec.h (va_heap::reserve): Don't try and handle
5746         vec_prefix::calculate_allocation returning zero because that should
5747         never happen.
5749 2013-11-05  Richard Biener  <rguenther@suse.de>
5751         PR middle-end/58941
5752         * tree-dfa.c (get_ref_base_and_extent): Merge common code
5753         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
5754         process trailing array detection before diving into the
5755         view-converted object (and possibly apply some extra offset).
5757 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
5759         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
5760         New function.
5761         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
5763 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
5765         PR tree-optimization/58958
5766         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
5767         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
5769 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
5771         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
5772         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
5774 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
5776         PR tree-optimization/58984
5777         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
5778         set *SIZE_P if non-NULL on success.
5779         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
5780         callers.
5781         (ipcp_transform_function): Likewise.  Punt if size of access
5782         is different from TYPE_SIZE on v->value's type.
5784 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5786         * doc/invoke.texi (-fopenmp-simd): Document new option.
5787         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
5788         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
5789         * tree.c (attribute_value_equal): Ditto.
5791 2013-11-04  Wei Mi  <wmi@google.com>
5793         * sched-rgn.c (add_branch_dependences): Keep insns in
5794         a SCHED_GROUP at the end of BB to remain their location.
5796 2013-11-04  Wei Mi  <wmi@google.com>
5798         * config/i386/i386.c (memory_address_length): Extract a part
5799         of code to rip_relative_addr_p.
5800         (rip_relative_addr_p): New Function.
5801         (ix86_macro_fusion_p): Ditto.
5802         (ix86_macro_fusion_pair_p): Ditto.
5803         * config/i386/i386.h: Add new tune features about macro-fusion.
5804         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5805         * doc/tm.texi: Generated.
5806         * doc/tm.texi.in: Ditto.
5807         * haifa-sched.c (try_group_insn): New Function.
5808         (group_insns_for_macro_fusion): Ditto.
5809         (sched_init): Call group_insns_for_macro_fusion.
5810         * target.def: Add two hooks: macro_fusion_p and
5811         macro_fusion_pair_p.
5813 2013-11-04  Kostya Serebryany  <kcc@google.com>
5815         Update to match the changed asan API.
5816         * asan.c (asan_function_start): New function.
5817         (asan_emit_stack_protection): Update the string stored in the
5818         stack red zone to match new API.  Store the PC of the current
5819         function in the red zone.
5820         (asan_global_struct): Update the __asan_global definition to match
5821         the new API.
5822         (asan_add_global): Ditto.
5823         * asan.h (asan_function_start): New prototype.
5824         * final.c (final_start_function): Call asan_function_start.
5825         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
5826         to __asan_init_v3.
5828 2013-11-04  Wei Mi  <wmi@google.com>
5830         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
5831         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
5832         * config/i386/i386.c (ix86_option_override_internal): Ditto.
5833         (ix86_issue_rate): Ditto.
5834         (ix86_adjust_cost): Ditto.
5835         (ia32_multipass_dfa_lookahead): Ditto.
5836         (ix86_sched_init_global): Ditto.
5837         (get_builtin_code_for_version): Ditto.
5838         * config/i386/i386.h (enum target_cpu_default): Ditto.
5839         (enum processor_type): Ditto.
5840         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5842 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
5844         PR rtl-optimization/58967
5845         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
5846         !lra_in_progress for mode sizes bigger word.
5848 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5850         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
5851         arguments to merge instruction for little endian.
5852         (vec_widen_umult_lo_v16qi): Likewise.
5853         (vec_widen_smult_hi_v16qi): Likewise.
5854         (vec_widen_smult_lo_v16qi): Likewise.
5855         (vec_widen_umult_hi_v8hi): Likewise.
5856         (vec_widen_umult_lo_v8hi): Likewise.
5857         (vec_widen_smult_hi_v8hi): Likewise.
5858         (vec_widen_smult_lo_v8hi): Likewise.
5860 2013-11-04  Ian Lance Taylor  <iant@google.com>
5862         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
5863         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
5864         builtins that take pointers.
5865         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
5866         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
5867         (run_gcc): Pass -fnon-call-exceptions.
5869 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
5871         * optabs.c (expand_vec_perm): Revert one incorrect line from
5872         2013-10-31 change.
5874         PR tree-optimization/58978
5875         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
5876         use_stmt by single_imm_use directly.  Only call single_imm_use
5877         on SSA_NAMEs.
5879 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
5881         PR rtl-optimization/58968
5882         * lra-spills.c (return_regno_p): New function.
5883         (lra_final_code_change): Use it.
5885 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
5887         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
5888         * target.def (float_exceptions_rounding_supported_p): New hook.
5889         * targhooks.c (default_float_exceptions_rounding_supported_p): New
5890         function.
5891         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
5892         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
5893         New @hook.
5894         * doc/tm.texi: Regenerate.
5895         * config.gcc (powerpc*-*-linux*): Set extra_objs.
5896         * config/rs6000/rs6000-linux.c: New file.
5897         * config/rs6000/rs6000-protos.h
5898         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
5899         * config/rs6000/linux.h
5900         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
5901         * config/rs6000/linux64.h
5902         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
5903         * config/rs6000/t-linux (rs6000-linux.o): New rule.
5904         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
5906 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5908         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
5909         Replace the define_insn_and_split with a define_insn and two
5910         define_splits, with the split after reload re-permuting the source
5911         register to its original value.
5912         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
5913         (*vsx_le_perm_store_v8hi): Likewise.
5914         (*vsx_le_perm_store_v16qi): Likewise.
5916 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5918         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
5919         little endian.
5921 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
5923         PR tree-optimization/58946
5924         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
5925         bbs with bbinfo[idx].op != NULL before all blocks with
5926         bbinfo[idx].op == NULL.
5928 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
5930         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
5931         (avr_dump_double_int_hex): Likewise.
5932         (avr_log_vadump): Remove %D and %X handling.
5933         * config/avr/avr.c (avr_double_int_push_digit): Delete.
5934         (avr_map_op_t): Change map from double_int to unsigned int.
5935         (avr_map_op): Update accordingly.
5936         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
5937         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
5938         unsigned ints rather than double_ints.
5940 2013-11-03  Marek Polacek  <polacek@redhat.com>
5942         Implement -fsanitize=vla-bound.
5943         * opts.c (common_handle_option): Handle vla-bound.
5944         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
5945         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
5946         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
5948 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
5950         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
5951         little endian.
5953 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
5955         * config/i386/constraints.md (Ts, Tv): New address constrains.
5956         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
5957         constraint for address_no_seg_operand.
5958         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
5959         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
5960         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
5961         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
5962         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
5963         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
5964         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
5965         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
5966         constraint for vsib_address_operand.
5968 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
5970         * gcse.c (pre_delete): Remove references to regmove from comments.
5971         * recog.c: (validate_replace_rtx_1): Likewise.
5972         * config/rl78/rl78.c: Likewise.
5973         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
5974         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
5975         * common/config/mmix/mmix-common.c: Likewise.
5977 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
5979         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
5980         * gimplify.c (gimplify_compound_lval): Likewise.
5981         * graphite-clast-to-gimple.c (gloog): Likewise.
5982         * graphite-dependences.c (loop_is_parallel_p): Likewise.
5983         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5984         (limit_scop); Likewise.
5985         (build_scops): Likewise.
5986         (dot_scop): Likewise.
5987         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
5988         (build_scop_drs): Likewise.
5989         (insert_stmts): Likewise.
5990         (insert_out_of_ssa_copy): Likewise.
5991         (remove_phi): Likewise.
5992         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
5993         * hw-doloop.c (discover_loop): Likewise.
5994         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
5995         * tree-dfa.c (dump_enumerated_decls): Likewise.
5996         * tree-if-conv.c (if_convertable_loop_p): Likewise.
5997         * tree-inline.c (tree_function_versioning): Likewise.
5998         * tree-loop-distribution.c (build_rdg): Likewise.
5999         (rdg_flag_vertex_and_dependent): Likewise.
6000         (distribute_loop): Likewise.
6001         * tree-parloops.c (loop_parallel_p): Likewise.
6002         (eliminate_local_variables): Likewise.
6003         (separate_decls_in_region): Likewise.
6004         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
6005         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
6006         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
6007         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
6008         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
6009         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6010         (vectorizable_condition): Likewise.
6012 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
6014         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
6015         * configure: Regenerate.
6016         * config/i386/i386.md (*movdi_internal): Change
6017         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
6018         (*movdf_internal): Ditto.
6019         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
6020         * config/i386/sse.md (vec_concatv2di): Output interunit movq
6021         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
6023 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
6025         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
6026         after comment.
6028 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
6030         Automated part of renaming of symtab_node_base to symtab_node.
6032         Patch autogenerated by rename_symtab.py from
6033         https://github.com/davidmalcolm/gcc-refactoring-scripts
6034         revision 58bb219cc090b2f4516a9297d868c245495ee622
6035         with ChangeLog entry fixed up by hand.
6037         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
6038         symtab_node.
6039         (cgraph_node_for_asm): Likewise.
6040         * cgraph.h (symtab_node_base): Likewise.
6041         (cgraph_node): Likewise.
6042         (varpool_node): Likewise.
6043         (is_a_helper <cgraph_node>::test): Likewise.
6044         (is_a_helper <varpool_node>::test): Likewise.
6045         (symtab_nodes): Likewise.
6046         (symtab_register_node): Likewise.
6047         (symtab_unregister_node): Likewise.
6048         (symtab_remove_node): Likewise.
6049         (symtab_get_node): Likewise.
6050         (symtab_node_for_asm): Likewise.
6051         (symtab_node_asm_name): Likewise.
6052         (symtab_node_name): Likewise.
6053         (symtab_insert_node_to_hashtable): Likewise.
6054         (symtab_add_to_same_comdat_group): Likewise.
6055         (symtab_dissolve_same_comdat_group_list): Likewise.
6056         (dump_symtab_node): Likewise.
6057         (debug_symtab_node): Likewise.
6058         (dump_symtab_base): Likewise.
6059         (verify_symtab_node): Likewise.
6060         (verify_symtab_base): Likewise.
6061         (symtab_used_from_object_file_p): Likewise.
6062         (symtab_alias_ultimate_target): Likewise.
6063         (symtab_resolve_alias): Likewise.
6064         (fixup_same_cpp_alias_visibility): Likewise.
6065         (symtab_for_node_and_aliases): Likewise.
6066         (symtab_nonoverwritable_alias): Likewise.
6067         (availability symtab_node_availability): Likewise.
6068         (symtab_semantically_equivalent_p): Likewise.
6069         (fixup_same_cpp_alias_visibility): Likewise.
6070         (symtab_prevail_in_asm_name_hash): Likewise.
6071         (cgraph): Likewise.
6072         (varpool): Likewise.
6073         (varpool_first_variable): Likewise.
6074         (varpool_next_variable): Likewise.
6075         (varpool_first_static_initializer): Likewise.
6076         (varpool_next_static_initializer): Likewise.
6077         (varpool_first_defined_variable): Likewise.
6078         (varpool_next_defined_variable): Likewise.
6079         (cgraph_first_defined_function): Likewise.
6080         (cgraph_next_defined_function): Likewise.
6081         (cgraph_first_function): Likewise.
6082         (cgraph_next_function): Likewise.
6083         (cgraph_first_function_with_gimple_body): Likewise.
6084         (cgraph_next_function_with_gimple_body): Likewise.
6085         (symtab_alias_target): Likewise.
6086         (symtab_real_symbol_p): Likewise.
6087         (symtab_can_be_discarded): Likewise.
6088         * cgraphbuild.c (mark_address): Likewise.
6089         (mark_load): Likewise.
6090         (mark_store): Likewise.
6091         * cgraphunit.c (decide_is_symbol_needed): Likewise.
6092         (first): Likewise.
6093         (enqueue_node): Likewise.
6094         (referred_to_p): Likewise.
6095         (cgraph_process_same_body_aliases): Likewise.
6096         (analyze_functions): Likewise.
6097         (handle_alias_pairs): Likewise.
6098         (output_weakrefs): Likewise.
6099         (compile): Likewise.
6100         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6101         * ipa-inline-analysis.c (inline_write_summary): Likewise.
6102         * ipa-prop.c (remove_described_reference): Likewise.
6103         (try_decrement_rdesc_refcount): Likewise.
6104         (ipa_edge_duplication_hook): Likewise.
6105         * ipa-ref.c (ipa_record_reference): Likewise.
6106         (ipa_maybe_record_reference): Likewise.
6107         (ipa_clone_ref): Likewise.
6108         (ipa_clone_references): Likewise.
6109         (ipa_clone_referring): Likewise.
6110         (ipa_find_reference): Likewise.
6111         (ipa_remove_stmt_references): Likewise.
6112         (ipa_clear_stmts_in_references): Likewise.
6113         * ipa-ref.h (symtab_node_base): Likewise.
6114         (ipa_ref): Likewise.
6115         (ipa_record_reference): Likewise.
6116         (ipa_maybe_record_reference): Likewise.
6117         (ipa_clone_references): Likewise.
6118         (ipa_clone_referring): Likewise.
6119         (ipa_clone_ref): Likewise.
6120         (ipa_find_reference): Likewise.
6121         (ipa_remove_stmt_references): Likewise.
6122         (ipa_clear_stmts_in_references): Likewise.
6123         * ipa-reference.c (ipa_reference_write_optimization_summary):
6124         Likewise.
6125         * ipa.c (enqueue_node): Likewise.
6126         (process_references): Likewise.
6127         (walk_polymorphic_call_targets): Likewise.
6128         (symtab_remove_unreachable_nodes): Likewise.
6129         (address_taken_from_non_vtable_p): Likewise.
6130         (comdat_can_be_unshared_p_1): Likewise.
6131         (comdat_can_be_unshared_p): Likewise.
6132         (can_replace_by_local_alias): Likewise.
6133         (function_and_variable_visibility): Likewise.
6134         * is-a.h: Likewise (within example in comment).
6135         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
6136         (lto_symtab_encoder_encode): Likewise.
6137         (lto_symtab_encoder_delete_node): Likewise.
6138         (lto_symtab_encoder_in_partition_p): Likewise.
6139         (lto_set_symtab_encoder_in_partition): Likewise.
6140         (output_refs): Likewise.
6141         (compute_ltrans_boundary): Likewise.
6142         (output_symtab): Likewise.
6143         (input_node): Likewise.
6144         (input_ref): Likewise.
6145         (input_edge): Likewise.
6146         (input_cgraph_1): Likewise.
6147         (input_refs): Likewise.
6148         (output_cgraph_opt_summary): Likewise.
6149         (input_node_opt_summary): Likewise.
6150         (input_cgraph_opt_section): Likewise.
6151         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6152         Likewise.
6153         * lto-streamer-out.c (lto_output): Likewise.
6154         (output_symbol_p): Likewise.
6155         (produce_symtab): Likewise.
6156         * lto-streamer.h (lto_encoder_entry): Likewise.
6157         (lto_free_function_in_decl_state_for_node): Likewise.
6158         (lto_symtab_encoder_encode): Likewise.
6159         (lto_symtab_encoder_delete_node): Likewise.
6160         (lto_symtab_encoder_in_partition_p): Likewise.
6161         (lto_set_symtab_encoder_in_partition): Likewise.
6162         (lto_symtab_encoder_lookup): Likewise.
6163         (lsei_node): Likewise.
6164         (lto_symtab_encoder_deref): Likewise.
6165         * symtab.c (symtab_hash): Likewise.
6166         (assembler_name_hash): Likewise.
6167         (symtab_nodes): Likewise.
6168         (hash_node): Likewise.
6169         (eq_node): Likewise.
6170         (hash_node_by_assembler_name): Likewise.
6171         (eq_assembler_name): Likewise.
6172         (insert_to_assembler_name_hash): Likewise.
6173         (unlink_from_assembler_name_hash): Likewise.
6174         (symtab_prevail_in_asm_name_hash): Likewise.
6175         (symtab_register_node): Likewise.
6176         (symtab_insert_node_to_hashtable): Likewise.
6177         (symtab_unregister_node): Likewise.
6178         (symtab_get_node): Likewise.
6179         (symtab_remove_node): Likewise.
6180         (symtab_initialize_asm_name_hash): Likewise.
6181         (symtab_node_for_asm): Likewise.
6182         (symtab_add_to_same_comdat_group): Likewise.
6183         (symtab_dissolve_same_comdat_group_list): Likewise.
6184         (symtab_node_asm_name): Likewise.
6185         (symtab_node_name): Likewise.
6186         (dump_symtab_base): Likewise.
6187         (dump_symtab_node): Likewise.
6188         (dump_symtab): Likewise.
6189         (debug_symtab_node): Likewise.
6190         (verify_symtab_base): Likewise.
6191         (verify_symtab_node): Likewise.
6192         (verify_symtab): Likewise.
6193         (symtab_used_from_object_file_p): Likewise.
6194         (symtab_node_availability): Likewise.
6195         (symtab_alias_ultimate_target): Likewise.
6196         (fixup_same_cpp_alias_visibility): Likewise.
6197         (symtab_resolve_alias): Likewise.
6198         (symtab_for_node_and_aliases): Likewise.
6199         (symtab_for_node_and_aliases): Likewise.
6200         (symtab_nonoverwritable_alias_1): Likewise.
6201         (symtab_nonoverwritable_alias): Likewise.
6202         (symtab_semantically_equivalent_p): Likewise.
6203         * value-prof.c (init_node_map): Likewise.
6204         * varasm.c (find_decl): Likewise.
6205         * varpool.c (varpool_node_for_asm): Likewise.
6206         (varpool_remove_unreferenced_decls): Likewise.
6208 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
6210         Manual part of renaming of symtab_node_base to symtab_node.
6212         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
6213         clashes with the preferred name for the base class.
6214         (const_symtab_node): Remove redundant typedef.
6216 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
6218         * optabs.c (expand_vec_perm): Avoid vector mode punning
6219         SUBREGs in SET_DEST.
6220         * expmed.c (store_bit_field_1): Likewise.
6221         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
6222         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
6223         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
6224         * config/i386/i386.c (ix86_expand_vector_move_misalign,
6225         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
6226         ix86_expand_sse_unpack, ix86_expand_args_builtin,
6227         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
6228         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
6229         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
6230         expand_vec_perm_vpshufb2_vpermq,
6231         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
6232         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
6233         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
6234         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
6235         than *d itself.
6237 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
6239         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
6240         Use gcc_unreachable for unhandled modes.  Do not check results of
6241         expand_simple_binop.  If not expanded to target, move the result.
6243 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
6244             Shiva Chen  <shiva0217@gmail.com>
6246         * config.gcc (nds32*-*-*): Add nds32 target.
6247         * config/nds32/nds32.c: New file.
6248         * config/nds32/nds32.h: New file.
6249         * config/nds32/nds32.md: New file.
6250         * config/nds32/constants.md: New file.
6251         * config/nds32/constraints.md: New file.
6252         * config/nds32/iterators.md: New file.
6253         * config/nds32/nds32-doubleword.md: New file.
6254         * config/nds32/nds32-intrinsic.md: New file.
6255         * config/nds32/nds32_intrinsic.h: New file.
6256         * config/nds32/nds32-modes.def: New file.
6257         * config/nds32/nds32-multiple.md: New file.
6258         * config/nds32/nds32.opt: New file.
6259         * config/nds32/nds32-opts.h: New file.
6260         * config/nds32/nds32-protos.h: New file.
6261         * config/nds32/nds32-peephole2.md: New file.
6262         * config/nds32/pipelines.md: New file.
6263         * config/nds32/predicates.md: New file.
6264         * config/nds32/t-mlibs: New file.
6265         * common/config/nds32: New directory and files.
6267         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
6268         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
6269         * doc/install.texi (Cross-Compiler-Specific Options): Document
6270         --with-nds32-lib for nds32 target.
6271         * doc/extend.texi (Function Attributes, Target Builtins): Document
6272         nds32 specific attributes.
6274 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
6276         * lra-constraints (process_alt_operands): Use the result
6277         elimination register for operand when matching constraints.
6279 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
6281         * tree-vrp.c (maybe_set_nonzero_bits): New function.
6282         (remove_range_assertions): Call it.
6284         * tree.c (tree_ctz): New function.
6285         * tree.h (tree_ctz): New prototype.
6286         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
6287         first argument from tree to const_tree.
6288         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
6289         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
6290         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
6291         static.
6292         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
6293         * tree-vect-loop.c (vect_analyze_loop_operations,
6294         vect_transform_loop): Don't force scalar loop for bound just because
6295         number of iterations is unknown, only do it if it is not known to be
6296         a multiple of vectorization_factor.
6297         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
6299         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
6300         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
6301         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
6302         (set_nonzero_bits, get_nonzero_bits): New prototypes.
6303         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
6304         a default def isn't partially constant.
6305         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
6306         is known to be partially zero.
6307         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
6308         to see if a default def isn't partially constant.
6309         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
6310         creation of a range, if VR_RANGE, try to improve nonzero_bits from
6311         the range.
6312         (set_nonzero_bits, get_nonzero_bits): New functions.
6314         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
6315         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
6316         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
6317         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
6318         uses but in the condition and ASSERT_EXPR and the other successor of
6319         the predecessor bb is __builtin_unreachable (), set_range_info of the
6320         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
6322 2013-10-31  Martin Jambor  <mjambor@suse.cz>
6324         PR rtl-optimization/58934
6325         Revert:
6326         2013-10-30  Martin Jambor  <mjambor@suse.cz>
6327         PR rtl-optimization/10474
6328         * ira.c (find_moveable_pseudos): Do not calculate dominance info
6329         nor df analysis.
6330         (interesting_dest_for_shprep): New function.
6331         (split_live_ranges_for_shrink_wrap): Likewise.
6332         (ira): Calculate dominance info and df analysis. Call
6333         split_live_ranges_for_shrink_wrap.
6335 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6336             Yury Gribov  <y.gribov@samsung.com>
6338         PR sanitizer/58543
6339         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
6340         shadow pointer to avoid clobbering the main one.
6342 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6344         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
6346 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6348         PR bootstrap/58933
6349         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
6350         it for calling update_costs_from_allocno.
6351         (assign_hard_reg): Call restore_costs_from_copies only for
6352         !retry_p.  Pass new argument to update_costs_from_copies.
6353         (color_pass): Pass new argument to update_costs_from_copies.
6354         (ira_mark_allocation_change): Ditto.
6356 2013-10-30  Sharad Singhai  <singhai@google.com>
6358         PR middle-end/58134
6359         * opts.c (common_handle_option): Remove deprecated option
6360         -ftree-vectorizer-verbose.
6361         * doc/invoke.texi (Debugging Options): Ditto.
6362         * opts-global.c (handle_common_deferred_options): Ditto.
6363         (dump_remap_tree_vectorizer_verbose): Delete.
6364         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
6366 2013-10-30  DJ Delorie  <dj@redhat.com>
6368         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
6369         that take no arguments.
6371 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
6373         PR other/58545
6374         * reload1.c (update_eliminables_and_spill): New function, broken
6375         out of reload.
6376         (reload): Use it.  Check for frame size change after frame size
6377         alignment, and call update_eliminables_and_spill first if continue-ing.
6379 2013-10-30  Cong Hou  <congh@google.com>
6381         PR target/58762
6382         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
6383         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
6384         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
6386 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
6388         PR rtl-optimization/58369
6389         * reload1.c (compute_reload_subreg_offset): New function.
6390         (choose_reload_regs): Use it to pass endian-correct
6391         offset to subreg_regno_offset.
6393 2013-10-30  Tobias Burnus  <burnus@net-b.de>
6395         PR other/33426
6396         * tree-cfg.c (replace_loop_annotate): Replace warning by
6397         warning_at.
6399 2013-10-30  Jason Merrill  <jason@redhat.com>
6401         * configure.ac (loose_warn): Add -Wno-format if
6402         --disable-build-format-warnings.
6404 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
6406         * cgraphunit.c (analyze_functions): Split symtab_node declarations
6407         onto multiple lines to make things easier for rename_symtab.py.
6409         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
6410         (symtab_semantically_equivalent_p): Likewise.
6412 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6414         PR target/58784
6415         * lra.c (check_rtl): Remove address check before LRA work.
6417 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
6419         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
6420         POINTER_PLUS_EXPR in the defining statement.
6422 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6424         * regmove.c: Remove.
6425         * tree-pass.h (make_pass_regmove): Remove.
6426         * timevar.def (TV_REGMOVE): Remove.
6427         * passes.def (pass_regmove): Remove.
6428         * opts.c (default_options_table): Remove entry for regmove.
6429         * doc/passes.texi: Remove regmove pass description.
6430         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
6431         options.
6432         (-fdump-rtl-regmove): Ditto.
6433         * common.opt (foptimize-register-move, fregmove): Ignore.
6434         * Makefile.in (OBJS): Remove regmove.o.
6435         * regmove.c: Remove.
6436         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
6437         and type.
6438         (struct ira_allocno) New member allocno_prefs.
6439         (ALLOCNO_PREFS): New macro.
6440         (ira_prefs, ira_prefs_num): New external vars.
6441         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
6442         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
6443         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
6444         Ditto.
6445         (ira_add_allocno_copy_to_list): Remove prototype.
6446         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
6447         (ira_pref_iterator): New type.
6448         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
6449         (FOR_EACH_PREF): New macro.
6450         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
6451         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
6452         code.
6453         (ira_setup_alts): New function.
6454         (decrease_live_ranges_number): New function.
6455         (ira): Call the above function.
6456         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
6457         (ira_create_allocno): Initialize allocno prefs.
6458         (pref_pool, pref_vec): New static vars.
6459         (initiate_prefs, find_allocno_pref, ira_create_pref): New
6460         functions.
6461         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
6462         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
6463         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
6464         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
6465         (ira_add_allocno_copy_to_list): Make static.  Rename to
6466         add_allocno_copy_to_list.
6467         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
6468         swap_allocno_copy_ends_if_necessary.
6469         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
6470         ira_remove_allocno_prefs.
6471         (ira_flattening): Ditto.
6472         (ira_build): Call initiate_prefs, print_prefs.
6473         (ira_destroy): Call finish_prefs.
6474         * ira-color.c (struct update_cost_record): New.
6475         (struct allocno_color_data): Add new member update_cost_records.
6476         (update_cost_record_pool): New static var.
6477         (init_update_cost_records, get_update_cost_record): New functions.
6478         (free_update_cost_record_list, finish_update_cost_records): Ditto.
6479         (struct update_cost_queue_elem): Add member from.
6480         (initiate_cost_update): Call init_update_cost_records.
6481         (finish_cost_update): Call finish_update_cost_records.
6482         (queue_update_cost, get_next_update_cost): Add new param from.
6483         (Update_allocno_cost, update_costs_from_allocno): New functions.
6484         (update_costs_from_prefs): Ditto.
6485         (update_copy_costs): Rename to update_costs_from_copies.
6486         (restore_costs_from_copies): New function.
6487         (update_conflict_hard_regno_costs): Don't go back.
6488         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
6489         more debug info.
6490         (pop_allocnos): Add priniting more debug info.
6491         (color_allocnos): Remove prefs for conflicting hard regs.
6492         Call update_costs_from_prefs.
6493         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
6494         (get_dup_num): Rename, modify, and move to ira.c
6495         (process_regs_for_copy): Add prefs.
6496         (add_insn_allocno_copies): Put src as first arg of
6497         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
6498         * ira-costs.c (record_reg_classes): Modify and move code into
6499         record_operands_costs.
6500         (find_costs_and_classes): Create prefs for the hard reg of small
6501         reg class.
6502         (process_bb_node_for_hard_reg_moves): Add prefs.
6504 2013-10-30  Richard Biener  <rguenther@suse.de>
6506         PR middle-end/57100
6507         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
6508         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
6509         as worker for ...
6510         (pre_and_rev_post_order_compute): ... which now wraps it.
6511         * graph.c (draw_cfg_nodes_no_loops): Use
6512         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
6513         on cfun.
6515 2013-10-30  Christian Bruel  <christian.bruel@st.com>
6517         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
6518         (sh_expand_cmpstr): Handle known align and schedule improvements.
6519         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
6520         * config/sh/sh.md (cmpstrnsi): New pattern.
6522 2013-10-30  Martin Jambor  <mjambor@suse.cz>
6524         PR rtl-optimization/10474
6525         * ira.c (find_moveable_pseudos): Do not calculate dominance info
6526         nor df analysis.
6527         (interesting_dest_for_shprep): New function.
6528         (split_live_ranges_for_shrink_wrap): Likewise.
6529         (ira): Calculate dominance info and df analysis. Call
6530         split_live_ranges_for_shrink_wrap.
6532 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6534         PR target/58854
6535         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
6537 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
6539         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
6540         * tree.h (POINTER_BOUNDS_P): New.
6541         (BOUNDED_TYPE_P): New.
6542         (BOUNDED_P): New.
6543         (pointer_bounds_type_node): New.
6544         * tree.c (build_common_tree_nodes): Initialize
6545         pointer_bounds_type_node.
6546         * gimple.h (gimple_call_get_nobnd_arg_index): New.
6547         (gimple_call_num_nobnd_args): New.
6548         (gimple_call_nobnd_arg): New.
6549         (gimple_return_retbnd): New.
6550         (gimple_return_set_retbnd): New
6551         * gimple.c (gimple_build_return): Increase number of ops
6552         for return statement.
6553         (gimple_call_get_nobnd_arg_index): New.
6554         * gimple-pretty-print.c (dump_gimple_return): Print second op.
6556 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
6558         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
6559         with "chkp ctor" and "bnd_legacy" attributes.
6560         * gimplify.c (gimplify_init_constructor): Avoid infinite
6561         loop during gimplification of bounds initializer.
6563 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
6565         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
6566         (handle_bnd_legacy): New.
6567         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
6568         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
6569         attributes.
6571 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
6573         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
6574         (BT_FN_PTR_CONST_PTR): New.
6575         (BT_FN_CONST_PTR_CONST_PTR): New.
6576         (BT_FN_PTR_CONST_PTR_SIZE): New.
6577         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
6578         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
6579         (BT_FN_VOID_CONST_PTR_SIZE): New.
6580         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
6581         * chkp-builtins.def: New.
6582         * builtins.def: include chkp-builtins.def.
6583         (DEF_CHKP_BUILTIN): New.
6584         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
6585         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
6586         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
6587         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
6588         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
6589         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
6590         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
6591         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
6592         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
6593         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
6594         * common.opt (fcheck-pointer-bounds): New.
6595         * toplev.c (process_options): Check Pointer Bounds Checker is
6596         supported.
6597         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
6599 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
6601         * target.def (builtin_chkp_function): New.
6602         (chkp_bound_type): New.
6603         (chkp_bound_mode): New.
6604         (fn_abi_va_list_bounds_size): New.
6605         (load_bounds_for_arg): New.
6606         (store_bounds_for_arg): New.
6607         * targhooks.h (default_load_bounds_for_arg): New.
6608         (default_store_bounds_for_arg): New.
6609         (default_fn_abi_va_list_bounds_size): New.
6610         (default_chkp_bound_type): New.
6611         (default_chkp_bound_mode): New.
6612         (default_builtin_chkp_function): New.
6613         * targhooks.c (default_load_bounds_for_arg): New.
6614         (default_store_bounds_for_arg): New.
6615         (default_fn_abi_va_list_bounds_size): New.
6616         (default_chkp_bound_type): New.
6617         (default_chkp_bound_mode); New.
6618         (default_builtin_chkp_function): New.
6619         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
6620         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6621         (TARGET_STORE_BOUNDS_FOR_ARG): New.
6622         (TARGET_BUILTIN_CHKP_FUNCTION): New.
6623         (TARGET_CHKP_BOUND_TYPE): New.
6624         (TARGET_CHKP_BOUND_MODE): New.
6625         * doc/tm.texi: Regenerated.
6626         * langhooks.h (lang_hooks): Add chkp_supported field.
6627         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
6628         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
6630 2013-10-29  Andrew Pinski <apinski@cavium.com>
6632         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
6633         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
6634         fails, combining the branches anyways.
6635         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
6636         increases the number of combinings.
6637         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
6639 2013-10-29  Mike Stump  <mikestump@comcast.net>
6641         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
6642         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
6643         (make_vector_mode): Increase namebuf to 16.
6644         (emit_insn_modes_h): When processing BImode, don't
6645         also match partial int modes.
6646         (emit_class_narrowest_mode): Likewise.
6648         * config/bfin/bfin-modes.def: Add precision to PDI.
6649         * config/m32c/m32c-modes.def: Add precision to PSI.
6650         * config/msp430/msp430-modes.def: Add precision to PSI.
6651         * config/rs6000/rs6000-modes.def: Add precision to PTI.
6652         * config/sh/sh-modes.def: Add precision to PSI and PDI.
6654 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
6656         PR target/54236
6657         * config/sh/sh.md (*addc): Rename existing variations to ...
6658         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
6659         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
6660         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
6661         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
6663 2013-10-29  Teresa Johnson  <tejohnson@google.com>
6665         PR ipa/58862
6666         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
6667         insanities when updating probabilities.
6669 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6671         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
6672         prettyprinter for cgraph_node to reflect the conversion of the
6673         symtable types to a C++ class hierarchy: it now *is* a
6674         symtab_node_base, rather than having one (named "symbol").
6676 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6678         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
6679         __cilkrts_pop_frame.  If matched, then return true for built-in
6680         function name.
6681         (expand_builtin): Added BUILT_IN_CILK_DETACH and
6682         BUILT_IN_CILK_POP_FRAME case.
6683         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
6684         (lhs_cilk_detect_spawn): Likewise.
6685         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
6686         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
6687         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
6688         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
6689         (LANG_HOOKS_CILKPLUS): Likewise.
6690         * tree.h (CILK_SPAWN_FN): Likewise.
6691         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
6692         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
6693         (OBJS): Added cilk-common.o.
6694         (BUILTINS_DEF): Added cilk-builtins.def.
6695         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
6696         (lhd_cilk_detect_spawn): Likewise.
6697         * langhooks.h (lang_hooks_for_cilkplus): New struct.
6698         (struct lang_hooks): Added new field called "cilkplus."
6699         * cilk-common.c: New file.
6700         * cilk.h: Likewise.
6701         * cilk-builtins.def: Likewise.
6702         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
6703         "__cilk" macro and set it to 200.
6704         * function.h (struct function::cilk_frame_decl): New field.
6705         (struct function::is_cilk_function): Likewise.
6706         (struct function::calls_cilk_spawn): Likewise.
6707         * gimplify.c (gimplify_call_expr): Added a check if the function call
6708         being gimplified is a spawn detach point.  If so, then add pop_frame
6709         and detach function calls.
6710         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
6711         for gimplifying _Cilk_spawn and _Cilk_sync statements.
6712         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
6713         function.  If so, added a _Cilk_sync and gimplified it.
6714         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
6715         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
6716         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
6717         spawner function.
6718         (can_inline_edge_p): Prevent inling of spawnee function.
6719         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
6720         for functions that use Cilk keywords.
6721         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
6722         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
6723         CILK_SYNC_STMT cases.
6724         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
6725         trees.
6726         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
6727         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
6728         * passes.texi (Cilk Keywords): New section that describes the compiler
6729         code changes for handling Cilk Keywords.
6731 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6733         Patch autogenerated by refactor_symtab.py from
6734         https://github.com/davidmalcolm/gcc-refactoring-scripts
6735         revision 58bb219cc090b2f4516a9297d868c245495ee622
6737         * asan.c (asan_finish_file): Update for conversion of symtab types to
6738         a true class hierarchy.
6739         * cfgexpand.c (estimated_stack_frame_size): Likewise.
6740         * cgraph.c (cgraph_get_body): Likewise.
6741         (cgraph_get_create_real_symbol_node): Likewise.
6742         (verify_cgraph_node): Likewise.
6743         (verify_edge_corresponds_to_fndecl): Likewise.
6744         (verify_edge_count_and_frequency): Likewise.
6745         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
6746         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
6747         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
6748         (cgraph_node_cannot_return): Likewise.
6749         (cgraph_set_pure_flag_1): Likewise.
6750         (cgraph_set_const_flag_1): Likewise.
6751         (cgraph_set_nothrow_flag_1): Likewise.
6752         (cgraph_make_node_local_1): Likewise.
6753         (cgraph_for_node_and_aliases): Likewise.
6754         (cgraph_for_node_thunks_and_aliases): Likewise.
6755         (cgraph_node_can_be_local_p): Likewise.
6756         (cgraph_node_cannot_be_local_p_1): Likewise.
6757         (cgraph_function_body_availability): Likewise.
6758         (dump_cgraph_node): Likewise.
6759         (cgraph_rtl_info): Likewise.
6760         (cgraph_mark_address_taken_node): Likewise.
6761         (cgraph_remove_node): Likewise.
6762         (cgraph_release_function_body): Likewise.
6763         (cgraph_update_edges_for_call_stmt_node): Likewise.
6764         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
6765         (cgraph_make_edge_direct): Likewise.
6766         (cgraph_resolve_speculation): Likewise.
6767         (cgraph_speculative_call_info): Likewise.
6768         (cgraph_turn_edge_to_speculative): Likewise.
6769         (cgraph_create_edge_1): Likewise.
6770         (cgraph_set_call_stmt): Likewise.
6771         (cgraph_node_for_asm): Likewise.
6772         (cgraph_add_thunk): Likewise.
6773         (cgraph_same_body_alias): Likewise.
6774         (cgraph_create_function_alias): Likewise.
6775         (cgraph_create_node): Likewise.
6776         (cgraph_create_empty_node): Likewise.
6777         (record_function_versions): Likewise.
6778         (used_from_object_file_p): Likewise.
6779         * cgraph.h (symtab_can_be_discarded): Likewise.
6780         (symtab_real_symbol_p): Likewise.
6781         (cgraph_mark_force_output_node): Likewise.
6782         (cgraph_edge_recursive_p): Likewise.
6783         (symtab_alias_target): Likewise.
6784         (varpool_all_refs_explicit_p): Likewise.
6785         (varpool_can_remove_if_no_refs): Likewise.
6786         (cgraph_only_called_directly_or_aliased_p): Likewise.
6787         (cgraph_next_function_with_gimple_body): Likewise.
6788         (cgraph_first_function_with_gimple_body): Likewise.
6789         (cgraph_function_with_gimple_body_p): Likewise.
6790         (cgraph_next_function): Likewise.
6791         (cgraph_first_function): Likewise.
6792         (cgraph_next_defined_function): Likewise.
6793         (cgraph_first_defined_function): Likewise.
6794         (varpool_next_defined_variable): Likewise.
6795         (varpool_first_defined_variable): Likewise.
6796         (varpool_next_static_initializer): Likewise.
6797         (varpool_first_static_initializer): Likewise.
6798         (varpool_next_variable): Likewise.
6799         (varpool_first_variable): Likewise.
6800         (varpool_node_name): Likewise.
6801         (varpool): Likewise.
6802         (cgraph): Likewise.
6803         (is_a_helper <varpool_node>::test): Likewise.
6804         (is_a_helper <cgraph_node>::test): Likewise.
6805         (varpool_variable_node): Likewise.
6806         (cgraph_function_or_thunk_node): Likewise.
6807         (varpool_alias_target): Likewise.
6808         (cgraph_alias_target): Likewise.
6809         (cgraph_node_name): Likewise.
6810         (varpool_node_asm_name): Likewise.
6811         (cgraph_node_asm_name): Likewise.
6812         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
6813         (cgraph_rebuild_references): Likewise.
6814         (rebuild_cgraph_edges): Likewise.
6815         (record_eh_tables): Likewise.
6816         (build_cgraph_edges): Likewise.
6817         (mark_store): Likewise.
6818         (mark_load): Likewise.
6819         (mark_address): Likewise.
6820         (record_type_list): Likewise.
6821         (record_reference): Likewise.
6822         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
6823         (cgraph_materialize_clone): Likewise.
6824         (cgraph_function_versioning): Likewise.
6825         (cgraph_copy_node_for_versioning): Likewise.
6826         (update_call_expr): Likewise.
6827         (cgraph_find_replacement_node): Likewise.
6828         (cgraph_create_virtual_clone): Likewise.
6829         (cgraph_clone_node): Likewise.
6830         * cgraphunit.c (compile): Likewise.
6831         (output_weakrefs): Likewise.
6832         (output_in_order): Likewise.
6833         (expand_function): Likewise.
6834         (assemble_thunks_and_aliases): Likewise.
6835         (expand_thunk): Likewise.
6836         (mark_functions_to_output): Likewise.
6837         (handle_alias_pairs): Likewise.
6838         (analyze_functions): Likewise.
6839         (walk_polymorphic_call_targets): Likewise.
6840         (varpool_finalize_decl): Likewise.
6841         (process_function_and_variable_attributes): Likewise.
6842         (cgraph_process_same_body_aliases): Likewise.
6843         (analyze_function): Likewise.
6844         (cgraph_add_new_function): Likewise.
6845         (cgraph_finalize_function): Likewise.
6846         (referred_to_p): Likewise.
6847         (cgraph_reset_node): Likewise.
6848         (cgraph_process_new_functions): Likewise.
6849         (enqueue_node): Likewise.
6850         (decide_is_symbol_needed): Likewise.
6851         * coverage.c (coverage_compute_profile_id): Likewise.
6852         * dbxout.c (dbxout_expand_expr): Likewise.
6853         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
6854         (reference_to_unused): Likewise.
6855         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6856         * gimplify.c (unvisit_body): Likewise.
6857         (unshare_body): Likewise.
6858         * ipa-cp.c (ipcp_generate_summary): Likewise.
6859         (ipcp_decision_stage): Likewise.
6860         (identify_dead_nodes): Likewise.
6861         (decide_whether_version_node): Likewise.
6862         (decide_about_value): Likewise.
6863         (perhaps_add_new_callers): Likewise.
6864         (create_specialized_node): Likewise.
6865         (update_profiling_info): Likewise.
6866         (ipcp_propagate_stage): Likewise.
6867         (estimate_local_effects): Likewise.
6868         (good_cloning_opportunity_p): Likewise.
6869         (devirtualization_time_bonus): Likewise.
6870         (propagate_constants_accross_call): Likewise.
6871         (initialize_node_lattices): Likewise.
6872         (ipcp_cloning_candidate_p): Likewise.
6873         (determine_versionability): Likewise.
6874         (print_all_lattices): Likewise.
6875         (print_lattice): Likewise.
6876         (ipcp_discover_new_direct_edges): Likewise.
6877         * ipa-devirt.c (ipa_devirt): Likewise.
6878         (likely_target_p): Likewise.
6879         (update_type_inheritance_graph): Likewise.
6880         (possible_polymorphic_call_target_p): Likewise.
6881         (dump_possible_polymorphic_call_targets): Likewise.
6882         (devirt_variable_node_removal_hook): Likewise.
6883         (record_binfo): Likewise.
6884         (maybe_record_node): Likewise.
6885         (build_type_inheritance_graph): Likewise.
6886         * ipa-inline-analysis.c (inline_write_summary): Likewise.
6887         (inline_generate_summary): Likewise.
6888         (inline_analyze_function): Likewise.
6889         (do_estimate_growth): Likewise.
6890         (simple_edge_hints): Likewise.
6891         (estimate_node_size_and_time): Likewise.
6892         (estimate_edge_devirt_benefit): Likewise.
6893         (compute_inline_parameters): Likewise.
6894         (estimate_function_body_sizes): Likewise.
6895         (compute_bb_predicates): Likewise.
6896         (initialize_inline_failed): Likewise.
6897         (dump_inline_summary): Likewise.
6898         (dump_inline_edge_summary): Likewise.
6899         * ipa-inline-transform.c (inline_transform): Likewise.
6900         (preserve_function_body_p): Likewise.
6901         (save_inline_function_body): Likewise.
6902         (inline_call): Likewise.
6903         (clone_inlined_nodes): Likewise.
6904         (can_remove_node_now_p): Likewise.
6905         (can_remove_node_now_p_1): Likewise.
6906         * ipa-inline.c (early_inliner): Likewise.
6907         (early_inline_small_functions): Likewise.
6908         (inline_always_inline_functions): Likewise.
6909         (ipa_inline): Likewise.
6910         (flatten_function): Likewise.
6911         (inline_small_functions): Likewise.
6912         (speculation_useful_p): Likewise.
6913         (recursive_inlining): Likewise.
6914         (update_caller_keys): Likewise.
6915         (reset_edge_caches): Likewise.
6916         (update_edge_key): Likewise.
6917         (edge_badness): Likewise.
6918         (relative_time_benefit): Likewise.
6919         (want_inline_self_recursive_call_p): Likewise.
6920         (want_inline_small_function_p): Likewise.
6921         (want_early_inline_function_p): Likewise.
6922         (num_calls): Likewise.
6923         (can_early_inline_edge_p): Likewise.
6924         (can_inline_edge_p): Likewise.
6925         (report_inline_failed_reason): Likewise.
6926         * ipa-profile.c (ipa_profile): Likewise.
6927         (ipa_propagate_frequency): Likewise.
6928         (ipa_propagate_frequency_1): Likewise.
6929         (ipa_profile_generate_summary): Likewise.
6930         * ipa-prop.c (ipcp_transform_function): Likewise.
6931         (read_replacements_section): Likewise.
6932         (ipa_prop_read_section): Likewise.
6933         (ipa_modify_call_arguments): Likewise.
6934         (ipa_print_node_params): Likewise.
6935         (propagate_controlled_uses): Likewise.
6936         (update_indirect_edges_after_inlining): Likewise.
6937         (remove_described_reference): Likewise.
6938         (ipa_make_edge_direct_to_target): Likewise.
6939         (ipa_analyze_node): Likewise.
6940         (ipa_analyze_params_uses): Likewise.
6941         (ipa_compute_jump_functions): Likewise.
6942         (ipa_get_callee_param_type): Likewise.
6943         (ipa_print_node_jump_functions): Likewise.
6944         (ipa_initialize_node_params): Likewise.
6945         (ipa_populate_param_decls): Likewise.
6946         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
6947         (write_agg_replacement_chain): Likewise.
6948         (ipa_write_node_info): Likewise.
6949         (ipa_edge_duplication_hook): Likewise.
6950         (try_decrement_rdesc_refcount): Likewise.
6951         * ipa-pure-const.c (propagate_nothrow): Likewise.
6952         (propagate_pure_const): Likewise.
6953         (pure_const_read_summary): Likewise.
6954         (pure_const_write_summary): Likewise.
6955         (analyze_function): Likewise.
6956         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
6957         (ipa_ref_referring_ref_list): Likewise.
6958         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
6959         (ipa_remove_stmt_references): Likewise.
6960         (ipa_find_reference): Likewise.
6961         (ipa_dump_referring): Likewise.
6962         (ipa_dump_references): Likewise.
6963         (ipa_record_reference): Likewise.
6964         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
6965         (ipa_reference_write_optimization_summary): Likewise.
6966         (write_node_summary_p): Likewise.
6967         (propagate): Likewise.
6968         (read_write_all_from_decl): Likewise.
6969         (generate_summary): Likewise.
6970         (analyze_function): Likewise.
6971         (propagate_bits): Likewise.
6972         (ipa_reference_get_not_written_global): Likewise.
6973         (ipa_reference_get_not_read_global): Likewise.
6974         * ipa-split.c (execute_split_functions): Likewise.
6975         (split_function): Likewise.
6976         * ipa-utils.c (ipa_merge_profiles): Likewise.
6977         (dump_cgraph_node_set): Likewise.
6978         (ipa_reverse_postorder): Likewise.
6979         (ipa_edge_within_scc): Likewise.
6980         (ipa_get_nodes_in_cycle): Likewise.
6981         (ipa_free_postorder_info): Likewise.
6982         (ipa_reduced_postorder): Likewise.
6983         (searchc): Likewise.
6984         (recursive_call_p): Likewise.
6985         * ipa.c (ipa_cdtor_merge): Likewise.
6986         (record_cdtor_fn): Likewise.
6987         (function_and_variable_visibility): Likewise.
6988         (varpool_externally_visible_p): Likewise.
6989         (cgraph_externally_visible_p): Likewise.
6990         (comdat_can_be_unshared_p): Likewise.
6991         (comdat_can_be_unshared_p_1): Likewise.
6992         (address_taken_from_non_vtable_p): Likewise.
6993         (ipa_discover_readonly_nonaddressable_vars): Likewise.
6994         (symtab_remove_unreachable_nodes): Likewise.
6995         (walk_polymorphic_call_targets): Likewise.
6996         (process_references): Likewise.
6997         (enqueue_node): Likewise.
6998         (has_addr_references_p): Likewise.
6999         (cgraph_non_local_node_p_1): Likewise.
7000         * is-a.h (varpool_analyze_node): Likewise.
7001         * lto-cgraph.c (input_symtab): Likewise.
7002         (merge_profile_summaries): Likewise.
7003         (input_cgraph_1): Likewise.
7004         (input_edge): Likewise.
7005         (input_varpool_node): Likewise.
7006         (input_node): Likewise.
7007         (input_overwrite_node): Likewise.
7008         (compute_ltrans_boundary): Likewise.
7009         (output_refs): Likewise.
7010         (lto_output_varpool_node): Likewise.
7011         (lto_output_node): Likewise.
7012         (reachable_from_other_partition_p): Likewise.
7013         (referenced_from_other_partition_p): Likewise.
7014         (lto_output_edge): Likewise.
7015         (output_node_opt_summary): Likewise.
7016         (add_node_to): Likewise.
7017         (reachable_from_this_partition_p): Likewise.
7018         (lto_set_symtab_encoder_in_partition): Likewise.
7019         (lto_symtab_encoder_in_partition_p): Likewise.
7020         (lto_set_symtab_encoder_encode_initializer): Likewise.
7021         (lto_symtab_encoder_encode_initializer_p): Likewise.
7022         (lto_set_symtab_encoder_encode_body): Likewise.
7023         (lto_symtab_encoder_encode_body_p): Likewise.
7024         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7025         Likewise.
7026         * lto-streamer-in.c (lto_read_body): Likewise.
7027         (fixup_call_stmt_edges): Likewise.
7028         (fixup_call_stmt_edges_1): Likewise.
7029         * lto-streamer-out.c (produce_symtab): Likewise.
7030         (output_symbol_p): Likewise.
7031         (write_symbol): Likewise.
7032         (lto_output): Likewise.
7033         (copy_function): Likewise.
7034         (output_function): Likewise.
7035         * passes.c (function_called_by_processed_nodes_p): Likewise.
7036         (ipa_write_optimization_summaries): Likewise.
7037         (ipa_write_summaries): Likewise.
7038         (do_per_function_toporder): Likewise.
7039         (do_per_function): Likewise.
7040         (dump_passes): Likewise.
7041         * symtab.c (symtab_semantically_equivalent_p): Likewise.
7042         (symtab_nonoverwritable_alias): Likewise.
7043         (symtab_nonoverwritable_alias_1): Likewise.
7044         (symtab_for_node_and_aliases): Likewise.
7045         (symtab_resolve_alias): Likewise.
7046         (fixup_same_cpp_alias_visibility): Likewise.
7047         (symtab_alias_ultimate_target): Likewise.
7048         (symtab_used_from_object_file_p): Likewise.
7049         (verify_symtab_base): Likewise.
7050         (dump_symtab_base): Likewise.
7051         (symtab_node_name): Likewise.
7052         (symtab_node_asm_name): Likewise.
7053         (symtab_dissolve_same_comdat_group_list): Likewise.
7054         (symtab_add_to_same_comdat_group): Likewise.
7055         (symtab_unregister_node): Likewise.
7056         (symtab_insert_node_to_hashtable): Likewise.
7057         (symtab_register_node): Likewise.
7058         (unlink_from_assembler_name_hash): Likewise.
7059         (insert_to_assembler_name_hash): Likewise.
7060         (eq_assembler_name): Likewise.
7061         (hash_node_by_assembler_name): Likewise.
7062         (eq_node): Likewise.
7063         (hash_node): Likewise.
7064         * toplev.c (wrapup_global_declaration_2): Likewise.
7065         * trans-mem.c (ipa_tm_execute): Likewise.
7066         (ipa_tm_transform_clone): Likewise.
7067         (ipa_tm_transform_transaction): Likewise.
7068         (ipa_tm_transform_calls_redirect): Likewise.
7069         (ipa_tm_insert_gettmclone_call): Likewise.
7070         (ipa_tm_insert_irr_call): Likewise.
7071         (ipa_tm_create_version): Likewise.
7072         (ipa_tm_create_version_alias): Likewise.
7073         (ipa_tm_mark_forced_by_abi_node): Likewise.
7074         (ipa_tm_mark_force_output_node): Likewise.
7075         (ipa_tm_diagnose_tm_safe): Likewise.
7076         (ipa_tm_mayenterirr_function): Likewise.
7077         (ipa_tm_scan_irr_function): Likewise.
7078         (ipa_tm_note_irrevocable): Likewise.
7079         (ipa_tm_scan_calls_clone): Likewise.
7080         (get_cg_data): Likewise.
7081         * tree-eh.c (tree_could_trap_p): Likewise.
7082         * tree-emutls.c (ipa_lower_emutls): Likewise.
7083         (create_emultls_var): Likewise.
7084         (lower_emutls_function_body): Likewise.
7085         (gen_emutls_addr): Likewise.
7086         (emutls_decl): Likewise.
7087         (new_emutls_decl): Likewise.
7088         * tree-inline.c (tree_function_versioning): Likewise.
7089         (optimize_inline_calls): Likewise.
7090         (expand_call_inline): Likewise.
7091         (estimate_num_insns): Likewise.
7092         (copy_bb): Likewise.
7093         (delete_unreachable_blocks_update_callgraph): Likewise.
7094         * tree-nested.c (gimplify_all_functions): Likewise.
7095         (create_nesting_tree): Likewise.
7096         (check_for_nested_with_variably_modified): Likewise.
7097         * tree-pretty-print.c (dump_function_header): Likewise.
7098         * tree-profile.c (tree_profiling): Likewise.
7099         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7100         (modify_function): Likewise.
7101         (convert_callers): Likewise.
7102         (convert_callers_for_node): Likewise.
7103         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7104         (associate_varinfo_to_alias): Likewise.
7105         (create_variable_info_for): Likewise.
7106         (get_constraint_for_ssa_var): Likewise.
7107         * tree-vectorizer.c (increase_alignment): Likewise.
7108         * tree.c (find_decls_types_in_var): Likewise.
7109         (find_decls_types_in_node): Likewise.
7110         (free_lang_data_in_decl): Likewise.
7111         * value-prof.c (gimple_ic_transform): Likewise.
7112         (gimple_ic): Likewise.
7113         (check_ic_target): Likewise.
7114         (init_node_map): Likewise.
7115         * varasm.c (decl_binds_to_current_def_p): Likewise.
7116         (default_binds_local_p_1): Likewise.
7117         (dump_tm_clone_pairs): Likewise.
7118         (assemble_alias): Likewise.
7119         (find_decl): Likewise.
7120         (mark_decl_referenced): Likewise.
7121         * varpool.c (varpool_for_node_and_aliases): Likewise.
7122         (varpool_extra_name_alias): Likewise.
7123         (varpool_create_variable_alias): Likewise.
7124         (add_new_static_var): Likewise.
7125         (varpool_finalize_named_section_flags): Likewise.
7126         (varpool_remove_unreferenced_decls): Likewise.
7127         (enqueue_node): Likewise.
7128         (varpool_assemble_decl): Likewise.
7129         (assemble_aliases): Likewise.
7130         (varpool_analyze_node): Likewise.
7131         (cgraph_variable_initializer_availability): Likewise.
7132         (varpool_add_new_variable): Likewise.
7133         (ctor_for_folding): Likewise.
7134         (dump_varpool_node): Likewise.
7135         (varpool_remove_initializer): Likewise.
7136         (varpool_remove_node): Likewise.
7137         (varpool_node_for_decl): Likewise.
7138         (varpool_create_empty_node): Likewise.
7139         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
7140         (ix86_get_function_versions_dispatcher): Likewise.
7142 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7144         * cgraph.h (symtab_node_base): Convert to a class;
7145         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
7146         chain_next/prev from symtab_node_def.
7147         (cgraph_node): Inherit from symtab_node; add GTY option
7148         tag ("SYMTAB_FUNCTION").
7149         (varpool_node): Inherit from symtab_node; add GTY option
7150         tag ("SYMTAB_VARIABLE").
7151         (symtab_node_def): Remove.
7152         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
7153         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
7154         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
7155         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
7157         * ipa-ref.h (symtab_node_def): Drop.
7158         (symtab_node): Change underlying type from symtab_node_def to
7159         symtab_node_base.
7160         (const_symtab_node): Likwise.
7162         * is-a.h: Update examples in comment.
7164         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
7165         (assembler_name_hash): Likewise.
7167 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
7169         * doc/tree-ssa.texi (gimple_phi_result): Document.
7170         (gimple_phi_num_args, gimple_phi_arg): Likewise.
7171         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
7172         (PHI_RESULT, PHI_NUM_ARGS): Remove.
7173         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
7175 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7177         * expr.h: Revert change and include tree-core.h.
7178         * rtl.h: Revert change and don't include tree-core.h.
7180 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7182         * config/darwin.c: Include gimple.h.
7183         * config/i386/winnt.c: Likewise.
7185 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
7187         PR tree-optimization/19831
7188         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
7190 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7192         * tree-outof-ssa.h: Remove include files.
7193         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
7194         * expr.c: Likewise.
7195         * tree-ssa-coalesce.c: Likewise.
7196         * cfgexpand.c: Likewise.
7197         * tree-ssa-ter.c: Likewise.
7198         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
7199         * lto-streamer.h: Likewise.
7200         * cgraphbuild.c: Add gimple.h to include list.
7201         * data-streamer-in.c: Likewise.
7202         * ipa-cp.c: Likewise.
7203         * tree-streamer.c: Likewise.
7204         * lto-compress.c: Likewise.
7205         * ipa-reference.c: Likewise.
7206         * data-streamer-out.c: Likewise.
7207         * lto-cgraph.c: Likewise.
7208         * cgraphclones.c: Likewise.
7209         * ipa-utils.c: Likewise.
7210         * data-streamer.c: Likewise.
7211         * ipa-split.c: Likewise.
7212         * lto-section-in.c: Likewise.
7213         * tree-streamer-out.c: Likewise.
7214         * ipa-prop.c: Likewise.
7215         * tree-streamer-in.c: Likewise.
7216         * symtab.c: Likewise.
7217         * opts-global.c: Likewise.
7218         * lto-opts.c: Likewise.
7219         * lto-section-out.c: Likewise.
7220         * lto-streamer.c: Likewise.
7221         * rtl.h: Add tree-core.h to include list.
7222         * expr.h: Remove tree-core.h from include list.
7223         * gimple.h: Likewise.
7224         * ipa-utils.h: Likewise.
7225         * streamer-hooks.h: Likewise.
7226         * streamer-hooks.c: Include input.h.
7228 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7230         * config/arm/arm.c (cortexa7_extra_costs): New table.
7231         (arm_cortex_a7_tune): New.
7232         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
7234 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
7236         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
7238 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7240         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
7241         to use autogenerated markers for a class-hierarchy, every class
7242         must have a GTY marker.
7243         * gengtype.h (struct type): Add linked list of subclasses to
7244         the "s" member of the union.
7245         (add_subclass): New decl.
7246         * gengtype-state.c (read_state_struct_type): Set up subclass
7247         linked list.
7248         * gengtype.c (get_ultimate_base_class): New.
7249         (add_subclass): New.
7250         (new_structure): Set up subclass linked list.
7251         (set_gc_used_type): Propagate usage information to subclasses.
7252         (output_mangled_typename): Use get_ultimate_base_class.
7253         (walk_subclasses): Use the subclass linked list, avoiding an
7254         O(N^2) when writing out all types.
7255         (walk_type): Issue an error if the base class is missing a tag,
7256         rather than generating bogus C code.  Add a gcc_unreachable
7257         default case, in case people omit tags from concrete subclasses,
7258         or get the values wrong.
7259         (write_func_for_structure): Issue an error for subclasses for
7260         which the base doesn't have a "desc", since otherwise the
7261         autogenerated routines for the base would silently fail to visit
7262         any subclass fields.
7263         (write_root): Use get_ultimate_base_class, tweaking constness of
7264         tp to match that function's signature.
7266 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7268         * doc/gty.texi (GTY Options): Add note about inheritance to
7269         description of desc and tag.
7270         (Inheritance and GTY): New.
7272 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7274         * gengtype-parse.c (opts_have): Drop "static" so that
7275         we can use this from gengtype.c.
7276         * gengtype.c (set_gc_used_type): Mark any base class as used;
7277         update field traversal to visit inherited fields.
7278         (output_mangled_typename):  Convert references to classes within
7279         an inheritance hierarchy to reference the ultimate base class,
7280         since only it will have gt_ functions.
7281         (get_string_option): New.
7282         (walk_subclasses): New.
7283         (walk_type): Treat GTY structs that have a "desc" as being the
7284         root of an inheritance hierarchy.  Generate a switch on it
7285         within the marking function which walks all subclasses, adding
7286         cases for them via walk_subclasses.  For subclasses, visit all
7287         fields of the type (including inherited ones).
7288         (write_func_for_structure): Don't write fns for subclasses, only
7289         for the ultimate base class within an inheritance hierarchy.
7290         Subclasses-marking will be handled by the base class marking functions.
7291         (write_types): Likewise.
7292         (write_local_func_for_structure): Likewise.
7293         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
7294         a "tag" option (and are thus concrete subclasses).
7295         (write_root): Use the marker function for the ultimate base class.
7296         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
7297         (opts_have): Add declaration.
7299 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
7301         * lra-spills.c (lra_final_code_change): Remove useless move insns
7302         originated from moves of pseudos.
7304 2013-10-28  Jeff Law  <law@redhat.com>
7306         * lower-subreg.c (resolve_simple_move): Fix comment typo.
7308 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
7310         * df-scan.c (df_collection_rec): Adjust.
7311         (copy_defs): New constant.
7312         (copy_uses): Likewise.
7313         (copy_eq_uses): Likewise.
7314         (copy_mw): Likewise.
7315         (copy_all): Likewise.
7316         (df_insn_rescan): Adjust.
7317         (df_notes_rescan): Likewise.
7318         (df_swap_refs): Likewise.
7319         (df_sort_and_compress_refs): Likewise.
7320         (df_sort_and_compress_mws): Likewise.
7321         (df_install_refs): Likewise.
7322         (df_install_mws): Likewise.
7323         (df_refs_add_to_chains): Add flags parameter controlling which vectors
7324         are coppied.
7325         (df_bb_refs_record): Adjust.
7326         (df_record_entry_block_defs): Likewise.
7327         (df_record_exit_block_defs): Likewise.
7328         (df_refs_verify): Likewise.
7329         (df_mws_verify): Likewise.
7330         (df_insn_refs_verify): Likewise.
7331         (df_bb_verify): Likewise.
7332         * ipa-pure-const.c (finish_state): Remove.
7333         (propagate): Adjust.
7334         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
7335         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
7336         var-tracking.c: Adjust.
7337         * vec.c (stack_vecs): Remove.
7338         (register_stack_vec): Likewise.
7339         (stack_vec_register_index): Likewise.
7340         (unregister_stack_vec): Likewise.
7341         * vec.h (struct va_stack): Remove.
7342         (struct vec<T, A, vl_ptr>): Specialize as
7343         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
7344         allocation strategy compatable with the vl_ptr layout.
7345         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
7346         specialization anyway.
7347         (class stack_vec): New class.
7348         (vec_stack_alloc): Remove.
7349         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
7351 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7352             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7353             Sergey Lega  <sergey.s.lega@intel.com>
7354             Anna Tikhonova  <anna.tikhonova@intel.com>
7355             Ilya Tocar  <ilya.tocar@intel.com>
7356             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7357             Ilya Verbin  <ilya.verbin@intel.com>
7358             Kirill Yukhin  <kirill.yukhin@intel.com>
7359             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7361         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
7362         (*prefetch_avx512pf_<mode>): New.
7363         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
7364         (avx512f_maskcmp<mode>3): Ditto.
7365         (vashrv16si3): Ditto.
7367 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7368             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7369             Sergey Lega  <sergey.s.lega@intel.com>
7370             Anna Tikhonova  <anna.tikhonova@intel.com>
7371             Ilya Tocar  <ilya.tocar@intel.com>
7372             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7373             Ilya Verbin  <ilya.verbin@intel.com>
7374             Kirill Yukhin  <kirill.yukhin@intel.com>
7375             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7377         * config/i386/i386.md (any_truncate): New.
7378         (trunsuffix): Ditto.
7379         * config/i386/predicates.md (const_8_to_9_operand): New.
7380         (const_10_to_11_operand): Ditto.
7381         (const_12_to_13_operand): Ditto.
7382         (const_14_to_15_operand): Ditto.
7383         (const_16_to_19_operand): Ditto.
7384         (const_20_to_23_operand): Ditto.
7385         (const_24_to_27_operand): Ditto.
7386         (const_28_to_31_operand): Ditto.
7387         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
7388         (cvtusi2<ssescalarmodesuffix>32): New.
7389         (cvtusi2<ssescalarmodesuffix>64): Ditto.
7390         (ufloatv16siv16sf2): Ditto.
7391         (avx512f_fix_notruncv16sfv16si): Ditto.
7392         (avx512f_ufix_notruncv16sfv16si): Ditto.
7393         (avx512f_vcvtss2usi): Ditto.
7394         (avx512f_vcvtss2usiq): Ditto.
7395         (avx512f_vcvttss2usi): Ditto.
7396         (avx512f_vcvttss2usiq): Ditto.
7397         (avx512f_vcvtsd2usi): Ditto.
7398         (avx512f_vcvtsd2usiq): Ditto.
7399         (avx512f_vcvttsd2usi): Ditto.
7400         (avx512f_vcvttsd2usiq): Ditto.
7401         (ufloatv8siv8df): Ditto.
7402         (avx512f_cvtdq2pd512_2): Ditto.
7403         (avx512f_cvtpd2dq512): Ditto.
7404         (avx512f_ufix_notruncv8dfv8si): Ditto.
7405         (avx512f_cvtpd2ps512): Ditto.
7406         (vec_unpacks_lo_v16sf): Ditto.
7407         (vec_unpacks_hi_v16sf): Ditto.
7408         (vec_unpacks_float_hi_v16si): Ditto.
7409         (vec_unpacks_float_lo_v16si): Ditto.
7410         (avx512f_unpckhps512): Ditto.
7411         (avx512f_unpcklps512): Ditto.
7412         (avx512f_movshdup512): Ditto.
7413         (avx512f_movsldup512): Ditto.
7414         (vec_extract_lo_v32hi): Ditto.
7415         (vec_extract_hi_v32hi): Ditto.
7416         (vec_extract_lo_v64qi): Ditto.
7417         (vec_extract_hi_v64qi): Ditto.
7418         (avx512f_unpckhpd512): Ditto.
7419         (avx512f_movddup512): Ditto.
7420         (avx512f_unpcklpd512): Ditto.
7421         (*avx512f_unpcklpd512): Ditto.
7422         (avx512f_shufps512_1): Ditto.
7423         (avx512f_shufpd512_1): Ditto.
7424         (avx512f_interleave_highv8di): Ditto.
7425         (avx512f_interleave_lowv8di): Ditto.
7426         (PMOV_DST_MODE): Ditto.
7427         (pmov_src_mode): Ditto.
7428         (pmov_src_lower): Ditto.
7429         (pmov_suff): Ditto.
7430         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
7431         (*avx512f_<code>v8div16qi2): Ditto.
7432         (*avx512f_<code>v8div16qi2_store): Ditto.
7433         (vec_widen_umult_even_v16si): Ditto.
7434         (*vec_widen_umult_even_v16si): Ditto.
7435         (vec_widen_smult_even_v16si): Ditto.
7436         (*vec_widen_smult_even_v16si): Ditto.
7437         (avx512f_interleave_highv16si): Ditto.
7438         (avx512f_interleave_lowv16si): Ditto.
7439         (avx512f_<code>v16qiv16si2): Ditto.
7440         (avx512f_<code>v16hiv16si2): Ditto.
7441         (avx512f_<code>v8qiv8di2): Ditto.
7442         (avx512f_<code>v8hiv8di2): Ditto.
7443         (avx512f_<code>v8siv8di2): Ditto.
7444         (avx512cd_maskb_vec_dupv8di): Ditto.
7445         (avx512cd_maskw_vec_dupv16si): Ditto.
7446         (avx512f_vcvtph2ps512): Ditto.
7447         (avx512f_vcvtps2ph512): Ditto.
7448         (VEC_EXTRACT_MODE): Extened with wider modes.
7449         (VEC_PERM_AVX2): Ditto.
7450         (VEC_PERM_CONST): Ditto.
7452 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7454         * config/arc/arc.c (arc_ccfsm_post_advance):
7455         Add comment about TYPE_RETURN.
7457 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
7459         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
7460         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
7461         (strip_offset): Convert offset to unsigned number.
7463 2013-10-27  Tom de Vries  <tom@codesourcery.com>
7465         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
7466         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
7468 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
7470         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
7471         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
7472         (TARGET_BIG_ENDIAN): New macro.
7473         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
7474         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
7475         * config/sh/sh.c: Likewise.
7476         * config/sh/sh.h: Likewise.
7478 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
7480         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
7481         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
7483 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
7485         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
7486         Fix formatting.
7487         (cmpstr_t, cmpstrsi): Fix formatting.
7489 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
7491         PR target/52483
7492         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
7493         addressing, do not use general_operand for memory operands.
7495 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
7497         Revert:
7498         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
7499         * lra-spills.c (lra_final_code_change): Remove useless move insns.
7501 2013-10-26  Jeff Law  <law@redhat.com>
7503         * predict.c (PRED_MUDFLAP): Remove.
7504         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
7506         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
7507         (OBJS): Remove tree-nomudflap.o
7508         (GTFILES): Remove tree-mudflap.c
7509         * builtins.c (expand_builtin_alloc): Remove mudflap support.
7510         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
7511         (mfwrap_spec, mflib_spec): Likewise.
7512         (cpp_unique_options, cc1_options, static_specs): Likewise.
7513         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
7514         * passes.def: Likewise.
7515         * toplev.c (compile_file, process_options): Likewise.
7516         * tree-inline.c (copy_tree_r): Likewise.
7517         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
7518         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
7519         (build_constant_desc, output_constant_def_contents): Likewise.
7520         (categorize_decl_for_section): Likewise.
7521         * tree-mudflap.c: Removed.
7522         * tree-mudflap.h: Removed.
7523         * tree-nomudflap.c: Removed.
7524         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
7525         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
7526         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
7527         * config/sol2.h (MFLIB_SPEC): Likewise.
7528         * doc/install.texi: Remove mudflap references.
7529         * doc/passes.texi: Similarly.
7530         * doc/sourcebuild.texi: Similarly.
7531         * doc/invoke.texi: Remove mudlfap related options.
7533 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
7535         PR rtl-optimization/58759
7536         * lra-constraints.c (lra_constraints): Remove wrong condition to
7537         remove insn setting up an equivalent pseudo.
7539 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
7541         * config/rs6000/rs6000-protos.h
7542         (rs6000_secondary_memory_needed_mode): New prototype.
7543         * config/rs6000/rs6000.c: Include ira.h.
7544         (TARGET_LRA_P): Redefine.
7545         (rs6000_legitimate_offset_address_p): Call
7546         legitimate_constant_pool_address_p in strict mode for LRA.
7547         (rs6000_legitimate_address_p): Ditto.
7548         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
7549         (rs6000_emit_move): Add LRA version of code to generate load/store
7550         of SDmode values.
7551         (rs6000_secondary_memory_needed_mode): New.
7552         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
7553         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
7554         constants, memory, and FP registers.
7555         (rs6000_lra_p): New.
7556         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
7557         * config/rs6000/rs6000.opt (mlra): New option.
7558         * lra-spills.c (lra_final_code_change): Remove useless move insns.
7560 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
7562         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
7563         has_single_use () and not do the conversion if has_single_use ()
7564         returns false for the multiplication result.
7566 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
7568         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
7569         to "NODE", since this works on a "tree", not an
7570         "enum tree_code".
7571         (CONSTANT_CLASS_P): Likewise.
7572         (TYPE_P): Likewise.
7573         (DECL_P): Likewise.
7574         (INDIRECT_REF_P): Likewise.
7575         (REFERENCE_CLASS_P): Likewise.
7576         (COMPARISON_CLASS_P): Likewise.
7577         (UNARY_CLASS_P): Likewise.
7578         (BINARY_CLASS_P): Likewise.
7579         (STATEMENT_CLASS_P): Likewise.
7580         (VL_EXP_CLASS_P): Likewise.
7581         (EXPRESSION_CLASS_P): Likewise.
7582         (IS_TYPE_OR_DECL_P): Likewise.
7584 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
7586         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
7587         ADDR_EXPR in the defining statement.
7589 2013-10-25  Richard Biener  <rguenther@suse.de>
7591         PR tree-optimization/58626
7592         * tree-loop-distribution.c (enum rdg_dep_type): Remove
7593         anti_dd, output_dd and input_dd.
7594         (struct rdg_edge): Remove level and relation members.
7595         (RDGE_LEVEL, RDGE_RELATION): Remove.
7596         (dot_rdg_1): Adjust.
7597         (create_rdg_edge_for_ddr): Remove.
7598         (create_rdg_edges_for_scalar): Adjust.
7599         (create_edge_for_control_dependence): Likewise.
7600         (create_rdg_edges): Split into ...
7601         (create_rdg_flow_edges): ... this
7602         (create_rdg_cd_edges): ... and this.
7603         (free_rdg): Adjust.
7604         (build_rdg): Likewise, do not compute data dependences or
7605         add edges for them.
7606         (pg_add_dependence_edges): New function.
7607         (pgcmp): Likewise.
7608         (distribute_loop): First apply all non-dependence based
7609         partition mergings.  Then compute dependences between partitions
7610         and merge and order partitions according to them.
7612 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
7614         PR rtl-optimization/58831
7615         * alias.c (init_alias_analysis): At the beginning of each iteration,
7616         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
7618 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
7620         * recog.c (search_ofs): New static variable moved from...
7621         (peep2_find_free_register): ...here.
7622         (peephole2_optimize): Initialize it.
7624 2013-10-25  Tobias Burnus  <burnus@net-b.de>
7626         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
7628 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
7630         * config/i386/i386.h (TARGET_MPX): New define.
7631         (TARGET_MPX_P): Ditto.
7633 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
7635         * config/i386/constraints.md (B): New.
7636         (Ti): New.
7637         (Tb): New.
7638         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
7639         * config/i386/i386-modes.def (BND32): New.
7640         (BND64): New.
7641         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
7642         * config/i386/i386.c (isa_opts): Add mmpx.
7643         (regclass_map): Add bound registers.
7644         (dbx_register_map): Likewise.
7645         (dbx64_register_map): Likewise.
7646         (svr4_dbx_register_map): Likewise.
7647         (PTA_MPX): New.
7648         (ix86_option_override_internal): Support MPX ISA.
7649         (ix86_conditional_register_usage): Support bound registers.
7650         (print_reg): Likewise.
7651         (ix86_code_end): Add MPX bnd prefix.
7652         (output_set_got): Likewise.
7653         (ix86_output_call_insn): Likewise.
7654         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
7655         (ix86_print_operand_punct_valid_p): Likewise.
7656         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
7657         UNSPEC_BNDMK_ADDR.
7658         (ix86_class_likely_spilled_p): Add bound regs support.
7659         (ix86_hard_regno_mode_ok): Likewise.
7660         (x86_order_regs_for_local_alloc): Likewise.
7661         (ix86_bnd_prefixed_insn_p): New.
7662         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
7663         (FIXED_REGISTERS): Add bound registers.
7664         (CALL_USED_REGISTERS): Likewise.
7665         (REG_ALLOC_ORDER): Likewise.
7666         (HARD_REGNO_NREGS): Likewise.
7667         (TARGET_MPX): New.
7668         (VALID_BND_REG_MODE): New.
7669         (FIRST_BND_REG): New.
7670         (LAST_BND_REG): New.
7671         (reg_class): Add BND_REGS.
7672         (REG_CLASS_NAMES): Likewise.
7673         (REG_CLASS_CONTENTS): Likewise.
7674         (BND_REGNO_P): New.
7675         (ANY_BND_REG_P): New.
7676         (BNDmode): New.
7677         (HI_REGISTER_NAMES): Add bound registers.
7678         * config/i386/i386.md (UNSPEC_BNDMK): New.
7679         (UNSPEC_BNDMK_ADDR): New.
7680         (UNSPEC_BNDSTX): New.
7681         (UNSPEC_BNDLDX): New.
7682         (UNSPEC_BNDLDX_ADDR): New.
7683         (UNSPEC_BNDCL): New.
7684         (UNSPEC_BNDCU): New.
7685         (UNSPEC_BNDCN): New.
7686         (UNSPEC_MPX_FENCE): New.
7687         (BND0_REG): New.
7688         (BND1_REG): New.
7689         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7690         (length_immediate): Likewise.
7691         (prefix_0f): Likewise.
7692         (memory): Likewise.
7693         (prefix_rep): Check for bnd prefix.
7694         (length_nobnd): New.
7695         (length): Use length_nobnd if specified.
7696         (BND): New.
7697         (bnd_ptr): New.
7698         (BNDCHECK): New.
7699         (bndcheck): New.
7700         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
7701         (*jcc_2): Likewise.
7702         (jump): Likewise.
7703         (simple_return_internal): Likewise.
7704         (simple_return_pop_internal): Likewise.
7705         (*indirect_jump): Add MPX bnd prefix.
7706         (*tablejump_1): Likewise.
7707         (simple_return_internal_long): Likewise.
7708         (simple_return_indirect_internal): Likewise.
7709         (<mode>_mk): New.
7710         (*<mode>_mk): New.
7711         (mov<mode>): New.
7712         (*mov<mode>_internal_mpx): New.
7713         (<mode>_<bndcheck>): New.
7714         (*<mode>_<bndcheck>): New.
7715         (<mode>_ldx): New.
7716         (*<mode>_ldx): New.
7717         (<mode>_stx): New.
7718         (*<mode>_stx): New.
7719         * config/i386/predicates.md (lea_address_operand): Rename to...
7720         (address_no_seg_operand): ... this.
7721         (address_mpx_no_base_operand): New.
7722         (address_mpx_no_index_operand): New.
7723         (bnd_mem_operator): New.
7724         * config/i386/i386.opt (mmpx): New.
7725         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
7726         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
7728 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
7730         * mode-classes.def (MODE_POINTER_BOUNDS): New.
7731         * tree.def (POINTER_BOUNDS_TYPE): New.
7732         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
7733         (POINTER_BOUNDS_MODE): New.
7734         (make_pointer_bounds_mode): New.
7735         * machmode.h (POINTER_BOUNDS_MODE_P): New.
7736         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
7737         (layout_type): Support POINTER_BOUNDS_TYPE.
7738         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
7739         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
7740         (type_contains_placeholder_1): Likewise.
7741         * tree.h (POINTER_BOUNDS_TYPE_P): New.
7742         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
7743         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
7745 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
7747         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
7748         mode of address computation when calling memory_address_addr_space.
7750 2013-08-24  Richard Henderson  <rth@twiddle.net>
7752         PR rtl/58542
7753         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
7754         instead of create_convert_operand_to.
7755         (maybe_emit_sync_lock_test_and_set): Likewise.
7756         (expand_atomic_compare_and_swap): Likewise.
7757         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
7759 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
7761         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
7762         Change param_is to use the struct and not the pointer to the struct.
7764 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
7766         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
7767         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7768         Move to targhooks.c.
7769         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
7770         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7771         Relocate from gimplify.c.
7772         * targhooks.h: Add 2 prototypes.
7773         * tree.h: Delete 2 prototypes.
7775 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
7777         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
7778         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
7780 2013-10-24  Cong Hou  <congh@google.com>
7782         * convert.c (convert_to_real): Guard those unsafe math function
7783         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
7784         specially.
7786 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
7788         PR ipa/58712
7789         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
7790         as argument.
7791         (cgraph_create_edge): Use the new argument.
7792         (cgraph_create_indirect_edge): Likewise.
7794 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
7796         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
7797         TYPE_UNCOND_BRANCH.
7798         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
7799         changes statep->state.
7801 2013-10-24  Tobias Burnus  <burnus@net-b.de>
7803         PR other/33426
7804         * tree-cfg.c (replace_loop_annotate): New function.
7805         (execute_build_cfg): Call it.
7806         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
7807         * internal-fn.c (expand_ANNOTATE): New function.
7808         * internal-fn.def (ANNOTATE): Define as new internal function.
7809         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
7810         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
7811         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
7812         * doc/extend.texi (Pragmas): Document #pragma ivdep.
7813         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
7815 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
7816             Marcus Shawcroft  <marcus.shawcroft@arm.com>
7818         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
7819         Special case reload SP+C into none GENERAL_REGS.
7821 2013-10-24  Michael Matz  <matz@suse.de>
7823         * gengtype.c (is_file_equal): Check that files will be same length.
7825 2013-10-25  Christian Bruel  <christian.bruel@st.com>
7827         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
7828         * config/sh/t-sh (sh-mem.o): New rule.
7829         * config/sh/sh-mem.cc (expand_block_move): Moved here.
7830         (sh_expand_cmpstr): New function.
7831         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
7832         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
7833         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
7834         (rotlhi3_8): Rename.
7836 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7838         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
7839         * Makefile.in (CXXDEPMODE): Assign and change users.
7840         (CCDEPMODE): Delete.
7841         * configure: Regenerate.
7843 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
7845         * gengtype-parse.c (require_without_advance): New.
7846         (type): For GTY-marked types that are not GTY((user)), parse any
7847         base classes, requiring them to be single-inheritance, and not
7848         be templates.  For non-GTY-marked types and GTY((user)),
7849         continue to skip over any C++ inheritance specification.
7850         * gengtype-state.c (state_writer::write_state_struct_type):
7851         Write base class of type (if any).
7852         (read_state_struct_type): Read base class of type (if any).
7853         * gengtype.c (new_structure): Add a "base_class" parameter.
7854         (create_optional_field_): Update for new parameter to new_structure.
7855         (adjust_field_rtx_def): Likewise.
7856         (adjust_field_tree_exp): Likewise.
7857         * gengtype.h (struct type): Add "base_class" field to the s
7858         union field.
7859         (new_structure): Add "base" parameter.
7861 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
7863         PR target/57756
7864         * config/i386/i386.c (ix86_option_override_internal):
7865         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
7866         (ix86_valid_target_attribute_tree):
7867         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
7868         Change TARGET_SSE to TARGET_SSE_P (opts->...)
7870 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
7872         * tree-ssa-loop.h: Remove include files.
7873         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7874         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
7875         * graphite-clast-to-gimple.c: Likewise.
7876         * graphite-scop-detection.c: Likewise.
7877         * graphite-sese-to-poly.c: Likewise.
7878         * ipa-inline-analysis.c: Likewise.
7879         * ipa-pure-const.c: Likewise.
7880         * loop-init.c: Likewise.
7881         * passes.c: Likewise.
7882         * predict.c: Likewise.
7883         * tree-cfg.c: Likewise.
7884         * tree-cfgcleanup.c: Likewise.
7885         * tree-chrec.c: Likewise.
7886         * tree-data-ref.c: Likewise.
7887         * tree-loop-distribution.c: Likewise.
7888         * tree-parloops.c: Likewise.
7889         * tree-predcom.c: Likewise.
7890         * tree-scalar-evolution.c: Likewise.
7891         * tree-ssa-address.c: Likewise.
7892         * tree-ssa.c: Likewise.
7893         * tree-ssa-dce.c: Likewise.
7894         * tree-ssa-loop.c: Likewise.
7895         * tree-ssa-loop-im.c: Likewise.
7896         * tree-ssa-loop-ivcanon.c: Likewise.
7897         * tree-ssa-loop-ivopts.c: Likewise.
7898         * tree-ssa-loop-manip.c: Likewise.
7899         * tree-ssa-loop-niter.c: Likewise.
7900         * tree-ssa-loop-prefetch.c: Likewise.
7901         * tree-ssa-loop-unswitch.c: Likewise.
7902         * tree-ssa-reassoc.c: Likewise.
7903         * tree-vect-data-refs.c: Likewise.
7904         * tree-vect-loop.c: Likewise.
7905         * tree-vect-loop-manip.c: Likewise.
7906         * tree-vectorizer.c: Likewise.
7907         * tree-vect-stmts.c: Likewise.
7908         * tree-vrp.c: Likewise.
7910 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7912         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
7914 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
7916         PR tree-optimization/58775
7917         PR tree-optimization/58791
7918         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
7919         (insert_stmt_after): Rewritten, don't move the stmt, but really
7920         insert it.
7921         (get_stmt_uid_with_default): Remove.
7922         (build_and_add_sum): Use insert_stmt_after and
7923         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
7924         (update_range_test): Set uid on stmts added by
7925         force_gimple_operand_gsi.  Don't immediately modify statements
7926         in inter-bb optimization, just update oe->op values.
7927         (optimize_range_tests): Return bool whether any changed have been made.
7928         (update_ops): New function.
7929         (struct inter_bb_range_test_entry): New type.
7930         (maybe_optimize_range_tests): Perform statement changes here.
7931         (not_dominated_by, appears_later_in_bb, get_def_stmt,
7932         ensure_ops_are_available): Remove.
7933         (find_insert_point): Rewritten.
7934         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
7935         return LHS of the (new resp. old) stmt.  Don't call
7936         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
7937         instead of last, move new stmt at the right place.
7938         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
7939         (negate_value): Likewise.  Set uids.
7940         (break_up_subtract_bb): Initialize uids.
7941         (reassociate_bb): Adjust rewrite_expr_tree caller.
7942         (do_reassoc): Don't call renumber_gimple_stmt_uids.
7944 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
7946         PR target/58838
7947         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
7948         TARGET_32BIT final condition.
7949         (mulsi3_internal2 and splitter): Same.
7951 2013-10-23  Jeff Law  <law@redhat.com>
7953         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
7954         through joiner blocks with abnormal outgoing edges.
7956         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
7957         Add parameter JOINERS, to allow/disallow threading through joiner
7958         blocks.
7959         (thread_block): New.  Call thread_block_1.
7960         (mark_threaded_blocks): Remove code to filter out certain cases
7961         of threading through joiner blocks.
7962         (thread_through_all_blocks): Document how we can have a dangling
7963         edge AUX field and clear it.
7965 2013-10-23  Ian Lance Taylor  <iant@google.com>
7967         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
7968         (C++ Dialect Options): Likewise.
7969         (Optimize Options): Likewise.
7971 2013-10-23  Tom de Vries  <tom@codesourcery.com>
7973         PR tree-optimization/58805
7974         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
7976 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
7978         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
7979         sequence based on get_range_info returned range.
7981 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
7983         * tree-ssa.h: Remove all #include's
7984         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7985         * alias.c: Move required includes from tree-ssa.h.
7986         * asan.c: Likewise.
7987         * builtins.c: Likewise.
7988         * calls.c: Likewise.
7989         * cfgexpand.c: Likewise.
7990         * cfghooks.c: Likewise.
7991         * cfgloop.c: Likewise.
7992         * cfgloopmanip.c: Likewise.
7993         * cgraph.c: Likewise.
7994         * cgraphbuild.c: Likewise.
7995         * cgraphclones.c: Likewise.
7996         * cgraphunit.c: Likewise.
7997         * dse.c: Likewise.
7998         * except.c: Likewise.
7999         * expr.c: Likewise.
8000         * final.c: Likewise.
8001         * fold-const.c: Likewise.
8002         * ggc-page.c: Likewise.
8003         * gimple-builder.c: Likewise.
8004         * gimple-fold.c: Likewise.
8005         * gimple-iterator.c: Likewise.
8006         * gimple-low.c: Likewise.
8007         * gimple-pretty-print.c: Likewise.
8008         * gimple-ssa-strength-reduction.c: Likewise.
8009         * gimple-streamer-in.c: Likewise.
8010         * gimple-streamer-out.c: Likewise.
8011         * gimplify.c: Likewise.
8012         * graphite-blocking.c: Likewise.
8013         * graphite-clast-to-gimple.c: Likewise.
8014         * graphite-dependences.c: Likewise.
8015         * graphite-interchange.c: Likewise.
8016         * graphite-optimize-isl.c: Likewise.
8017         * graphite-poly.c: Likewise.
8018         * graphite-scop-detection.c: Likewise.
8019         * graphite-sese-to-poly.c: Likewise.
8020         * graphite.c: Likewise.
8021         * ipa-cp.c: Likewise.
8022         * ipa-inline-analysis.c: Likewise.
8023         * ipa-inline-transform.c: Likewise.
8024         * ipa-inline.c: Likewise.
8025         * ipa-prop.c: Likewise.
8026         * ipa-pure-const.c: Likewise.
8027         * ipa-reference.c: Likewise.
8028         * ipa-split.c: Likewise.
8029         * ipa-utils.c: Likewise.
8030         * loop-init.c: Likewise.
8031         * lto-cgraph.c: Likewise.
8032         * lto-section-in.c: Likewise.
8033         * lto-section-out.c: Likewise.
8034         * lto-streamer-in.c: Likewise.
8035         * lto-streamer-out.c: Likewise.
8036         * lto-streamer.c: Likewise.
8037         * omp-low.c: Likewise.
8038         * passes.c: Likewise.
8039         * predict.c: Likewise.
8040         * print-tree.c: Likewise.
8041         * profile.c: Likewise.
8042         * sese.c: Likewise.
8043         * targhooks.c: Likewise.
8044         * tracer.c: Likewise.
8045         * trans-mem.c: Likewise.
8046         * tree-call-cdce.c: Likewise.
8047         * tree-cfg.c: Likewise.
8048         * tree-cfgcleanup.c: Likewise.
8049         * tree-chrec.c: Likewise.
8050         * tree-complex.c: Likewise.
8051         * tree-data-ref.c: Likewise.
8052         * tree-dfa.c: Likewise.
8053         * tree-eh.c: Likewise.
8054         * tree-emutls.c: Likewise.
8055         * tree-if-conv.c: Likewise.
8056         * tree-inline.c: Likewise.
8057         * tree-into-ssa.c: Likewise.
8058         * tree-loop-distribution.c: Likewise.
8059         * tree-mudflap.c: Likewise.
8060         * tree-nested.c: Likewise.
8061         * tree-nrv.c: Likewise.
8062         * tree-object-size.c: Likewise.
8063         * tree-outof-ssa.c: Likewise.
8064         * tree-parloops.c: Likewise.
8065         * tree-phinodes.c: Likewise.
8066         * tree-predcom.c: Likewise.
8067         * tree-pretty-print.c: Likewise.
8068         * tree-profile.c: Likewise.
8069         * tree-scalar-evolution.c: Likewise.
8070         * tree-sra.c: Likewise.
8071         * tree-ssa-address.c: Likewise.
8072         * tree-ssa-alias.c: Likewise.
8073         * tree-ssa-ccp.c: Likewise.
8074         * tree-ssa-coalesce.c: Likewise.
8075         * tree-ssa-copy.c: Likewise.
8076         * tree-ssa-copyrename.c: Likewise.
8077         * tree-ssa-dce.c: Likewise.
8078         * tree-ssa-dom.c: Likewise.
8079         * tree-ssa-dse.c: Likewise.
8080         * tree-ssa-forwprop.c: Likewise.
8081         * tree-ssa-ifcombine.c: Likewise.
8082         * tree-ssa-live.c: Likewise.
8083         * tree-ssa-loop-ch.c: Likewise.
8084         * tree-ssa-loop-im.c: Likewise.
8085         * tree-ssa-loop-ivcanon.c: Likewise.
8086         * tree-ssa-loop-ivopts.c: Likewise.
8087         * tree-ssa-loop-manip.c: Likewise.
8088         * tree-ssa-loop-niter.c: Likewise.
8089         * tree-ssa-loop-prefetch.c: Likewise.
8090         * tree-ssa-loop-unswitch.c: Likewise.
8091         * tree-ssa-loop.c: Likewise.
8092         * tree-ssa-math-opts.c: Likewise.
8093         * tree-ssa-operands.c: Likewise.
8094         * tree-ssa-phiopt.c: Likewise.
8095         * tree-ssa-phiprop.c: Likewise.
8096         * tree-ssa-pre.c: Likewise.
8097         * tree-ssa-propagate.c: Likewise.
8098         * tree-ssa-reassoc.c: Likewise.
8099         * tree-ssa-sccvn.c: Likewise.
8100         * tree-ssa-sink.c: Likewise.
8101         * tree-ssa-strlen.c: Likewise.
8102         * tree-ssa-structalias.c: Likewise.
8103         * tree-ssa-tail-merge.c: Likewise.
8104         * tree-ssa-ter.c: Likewise.
8105         * tree-ssa-threadedge.c: Likewise.
8106         * tree-ssa-threadupdate.c: Likewise.
8107         * tree-ssa-uncprop.c: Likewise.
8108         * tree-ssa-uninit.c: Likewise.
8109         * tree-ssa.c: Likewise.
8110         * tree-ssanames.c: Likewise.
8111         * tree-stdarg.c: Likewise.
8112         * tree-streamer-in.c: Likewise.
8113         * tree-switch-conversion.c: Likewise.
8114         * tree-tailcall.c: Likewise.
8115         * tree-vect-data-refs.c: Likewise.
8116         * tree-vect-generic.c: Likewise.
8117         * tree-vect-loop-manip.c: Likewise.
8118         * tree-vect-loop.c: Likewise.
8119         * tree-vect-patterns.c: Likewise.
8120         * tree-vect-slp.c: Likewise.
8121         * tree-vect-stmts.c: Likewise.
8122         * tree-vectorizer.c: Likewise.
8123         * tree-vrp.c: Likewise.
8124         * tree.c: Likewise.
8125         * tsan.c: Likewise.
8126         * value-prof.c: Likewise.
8127         * var-tracking.c: Likewise.
8128         * varpool.c: Likewise.
8129         * vtable-verify.c: Likewise.
8131 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8133         * config/tilegx/tilegx.c: Include "tree.h".
8135 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8137         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
8138         the info, not after it.
8139         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
8140         dump_ssaname_info call.
8141         (pp_gimple_stmt_1): Adjust caller.
8142         (dump_phi_nodes): Likewise.  Don't print "# " here.
8144 2013-10-22  Jan Hubicka  <jh@suse.cz>
8146         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
8147         tuning flag.
8148         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
8149         * i386.c (expand_small_movmem_or_setmem): New function.
8150         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
8151         function.
8152         (alg_usable_p): Add support for value ranges; cleanup.
8153         (ix86_expand_set_or_movmem): Add support for misaligned moves.
8155 2013-10-22  Sterling Augustine  <saugustine@google.com>
8157         * doc/invoke.texi: Document -ggnu-pubnames.
8158         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
8159         logic.
8160         * dwarf2out.c: Include gdb/gdb-index.h.
8161         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
8162         debug_generate_pub_sections.
8163         (is_java, output_pubtables, output_pubname): New functions.
8164         (include_pubname_in_output): Handle debug_generate_pub_sections at
8165         level 2.
8166         (size_of_pubnames): Use new local space_for_flags based on
8167         debug_generate_pub_sections.
8168         (output_pubnames): Unify pubnames and pubtypes output logic.
8169         Genericize comments.  Call output_pubname.
8170         (dwarf2out_finish): Move logic to output_pubnames and call it.
8172 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
8174         PR target/58779
8175         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
8176         Remove CCCmode handling.
8177         <case LTU>: Return 'c' suffix for CCCmode.
8178         <case GEU>: Return 'nc' suffix for CCCmode.
8179         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
8180         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
8181         (*sub<mode>3_cc_overflow): Ditto.
8182         (*subsi3_zext_cc_overflow): Ditto.
8184 2013-10-22  Steve Ellcey  <sellcey@mips.com>
8186         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
8187         (AND (NOT OP1) (NOT OP2)).
8189 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
8191         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
8192         meaning of merge-high and merge-low masks for little endian; avoid
8193         use of vector-pack masks for little endian for mismatched modes.
8195 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8197         * config/tilepro/tilepro.c: Include "tree.h".
8199 2013-10-22  Andreas Schwab  <schwab@suse.de>
8201         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
8202         with PRE_DEC.
8204 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
8206         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
8207         [Ed Smith-Rowland]): New entries.
8208         ([Stephen M. Webb]): Update.
8210 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
8212         * tree-ssa-ter.h: Remove duplicate copy of file contents.
8214 2013-10-21  Marek Polacek  <polacek@redhat.com>
8216         PR middle-end/58809
8217         * fold-const.c (fold_range_test): Return 0 if the type is not
8218         an integral type.
8220 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
8222         * system.h: Move hwint.h include further down.
8223         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
8224         gcc_checking_asserts.
8225         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
8227 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8229         Fix volatile issues in optimize_bit_field_compare.
8230         * fold-const.c (optimize_bit_field_compare): Bail out if
8231         lvolatilep or rvolatilep.
8233 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8235         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
8236         and get_inner_reference returning different pmode for non-volatile
8237         bit-field members dependent on flag_strict_volatile_bitfields.
8238         * stor-layout.c (layout_decl): Remove special handling of
8239         flag_strict_volatile_bitfields.
8240         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
8241         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
8243 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
8245         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
8246         calculations.
8248 2013-10-21  Jeff Law  <law@redhat.com>
8250         * tree-ssa-threadedge.c (thread_through_normal_block): New
8251         argument VISITED.  Remove VISISTED as a local variable.  When we
8252         have a threadable jump, verify the destination of the jump has not
8253         been visised.
8254         (thread_across_edge): Allocate VISITED bitmap once at function
8255         scope and use it throughout.  Make sure to set appropriate bits in
8256         VISITED for E (start of jump thread path).
8257         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
8258         through a joiner if any edge on the path has a recorded jump thread.
8260 2013-10-21  Ian Lance Taylor  <iant@google.com>
8262         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
8263         don't imply that attributes can solve all problems.
8264         (Directory Options): Fix typo.
8266 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8268         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
8269         extend and extend_add.
8271 2013-10-21  Richard Biener  <rguenther@suse.de>
8273         PR tree-optimization/58794
8274         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
8275         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
8277 2013-10-21  Richard Biener  <rguenther@suse.de>
8279         PR middle-end/58742
8280         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
8281         to (T) X for sign-changing conversions (or no conversion).
8283 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
8285         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
8287 2013-10-20  Jan Hubicka  <jh@suse.cz>
8289         * config/i386/i386-tune.def: Add comment; organize into categories
8291 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
8293         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
8294         argument.  Update function comment.
8295         (expand_set_or_movmem_via_rep): New function combining
8296         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
8297         (expand_movmem_via_rep_mov): Remove.
8298         expand_setmem_via_rep_stos): Remove.
8299         (expand_movmem_epilogue): Update calls correspondingly.
8300         (expand_setmem_epilogue_via_loop): Likewise.
8301         (emit_memset): New.
8302         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
8303         (expand_set_or_movmem_prologue): New function combining
8304         expand_movmem_prologue and expand_setmem_prologue.
8305         (expand_movmem_prologue): Remove.
8306         (expand_setmem_prologue): Remove.
8307         (expand_set_or_movmem_constant_prologue): New function combining
8308         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
8309         (expand_constant_movmem_prologue): Remove.
8310         (expand_constant_setmem_prologue): Remove.
8311         (promote_duplicated_reg): Allow vector-const0 value.
8312         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
8313         and ix86_expand_setmem.
8314         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
8315         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
8317 2013-10-21  Diego Novillo  <dnovillo@google.com>
8319         * asan.c: Include tree.h
8320         * bb-reorder.c: Likewise.
8321         * cfgcleanup.c: Likewise.
8322         * cfgloopmanip.c: Likewise.
8323         * data-streamer-in.c: Likewise.
8324         * data-streamer-out.c: Likewise.
8325         * data-streamer.c: Likewise.
8326         * dwarf2cfi.c: Likewise.
8327         * graphite-blocking.c: Likewise.
8328         * graphite-clast-to-gimple.c: Likewise.
8329         * graphite-dependences.c: Likewise.
8330         * graphite-interchange.c: Likewise.
8331         * graphite-optimize-isl.c: Likewise.
8332         * graphite-poly.c: Likewise.
8333         * graphite-scop-detection.c: Likewise.
8334         * graphite-sese-to-poly.c: Likewise.
8335         * graphite.c: Likewise.
8336         * ipa-devirt.c: Likewise.
8337         * ipa-profile.c: Likewise.
8338         * ipa.c: Likewise.
8339         * ira.c: Likewise.
8340         * loop-init.c: Likewise.
8341         * loop-unroll.c: Likewise.
8342         * lower-subreg.c: Likewise.
8343         * lto/lto-object.c: Likewise.
8344         * recog.c: Likewise.
8345         * reginfo.c: Likewise.
8346         * tree-loop-distribution.c: Likewise.
8347         * tree-parloops.c: Likewise.
8348         * tree-ssa-strlen.c: Likewise.
8349         * tree-streamer.c: Likewise.
8350         * value-prof.c: Likewise.
8351         * target-globals.c: Likewise.
8352         * expr.h: Include tree-core.h instead of tree.h.
8353         * gimple.h: Likewise.
8354         * ipa-prop.h: Likewise.
8355         * ipa-utils.h: Likewise.
8356         * lto-streamer.h: Likewise.
8357         * streamer-hooks.h: Likewise.
8358         * ipa-reference.h: Include cgraph.h instead of tree.h.
8359         * cgraph.h: Include basic-block.h instead of tree.h.
8360         * tree-streamer.h: Do not include tree.h.
8361         * genattrtab.c (write_header): Generate inclusion of tree.h.
8362         * genautomata.c (main): Likewise.
8363         * genemit.c: Likewise.
8364         * genopinit.c: Likewise.
8365         * genoutput.c (output_prologue): Likewise.
8366         * genpeep.c: Likewise.
8368 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8370         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
8371         little endian.
8372         (vec_unpacku_hi_v8hi): Likewise.
8373         (vec_unpacku_lo_v16qi): Likewise.
8374         (vec_unpacku_lo_v8hi): Likewise.
8376 2013-10-20  Jan Hubicka  <jh@suse.cz>
8378         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
8379         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
8380         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
8382 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
8384         * config/mips/mips.h (ISA_HAS_WSBH): Define.
8385         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
8386         constants.
8387         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
8389 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
8391         PR target/58603
8392         * system.h: Undef m_slot.
8394 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8396         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
8397         all elements for both endian flavors.
8399 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
8401         PR target/58792
8402         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
8403         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
8404         and SI_REG for 64bit SYSV ABI targets.
8406 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
8408         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
8409         to multi_reg_return.  Clarify that we are skipping USEs of multiple
8410         return registers.  Use bool type where appropriate.
8412 2013-10-18  Jan Hubicka  <jh@suse.cz>
8414         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
8415         for cold functions.
8416         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
8417         (X86_TUNE_PUSH_MEMORY): Likewise.
8418         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
8419         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
8420         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
8421         New.
8422         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
8423         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
8424         Remove.
8425         (ix86_option_override_internal): Update to use tune features instead
8426         of variables.
8428 2013-10-18  Cong Hou  <congh@google.com>
8430         PR tree-optimization/58508
8431         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
8432         statement that contains data refs with zero-step.
8434 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
8436         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
8437         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
8438         * gimple-low.c (gimple_check_call_arg,
8439         gimple_check_call_matching_types): Move to cgraph.c.
8440         * gimple-low.h: Remove prototype.
8441         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
8442         Relocate from gimple-low.c.
8443         * cgraph.h: Add prototype.  Don't include basic-block.h.
8444         * gimplify.c: Add gimple-low to include list.
8445         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
8446         * tree-eh.c: Add gimple-low to include list.
8447         * tree-nested.c: Likewise.
8448         * cfgexpand.c: Add tree-ssa-address.h to include list.
8449         * expr.c: Likewise.
8450         * gimple-fold.c: Likewise.
8451         * gimple-ssa-strength-reduction.c: Likewise.
8452         * trans-mem.c: Likewise.
8453         * tree-mudflap.c: Likewise.
8454         * tree-ssa-loop-ivopts.c: Likewise.
8455         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
8456         (degenerate_phi_result): Move to tree-phinodes.c.
8457         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
8458         * tree-ssa-threadedge.c: Likewise.
8459         * tree-vrp.c: Likewise.
8460         * tree-phinodes.c (degenerate_phi_result): Relocate here.
8461         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
8462         * tree-phinodes.h (degenerate_phi_result): Add prototype.
8463         * tree-ssa-copy.c: Include tree-ssa-dom.h.
8464         * tree-ssa-forwprop.c: Likewise.
8465         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
8466         pass_data_cleanup_cfg_post_optimizing,
8467         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
8468         * tree-optimize.c: Delete File.
8469         * graphite.c: Include tree-cfgcleanup.h.
8470         * passes.c: Likewise.
8471         * tree-cfg.c: Likewise.
8472         * tree-profile.c: Likewise.
8473         * tree-ssa-dse.c: Likewise.
8474         * tree-ssa-loop-ivcanon.c: Likewise.
8475         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
8476         * tree-outof-ssa.c: Include sbitmap.h.
8477         * tree-ssa-live.c: Likewise.
8478         * tree-ssa-propagate.c: Likewise.
8479         * tree-ssa-structalias.c: Likewise.
8480         * tree-stdarg.c: Likewise.
8481         * Makefile.in (OBJS): Delete tree-optimize.o.
8482         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
8483         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
8484         * varasm.c: Include basic-block.h.
8485         * cfgloop.h: Include function.h instead of basic-block.h
8486         (bb_loop_depth): Move to cfgloop.c.
8487         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
8489 2013-10-18  Teresa Johnson  <tejohnson@google.com>
8491         * predict.c (probably_never_executed): Compare frequency-based
8492         count to number of training runs.
8493         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
8495 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8497         * config/arm/arm.c (cortexa9_extra_costs): New table.
8498         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
8500 2013-10-18  Jeff Law  <law@redhat.com>
8502         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
8504         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
8505         (register_jump_thread): Add "registered_jump_thread" debug
8506         counter support.
8507         * dbgcnt.def (registered_jump_thread): New debug counter.
8509 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
8511         * config/rs6000/rs6000.c: Include cgraph.h.
8513 2013-10-18  Teresa Johnson  <tejohnson@google.com>
8515         * tree-ssa-tail-merge.c (replace_block_by): Update edge
8516         weights during merging.
8518 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
8520         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
8521         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
8522         * tree-ssa-operands.h: Remove prototype.
8523         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
8524         * gimple.c (virtual_operand_p): Relocate from gimple.c.
8525         * gimple.h: Add prototype.
8526         * gimple-ssa.h: Include tree-ssa-operands.h.
8527         * tree-dump.c: Add tree-cfg.h to include list.
8528         * tree-ssa-alias.c: Add ipa-reference.h to include list.
8529         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
8530         * config/i386/i386.c: Don't include tree-flow.h.
8531         * config/rs6000/rs6000.c: Likewise.
8533 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8535         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
8537 2013-10-18  Richard Biener  <rguenther@suse.de>
8539         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
8540         or TYPE_UNSIGNED of integral types.
8541         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
8542         NULL_TREE for zero-precision integral types.
8544 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
8546         * config/aarch64/arm_neon.h
8547         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
8549 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
8551         PR target/57756
8552         * opth-gen.awk: Define target_flags_explicit.
8554 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
8556         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
8557         fields to the reg_addr array that describes the valid addressing
8558         mode for any register, general purpose registers, floating point
8559         registers, and Altivec registers.
8560         (FIRST_RELOAD_REG_CLASS): Likewise.
8561         (LAST_RELOAD_REG_CLASS): Likewise.
8562         (struct reload_reg_map_type): Likewise.
8563         (reload_reg_map_type): Likewise.
8564         (RELOAD_REG_VALID): Likewise.
8565         (RELOAD_REG_MULTIPLE): Likewise.
8566         (RELOAD_REG_INDEXED): Likewise.
8567         (RELOAD_REG_OFFSET): Likewise.
8568         (RELOAD_REG_PRE_INCDEC): Likewise.
8569         (RELOAD_REG_PRE_MODIFY): Likewise.
8570         (reg_addr): Likewise.
8571         (mode_supports_pre_incdec_p): New helper functions to say whether
8572         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
8573         (mode_supports_pre_modify_p): Likewise.
8574         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
8575         print the valid address mode bits for each mode.
8576         (rs6000_debug_print_mode): Likewise.
8577         (rs6000_debug_reg_global): Likewise.
8578         (rs6000_setup_reg_addr_masks): New function to set up the address
8579         mask bits for each type.
8580         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
8581         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
8582         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
8583         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
8584         PRE_MODIFY are supported.
8585         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
8586         registers, instead of {src,dest}_av_p.
8587         (rs6000_print_options_internal): Tweak the debug output slightly.
8589 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
8591         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
8592         isa attribute.
8594 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
8596         * tree-flow.h (struct omp_region): Move to omp-low.c.
8597         Remove omp_ prototypes and variables.
8598         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
8599         (copy_var_decl): Relocate prototype from tree-flow.h.
8600         * gimple.c (copy_var_decl): Relocate from omp-low.c.
8601         * tree.h: Move prototype to omp-low.h.
8602         * omp-low.h: New File.  Relocate prototypes here.
8603         * omp-low.c (struct omp_region): Make local here.
8604         (root_omp_region): Make static.
8605         (copy_var_decl) Move to gimple.c.
8606         (new_omp_region): Make static.
8607         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
8608         * tree-cfg.c: Include omp-low.h.
8609         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
8610         * gimplify.c: Include omp-low.h.
8611         * tree-parloops.c: Likewise.
8613 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
8615         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
8616         operands are in memory, prefer to force non-matched operand 1 to
8617         the register.
8619 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
8621         PR target/58673
8622         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
8623         restrict TImode addresses to single indirect registers if both
8624         -mquad-memory and -mvsx-timode are used.
8625         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
8626         we should emit load/store quad.  Remove using %y for quad memory
8627         addresses.
8629         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
8630         constraints to allow load/store quad on machines where TImode is
8631         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
8632         for TImode to load integer constants.
8634 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8636         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
8638 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8640         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
8641         handling of STACK_REG.
8643 2013-10-17  Richard Biener  <rguenther@suse.de>
8645         PR tree-optimization/58143
8646         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
8647         New function.
8648         (rewrite_to_defined_overflow): Likewise.
8649         (move_computations_dom_walker::before_dom): Rewrite stmts
8650         with undefined signed overflow that are not always executed
8651         into unsigned arithmetic.
8653 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
8655         PR target/57756
8656         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
8657         explicit isa flag to be an options variable, instead of using
8658         global_options_set.  Remove define from rs6000.h.
8659         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
8661         * config/rs6000/rs6000.c (rs6000_option_override_internal):
8662         Initialize rs6000_isa_flags_explicit.
8663         (rs6000_function_specific_save): Add gcc_options* parameter, so
8664         that the powerpc builds after the 2013-10-15 changes.
8665         (rs6000_function_specific_restore): Likewise.
8667 2013-10-16  DJ Delorie  <dj@redhat.com>
8669         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
8670         op is a REG before checking REGNO.
8671         (rl78_alloc_physical_registers): Verify pattern is a SET before
8672         checking SET_SRC.
8674 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8676         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
8677         endianness.
8678         (vec_unpacks_lo_v4sf): Likewise.
8679         (vec_unpacks_float_hi_v4si): Likewise.
8680         (vec_unpacks_float_lo_v4si): Likewise.
8681         (vec_unpacku_float_hi_v4si): Likewise.
8682         (vec_unpacku_float_lo_v4si): Likewise.
8684 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8686         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
8687         (vsx_concat_v2sf): Likewise.
8689 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
8691         * config/aarch64/aarch64.md
8692         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
8694 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
8696         PR tree-optimization/58697
8697         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
8698         estimated_loop_iterations_int.
8699         (max_stmt_executions_int): Call get_max_loop_iterations_int.
8700         (get_max_loop_iterations_int): New.  HWINT version of
8701         get_max_loop_iterations.
8702         * cfgloop.h: Add prototypes.
8703         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
8704         * loop-unroll.c (decide_peel_once_rolling): Call
8705         get_estimated_loop_iterations_int.
8706         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
8707         * tree-ssa-loop-niter.h: Tweak prototypes.
8709 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
8711         * gengtype-parse.c (struct_field_seq): Ignore access-control
8712         keywords ("public:" etc).
8714 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8716         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
8717         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
8719 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
8721         * config/arm/arm.opt (mlra): New option.
8722         * config/arm/arm.c (arm_lra_p): New function.
8723         (TARGET_LRA_P): Define.
8725 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
8727         * tree-core.h (tree_code_name): Remove.
8728         * tree.h (get_tree_code_name): New prototype.
8729         * tree.c (tree_code_name): Make static.
8730         (get_tree_code_name): New function.
8731         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
8732         tree_class_check_failed, tree_range_check_failed,
8733         tree_not_class_check_failed, omp_clause_check_failed,
8734         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
8735         wrapper get_tree_code_name instead of calling tree_code_name directly.
8736         * tree-vrp.c (dump_asserts_for): Likewise.
8737         * tree-dump.c (dequeue_and_dump): Likewise.
8738         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
8739         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
8740         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
8741         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
8742         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8743         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
8744         dump_gimple_omp_for): Likewise.
8745         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
8746         * tree-ssa-pre.c (print_pre_expr): Likewise.
8747         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
8748         * print-tree.c (print_node_brief, print_node): Likewise.
8749         * gimple.c (gimple_check_failed): Likewise.
8750         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
8751         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
8752         * config/mep/mep.c (mep_validate_vliw): Likewise.
8753         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
8754         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
8756 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
8758         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
8759         for AMD bdver3.
8761 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
8763         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
8764         (MULTILIB_MATCHES): Add multilib for -march=v8.
8766 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
8768         PR target/57756
8769         * optc-save-gen.awk: Add extra parameter to the save and restore
8770         target calls.
8771         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
8772         * tree.c (build_optimization_node): New parameter.  Add extra parameter
8773         to call to cl_optimization_save.
8774         (build_target_option_node): New parameter. Add extra parameter
8775         to call to cl_target_option_save.
8776         * tree.h (build_optimization_node): New parameter.
8777         (build_target_option_node): New parameter.
8778         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
8779         build_optimization_node and build_target_option_node.
8780         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
8781         (handle_pragma_push_options): Ditto.
8782         * toplev.c (process_options): Ditto.
8783         * opts.c (init_options_struct): Check for opts_set non-null.
8784         * target.def (target_option.save): New parameter.
8785         (target_option.restore): New parameter.
8786         * tm.texi: Generate.
8787         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
8788         (ix86_pragma_target_parse): Ditto.
8789         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
8790         parameters.
8791         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
8792         to  build_optimization_node and build_target_option_node.
8793         (rs6000_valid_attribute_p): Ditto.
8794         (rs6000_pragma_target_parse): Ditto.
8795         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
8796         data.
8797         * config/i386/i386.h:
8798         TARGET_64BIT_P: New Macro
8799         TARGET_MMX_P: New Macro.
8800         TARGET_3DNOW_P: New Macro.
8801         TARGET_3DNOW_A_P: New Macro.
8802         TARGET_SSE_P: New Macro.
8803         TARGET_SSE2_P: New Macro.
8804         TARGET_SSE3_P: New Macro.
8805         TARGET_SSSE3_P: New Macro.
8806         TARGET_SSE4_1_P: New Macro.
8807         TARGET_SSE4_2_P: New Macro.
8808         TARGET_AVX_P: New Macro.
8809         TARGET_AVX2_P: New Macro.
8810         TARGET_AVX512F_P: New Macro.
8811         TARGET_AVX512PF_P: New Macro.
8812         TARGET_AVX512ER_P: New Macro.
8813         TARGET_AVX512CD_P: New Macro.
8814         TARGET_FMA_P: New Macro.
8815         TARGET_SSE4A_P: New Macro.
8816         TARGET_FMA4_P: New Macro.
8817         TARGET_XOP_P: New Macro.
8818         TARGET_LWP_P: New Macro.
8819         TARGET_ABM_P: New Macro.
8820         TARGET_BMI_P: New Macro.
8821         TARGET_BMI2_P: New Macro.
8822         TARGET_LZCNT_P: New Macro.
8823         TARGET_TBM_P: New Macro.
8824         TARGET_POPCNT_P: New Macro.
8825         TARGET_SAHF_P: New Macro.
8826         TARGET_MOVBE_P: New Macro.
8827         TARGET_CRC32_P: New Macro.
8828         TARGET_AES_P: New Macro.
8829         TARGET_PCLMUL_P: New Macro.
8830         TARGET_CMPXCHG16B_P: New Macro.
8831         TARGET_FSGSBASE_P: New Macro.
8832         TARGET_RDRND_P: New Macro.
8833         TARGET_F16C_P: New Macro.
8834         TARGET_RTM_P: New Macro.
8835         TARGET_HLE_P: New Macro.
8836         TARGET_RDSEED_P: New Macro.
8837         TARGET_PRFCHW_P: New Macro.
8838         TARGET_ADX_P: New Macro.
8839         TARGET_FXSR_P: New Macro.
8840         TARGET_XSAVE_P: New Macro.
8841         TARGET_XSAVEOPT_P: New Macro.
8842         TARGET_LP64_P: New Macro.
8843         TARGET_X32_P: New Macro.
8844         TARGET_FPMATH_DEFAULT_P: New Macro.
8845         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
8846         * config/i386/i386.c (ix86_option_override_internal): New parameters.
8847         opts and opts_set.
8848         Change ix86_tune_string to access opts->x_ix86_tune_string.
8849         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
8850         Change ix86_arch_string to access opts->x_ix86_arch_string.
8851         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
8852         Change ix86_pmode to access opts->x_ix86_pmode.
8853         Change ix86_abi to access opts->x_ix86_abi.
8854         Change ix86_cmodel to access opts->x_ix86_cmodel.
8855         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
8856         Change ix86_isa_flags_explicit to access
8857         opts->x_ix86_isa_flags_explicit.
8858         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
8859         Change ix86_regparm to access opts->x_ix86_regparm.
8860         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
8861         Change ix86_preferred_stack_boundary_arg to access
8862         opts->x_ix86_preferred_stack_boundary_arg.
8863         Change ix86_force_align_arg_pointer to access
8864         opts->x_ix86_force_align_arg_pointer.
8865         Change ix86_incoming_stack_boundar_arg to access
8866         opts->x_ix86_incoming_stack_boundar_arg.
8867         Change ix86_fpmath to access opts->x_ix86_fpmath.
8868         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
8869         Change ix86_recip_name to access opts->x_ix86_recip_name.
8870         Change ix86_stack_protector_guard to access
8871         opts->x_ix86_stack_protector_guard.
8872         Change ix86_tune_memcpy_strategy to access
8873         opts->x_ix86_tune_memcpy_strategy.
8874         Change ix86_tune_memset_strategy to access
8875         opts->x_ix86_tune_memset_strategy.
8876         Change global_options to access opts.
8877         Change global_options_set to access opts_set.
8878         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
8879         Change TARGET_MMX to TARGET_MMX_P (opts->...).
8880         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
8881         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
8882         Change TARGET_SSE to TARGET_SSE_P (opts->...).
8883         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
8884         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
8885         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
8886         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
8887         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
8888         Change TARGET_AVX to TARGET_AVX_P (opts->...).
8889         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
8890         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
8891         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
8892         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
8893         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
8894         Change TARGET_FMA to TARGET_FMA_P (opts->...).
8895         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
8896         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
8897         Change TARGET_XOP to TARGET_XOP_P (opts->...).
8898         Change TARGET_LWP to TARGET_LWP_P (opts->...).
8899         Change TARGET_ABM to TARGET_ABM_P (opts->...).
8900         Change TARGET_BMI to TARGET_BMI_P (opts->...).
8901         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
8902         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
8903         Change TARGET_TBM to TARGET_TBM_P (opts->...).
8904         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
8905         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
8906         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
8907         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
8908         Change TARGET_AES to TARGET_AES_P (opts->...).
8909         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
8910         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
8911         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
8912         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
8913         Change TARGET_F16C to TARGET_F16C_P (opts->...).
8914         Change TARGET_RTM to TARGET_RTM_P (opts->...).
8915         Change TARGET_HLE to TARGET_HLE_P (opts->...).
8916         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
8917         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
8918         Change TARGET_ADX to TARGET_ADX_P (opts->...).
8919         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
8920         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
8921         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
8922         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
8923         Change TARGET_X32 to TARGET_X32_P (opts->...).
8924         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
8925         Change TARGET_FLOAT_RETURNS_IN_80387 to
8926         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
8927         (ix86_function_specific_save): New parameter. Use opts-> fields
8928         to replace global fields.
8929         (ix86_function_specific_restore): Ditto.
8930         (ix86_valid_target_attribute_inner_p): New parameters.
8931         Fix recursive call.
8932         Fix call to ix86_handle_option and set_option.
8933         (ix86_valid_target_attribute_tree): New parameters.
8934         Change global_options to access opts.
8935         Change global_options_set to access opts_set.
8936         Fix call to ix86_valid_target_attribute_inner_p.
8937         Change ix86_tune_string to access opts->x_ix86_tune_string.
8938         Change ix86_arch_string to access opts->x_ix86_arch_string.
8939         Change ix86_fpmath to access opts->x_ix86_fpmath
8940         Fix call to ix86_option_override_internal.
8941         Fix call to ix86_add_new_builtins.
8942         Fix calls to build_optimization_node and build_target_option_node.
8943         (ix86_valid_target_attribute_p): Remove access to global_options.
8944         Use new gcc_options structure func_options.
8945         Fix call to ix86_valid_target_attribute_tree.
8946         Fix call to  build_optimization_node.
8947         (get_builtin_code_for_version): Fix call to
8948         ix86_valid_target_attribute_tree.
8950 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
8952         * Makefile.in (PICFLAG): New.
8953         (enable_host_shared): New.
8954         (INTERNAL_CFLAGS): Use PICFLAG.
8955         (LIBIBERTY): Use pic build of libiberty.a if configured with
8956         --enable-host-shared.
8957         * configure.ac: Add --enable-host-shared, setting up new
8958         PICFLAG variable.
8959         * configure: Regenerate.
8960         * doc/install.texi (--enable-shared): Add note contrasting it with ...
8961         (--enable-host-shared): New option.
8963 2013-10-15  Richard Biener  <rguenther@suse.de>
8965         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
8966         for built-in functions.
8968 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8970         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
8971         (optimize_range_tests_1): New function,
8972         extracted from optimize_range_tests.
8973         (optimize_range_tests_xor): Similarly.
8974         (optimize_range_tests_diff): New function.
8975         (optimize_range_tests): Use optimize_range_tests_1.
8977 2013-10-15  Cong Hou  <congh@google.com>
8979         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
8980         requirement of the reduction pattern so that one operand of the
8981         reduction operation can come from outside of the loop.
8983 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8985         * config/arm/neon-schedgen.ml: Remove.
8986         * config/arm/cortex-a9-neon.md: Remove comment regarding
8987         neon-schedgen.ml.
8989 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8991         * config/arm/types: Remove old neon types.
8993 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8995         * config/arm/cortex-a7.md
8996         (cortex_a7_neon_type): New.
8997         (cortex_a7_neon_mul): Update for new types.
8998         (cortex_a7_neon_mla): Likewise.
8999         (cortex_a7_neon): Likewise.
9001 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9003         * config/arm/cortex-a15-neon.md
9004         (cortex_a15_neon_type): New,
9006         (cortex_a15_neon_int_1): Remove.
9007         (cortex_a15_neon_int_2): Likewise.
9008         (cortex_a15_neon_int_3): Likewise.
9009         (cortex_a15_neon_int_4): Likewise.
9010         (cortex_a15_neon_int_5): Likewise.
9011         (cortex_a15_neon_vqneg_vqabs): Likewise.
9012         (cortex_a15_neon_vmov): Likewise.
9013         (cortex_a15_neon_vaba): Likewise.
9014         (cortex_a15_neon_vaba_qqq): Likewise.
9015         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9016         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9017         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9018         Likewise.
9019         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9020         (cortex_a15_neon_mla_qqq_8_16): Likewise.
9021         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
9022         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9023         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9024         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
9025         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9026         (cortex_a15_neon_shift_1): Likewise.
9027         (cortex_a15_neon_shift_2): Likewise.
9028         (cortex_a15_neon_shift_3): Likewise.
9029         (cortex_a15_neon_vshl_ddd): Likewise.
9030         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9031         (cortex_a15_neon_vsra_vrsra): Likewise.
9032         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9033         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9034         (cortex_a15_neon_bp_3cycle): Likewise.
9035         (cortex_a15_neon_ldm_2): Likewise.
9036         (cortex_a15_neon_stm_2): Likewise.
9037         (cortex_a15_neon_mcr): Likewise.
9038         (cortex_a15_neon_mrc): Likewise.
9039         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
9040         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
9041         (cortex_a15_neon_fp_vmul_ddd): Likewise.
9042         (cortex_a15_neon_fp_vmul_qqd): Likewise.
9043         (cortex_a15_neon_fp_vmla_ddd): Likewise.
9044         (cortex_a15_neon_fp_vmla_qqq): Likewise.
9045         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9046         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9047         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9048         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9049         (cortex_a15_neon_bp_simple): Likewise.
9050         (cortex_a15_neon_bp_2cycle): Likewise.
9051         (cortex_a15_neon_bp_3cycle): Likewise.
9052         (cortex_a15_neon_vld1_1_2_regs): Likewise.
9053         (cortex_a15_neon_vld1_3_4_regs): Likewise.
9054         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9055         (cortex_a15_neon_vld2_4_regs): Likewise.
9056         (cortex_a15_neon_vld3_vld4): Likewise.
9057         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9058         (cortex_a15_neon_vst1_3_4_regs): Likewise.
9059         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
9060         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
9061         (cortex_a15_neon_vst3_vst4): Rename to...
9062         (cortex_a15_neon_vst4): This, update for new attributes.
9063         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
9064         (cortex_a15_neon_vld3_vld4_lane): Likewise.
9065         (cortex_a15_neon_vst1_vst2_lane): Likewise.
9066         (cortex_a15_neon_vst3_vst4_lane): Likewise.
9067         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
9068         (cortex_a15_neon_ldm_2): Likewise.
9069         (cortex_a15_neon_stm_2): Likewise.
9070         (cortex_a15_neon_mcr): Likewise.
9071         (cortex_a15_neon_mcr_2_mcrr): Likewise.
9072         (cortex_a15_neon_mrc): Likewise.
9073         (cortex_a15_neon_mrrc): Likewise.
9075         (cortex_a15_neon_abd): New.
9076         (cortex_a15_neon_abd_q): Likewise.
9077         (cortex_a15_neon_aba): Likewise.
9078         (cortex_a15_neon_aba_q): Likewise.
9079         (cortex_a15_neon_acc): Likewise.
9080         (cortex_a15_neon_acc_q): Likewise.
9081         (cortex_a15_neon_arith_basic): Likewise.
9082         (cortex_a15_neon_arith_complex): Likewise.
9083         (cortex_a15_neon_multiply): Likewise.
9084         (cortex_a15_neon_multiply_q): Likewise.
9085         (cortex_a15_neon_mla): Likewise.
9086         (cortex_a15_neon_mla_q): Likewise.
9087         (cortex_a15_neon_sat_mla_long): Likewise.
9088         (cortex_a15_neon_shift_acc): Likewise.
9089         (cortex_a15_neon_shift_imm_basic): Likewise.
9090         (cortex_a15_neon_shift_imm_complex): Likewise.
9091         (cortex_a15_neon_shift_reg_basic): Likewise.
9092         (cortex_a15_neon_shift_reg_basic_q): Likewise.
9093         (cortex_a15_neon_shift_reg_complex): Likewise.
9094         (cortex_a15_neon_shift_reg_complex_q): Likewise.
9095         (cortex_a15_neon_fp_negabs): Likewise
9096         (cortex_a15_neon_fp_arith): Likewise
9097         (cortex_a15_neon_fp_arith_q): Likewise
9098         (cortex_a15_neon_fp_cvt_int): Likewise
9099         (cortex_a15_neon_fp_cvt_int_q): Likewise
9100         (cortex_a15_neon_fp_cvt_16): Likewise
9101         (cortex_a15_neon_fp_mul): Likewise
9102         (cortex_a15_neon_fp_mul_q): Likewise
9103         (cortex_a15_neon_fp_mla): Likewise
9104         (cortex_a15_neon_fp_mla_q): Likewise
9105         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
9106         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
9107         (cortex_a15_neon_bitops): Likewise.
9108         (cortex_a15_neon_bitops_q): Likewise.
9109         (cortex_a15_neon_from_gp): Likewise.
9110         (cortex_a15_neon_from_gp_q): Likewise.
9111         (cortex_a15_neon_tbl3_tbl4): Likewise.
9112         (cortex_a15_neon_zip_q): Likewise.
9113         (cortex_a15_neon_to_gp): Likewise.
9114         (cortex_a15_neon_load_a): Likewise.
9115         (cortex_a15_neon_load_b): Likewise.
9116         (cortex_a15_neon_load_c): Likewise.
9117         (cortex_a15_neon_load_d): Likewise.
9118         (cortex_a15_neon_load_e): Likewise.
9119         (cortex_a15_neon_load_f): Likewise.
9120         (cortex_a15_neon_store_a): Likewise.
9121         (cortex_a15_neon_store_b): Likewise.
9122         (cortex_a15_neon_store_c): Likewise.
9123         (cortex_a15_neon_store_d): Likewise.
9124         (cortex_a15_neon_store_e): Likewise.
9125         (cortex_a15_neon_store_f): Likewise.
9126         (cortex_a15_neon_store_g): Likewise.
9127         (cortex_a15_neon_store_h): Likewise.
9128         (cortex_a15_vfp_to_from_gp): Likewise.
9130 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9132         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
9134         (cortex_a9_neon_vshl_ddd): Remove.
9135         (cortex_a9_neon_vst3_vst4): Likewise.
9136         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9138         (cortex_a9_neon_bit_ops_q): New.
9140         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
9141         (cortex_a9_neon_int_2): Likewise.
9142         (cortex_a9_neon_int_3): Likewise.
9143         (cortex_a9_neon_int_4): Likewise.
9144         (cortex_a9_neon_int_5): Likewise.
9145         (cortex_a9_neon_vqneg_vqabs): Likewise.
9146         (cortex_a9_neon_vmov): Likewise.
9147         (cortex_a9_neon_vaba): Likewise.
9148         (cortex_a9_neon_vaba_qqq): Likewise.
9149         (cortex_a9_neon_shift_1): Likewise.
9150         (cortex_a9_neon_shift_2): Likewise.
9151         (cortex_a9_neon_shift_3): Likewise.
9152         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9153         (cortex_a9_neon_vsra_vrsra): Likewise.
9154         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9155         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9156         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9157         Likewise.
9158         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9159         (cortex_a9_neon_mla_qqq_8_16): Likewise.
9160         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9161         Likewise.
9162         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9163         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9164         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
9165         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9166         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
9167         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
9168         (cortex_a9_neon_fp_vsum): Likewise.
9169         (cortex_a9_neon_fp_vmul_ddd): Likewise.
9170         (cortex_a9_neon_fp_vmul_qqd): Likewise.
9171         (cortex_a9_neon_fp_vmla_ddd): Likewise.
9172         (cortex_a9_neon_fp_vmla_qqq): Likewise.
9173         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
9174         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
9175         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9176         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9177         (cortex_a9_neon_bp_simple): Likewise.
9178         (cortex_a9_neon_bp_2cycle): Likewise.
9179         (cortex_a9_neon_bp_3cycle): Likewise.
9180         (cortex_a9_neon_ldr): Likewise.
9181         (cortex_a9_neon_str): Likewise.
9182         (cortex_a9_neon_vld1_1_2_regs): Likewise.
9183         (cortex_a9_neon_vld1_3_4_regs): Likewise.
9184         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9185         (cortex_a9_neon_vld2_4_regs): Likewise.
9186         (cortex_a9_neon_vld3_vld4): Likewise.
9187         (cortex_a9_neon_vld1_vld2_lane): Likewise.
9188         (cortex_a9_neon_vld3_vld4_lane): Likewise.
9189         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9190         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9191         (cortex_a9_neon_vst1_3_4_regs): Likewise.
9192         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
9193         (cortex_a9_neon_vst1_vst2_lane): Likewise.
9194         (cortex_a9_neon_vst3_vst4_lane): Likewise.
9195         (cortex_a9_neon_mcr): Likewise.
9196         (cortex_a9_neon_mcr_2_mcrr): Likewise.
9197         (cortex_a9_neon_mrc): Likewise.
9198         (cortex_a9_neon_mrrc): Likewise.
9200 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9202         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
9204         (cortex_a8_neon_vshl_ddd): Remove.
9205         (cortex_a8_neon_vst3_vst4): Likewise.
9206         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
9208         (cortex_a8_neon_bit_ops_q): New.
9210         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
9211         (cortex_a8_neon_int_2): Likewise..
9212         (cortex_a8_neon_int_3): Likewise.
9213         (cortex_a8_neon_int_5): Likewise.
9214         (cortex_a8_neon_vqneg_vqabs): Likewise.
9215         (cortex_a8_neon_int_4): Likewise.
9216         (cortex_a8_neon_vaba): Likewise.
9217         (cortex_a8_neon_vaba_qqq): Likewise.
9218         (cortex_a8_neon_shift_1): Likewise.
9219         (cortex_a8_neon_shift_2): Likewise.
9220         (cortex_a8_neon_shift_3): Likewise.
9221         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9222         (cortex_a8_neon_vsra_vrsra): Likewise.
9223         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9224         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9225         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9226         Likewise.
9227         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9228         (cortex_a8_neon_mla_qqq_8_16): Likewise.
9229         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9230         Likewise.
9231         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9232         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9233         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
9234         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9235         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
9236         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
9237         (cortex_a8_neon_fp_vsum): Likewise.
9238         (cortex_a8_neon_fp_vmul_ddd): Likewise.
9239         (cortex_a8_neon_fp_vmul_qqd): Likewise.
9240         (cortex_a8_neon_fp_vmla_ddd): Likewise.
9241         (cortex_a8_neon_fp_vmla_qqq): Likewise.
9242         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
9243         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
9244         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9245         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9246         (cortex_a8_neon_bp_simple): Likewise.
9247         (cortex_a8_neon_bp_2cycle): Likewise.
9248         (cortex_a8_neon_bp_3cycle): Likewise.
9249         (cortex_a8_neon_ldr): Likewise.
9250         (cortex_a8_neon_str): Likewise.
9251         (cortex_a8_neon_vld1_1_2_regs): Likewise.
9252         (cortex_a8_neon_vld1_3_4_regs): Likewise.
9253         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9254         (cortex_a8_neon_vld2_4_regs): Likewise.
9255         (cortex_a8_neon_vld3_vld4): Likewise.
9256         (cortex_a8_neon_vld1_vld2_lane): Likewise.
9257         (cortex_a8_neon_vld3_vld4_lane): Likewise.
9258         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9259         (cortex_a8_neon_vst1_3_4_regs): Likewise.
9260         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
9261         (cortex_a8_neon_vst1_vst2_lane): Likewise.
9262         (cortex_a8_neon_vst3_vst4_lane): Likewise.
9263         (cortex_a8_neon_mcr): Likewise.
9264         (cortex_a8_neon_mcr_2_mcrr): Likewise.
9265         (cortex_a8_neon_mrc): Likewise.
9266         (cortex_a8_neon_mrrc): Likewise.
9268 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9270         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
9271         (fp): New.
9272         * config/aarch64/aarch64-simd.md (neon_type): Remove.
9273         (aarch64_simd_dup<mode>): Add "type" attribute.
9274         (aarch64_dup_lane<mode>): Likewise.
9275         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
9276         (*aarch64_simd_mov<mode>): Likewise.
9277         (aarch64_simd_mov_from_<mode>low): Likewise.
9278         (aarch64_simd_mov_from_<mode>high): Likewise.
9279         (orn<mode>3): Likewise.
9280         (bic<mode>3): Likewise.
9281         (add<mode>3): Likewise.
9282         (sub<mode>3): Likewise.
9283         (mul<mode>3): Likewise.
9284         (*aarch64_mul3_elt<mode>): Likewise.
9285         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
9286         (*aarch64_mul3_elt_to_128df): Likewise.
9287         (*aarch64_mul3_elt_to_64v2df): Likewise.
9288         (neg<mode>2): Likewise.
9289         (abs<mode>2): Likewise.
9290         (abd<mode>_3): Likewise.
9291         (aba<mode>_3): Likewise.
9292         (fabd<mode>_3): Likewise.
9293         (*fabd_scalar<mode>3): Likewise.
9294         (and<mode>3): Likewise.
9295         (ior<mode>3): Likewise.
9296         (xor<mode>3): Likewise.
9297         (one_cmpl<mode>2): Likewise.
9298         (aarch64_simd_vec_set<mode>): Likewise.
9299         (aarch64_simd_lshr<mode>): Likewise.
9300         (aarch64_simd_ashr<mode>): Likewise.
9301         (aarch64_simd_imm_shl<mode>): Likewise.
9302         (aarch64_simd_reg_sshl<mode): Likewise.
9303         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
9304         (aarch64_simd_reg_shl<mode>_signed): Likewise.
9305         (aarch64_simd_vec_setv2di): Likewise.
9306         (aarch64_simd_vec_set<mode>): Likewise.
9307         (aarch64_mla<mode>): Likewise.
9308         (*aarch64_mla_elt<mode>): Likewise.
9309         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
9310         (aarch64_mls<mode>): Likewise.
9311         (*aarch64_mls_elt<mode>): Likewise.
9312         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
9313         (<su><maxmin><mode>3): Likewise.
9314         (move_lo_quad_<mode>): Likewise.
9315         (aarch64_simd_move_hi_quad_<mode>): Likewise.
9316         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
9317         (vec_pack_trunc_<mode>): Likewise.
9318         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
9319         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
9320         (*aarch64_<su>mlal_lo<mode>): Likewise.
9321         (*aarch64_<su>mlal_hi<mode>): Likewise.
9322         (*aarch64_<su>mlsl_lo<mode>): Likewise.
9323         (*aarch64_<su>mlsl_hi<mode>): Likewise.
9324         (*aarch64_<su>mlal<mode>): Likewise.
9325         (*aarch64_<su>mlsl<mode>): Likewise.
9326         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
9327         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
9328         (add<mode>3): Likewise.
9329         (sub<mode>3): Likewise.
9330         (mul<mode>3): Likewise.
9331         (div<mode>3): Likewise.
9332         (neg<mode>2): Likewise.
9333         (abs<mode>2): Likewise.
9334         (fma<mode>4): Likewise.
9335         (*aarch64_fma4_elt<mode>): Likewise.
9336         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
9337         (*aarch64_fma4_elt_to_128df): Likewise.
9338         (*aarch64_fma4_elt_to_64v2df): Likewise.
9339         (fnma<mode>4): Likewise.
9340         (*aarch64_fnma4_elt<mode>): Likewise.
9341         (*aarch64_fnma4_elt_<vswap_width_name><mode>
9342         (*aarch64_fnma4_elt_to_128df): Likewise.
9343         (*aarch64_fnma4_elt_to_64v2df): Likewise.
9344         (<frint_pattern><mode>2): Likewise.
9345         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
9346         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
9347         (vec_unpacks_lo_v4sf): Likewise.
9348         (aarch64_float_extend_lo_v2df): Likewise.
9349         (vec_unpacks_hi_v4sf): Likewise.
9350         (aarch64_float_truncate_lo_v2sf): Likewise.
9351         (aarch64_float_truncate_hi_v4sf): Likewise.
9352         (aarch64_vmls<mode>): Likewise.
9353         (<su><maxmin><mode>3): Likewise.
9354         (<maxmin_uns><mode>3): Likewise.
9355         (reduc_<sur>plus_<mode>): Likewise.
9356         (reduc_<sur>plus_v2di): Likewise.
9357         (reduc_<sur>plus_v2si): Likewise.
9358         (reduc_<sur>plus_<mode>): Likewise.
9359         (aarch64_addpv4sf): Likewise.
9360         (clz<mode>2): Likewise.
9361         (reduc_<maxmin_uns>_<mode>): Likewise.
9362         (reduc_<maxmin_uns>_v2di): Likewise.
9363         (reduc_<maxmin_uns>_v2si): Likewise.
9364         (reduc_<maxmin_uns>_<mode>): Likewise.
9365         (reduc_<maxmin_uns>_v4sf): Likewise.
9366         (aarch64_simd_bsl<mode>_internal): Likewise.
9367         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9368         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
9369         (aarch64_get_lane<mode>): Likewise.
9370         (*aarch64_combinez<mode>): Likewise.
9371         (aarch64_combine<mode>): Likewise.
9372         (aarch64_simd_combine<mode>): Likewise.
9373         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
9374         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
9375         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
9376         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
9377         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
9378         (aarch64_<sur>h<addsub><mode>): Likewise.
9379         (aarch64_<sur><addsub>hn<mode>): Likewise.
9380         (aarch64_<sur><addsub>hn2<mode>): Likewise.
9381         (aarch64_pmul<mode>): Likewise.
9382         (aarch64_<su_optab><optab><mode>): Likewise.
9383         (aarch64_<sur>qadd<mode>): Likewise.
9384         (aarch64_sqmovun<mode>): Likewise.
9385         (aarch64_<sur>qmovn<mode>): Likewise.
9386         (aarch64_s<optab><mode>): Likewise.
9387         (aarch64_sq<r>dmulh<mode>): Likewise.
9388         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
9389         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
9390         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
9391         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
9392         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
9393         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
9394         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
9395         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
9396         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
9397         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
9398         (aarch64_sqdmull<mode>): Likewise.
9399         (aarch64_sqdmull_lane<mode>_internal): Likewise.
9400         (aarch64_sqdmull_n<mode>): Likewise.
9401         (aarch64_sqdmull2<mode>_internal): Likewise.
9402         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
9403         (aarch64_sqdmull2_n<mode>_internal): Likewise.
9404         (aarch64_<sur>shl<mode>): Likewise.
9405         (aarch64_<sur>q<r>shl<mode>
9406         (aarch64_<sur>shll_n<mode>): Likewise.
9407         (aarch64_<sur>shll2_n<mode>): Likewise.
9408         (aarch64_<sur>shr_n<mode>): Likewise.
9409         (aarch64_<sur>sra_n<mode>): Likewise.
9410         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
9411         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
9412         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
9413         (aarch64_cm<optab><mode>): Likewise.
9414         (aarch64_cm<optab>di): Likewise.
9415         (aarch64_cm<optab><mode>): Likewise.
9416         (aarch64_cm<optab>di): Likewise.
9417         (aarch64_cmtst<mode>): Likewise.
9418         (aarch64_cmtstdi): Likewise.
9419         (aarch64_cm<optab><mode>): Likewise.
9420         (*aarch64_fac<optab><mode>): Likewise.
9421         (aarch64_addp<mode>): Likewise.
9422         (aarch64_addpdi): Likewise.
9423         (sqrt<mode>2): Likewise.
9424         (vec_load_lanesoi<mode>): Likewise.
9425         (vec_store_lanesoi<mode>): Likewise.
9426         (vec_load_lanesci<mode>): Likewise.
9427         (vec_store_lanesci<mode>): Likewise.
9428         (vec_load_lanesxi<mode>): Likewise.
9429         (vec_store_lanesxi<mode>): Likewise.
9430         (*aarch64_mov<mode>): Likewise.
9431         (aarch64_ld2<mode>_dreg): Likewise.
9432         (aarch64_ld2<mode>_dreg): Likewise.
9433         (aarch64_ld3<mode>_dreg): Likewise.
9434         (aarch64_ld3<mode>_dreg): Likewise.
9435         (aarch64_ld4<mode>_dreg): Likewise.
9436         (aarch64_ld4<mode>_dreg): Likewise.
9437         (aarch64_tbl1<mode>): Likewise.
9438         (aarch64_tbl2v16qi): Likewise.
9439         (aarch64_combinev16qi): Likewise.
9440         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
9441         (aarch64_st2<mode>_dreg): Likewise.
9442         (aarch64_st2<mode>_dreg): Likewise.
9443         (aarch64_st3<mode>_dreg): Likewise.
9444         (aarch64_st3<mode>_dreg): Likewise.
9445         (aarch64_st4<mode>_dreg): Likewise.
9446         (aarch64_st4<mode>_dreg): Likewise.
9447         (*aarch64_simd_ld1r<mode>): Likewise.
9448         (aarch64_frecpe<mode>): Likewise.
9449         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
9450         (aarch64_frecps<mode>): Likewise.
9452 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9454         * config/arm/iterators.md (V_elem_ch): New.
9455         (q): Likewise.
9456         (VQH_type): Likewise.
9457         * config/arm/arm.md (is_neon_type): New.
9458         (conds): Use is_neon_type.
9459         (anddi3_insn): Update type attribute.
9460         (xordi3_insn): Likewise.
9461         (one_cmpldi2): Likewise.
9462         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
9463         * config/arm/neon.md (neon_mov): Update type attribute.
9464         (*movmisalign<mode>_neon_store): Likewise.
9465         (*movmisalign<mode>_neon_load): Likewise.
9466         (vec_set<mode>_internal): Likewise.
9467         (vec_set<mode>_internal): Likewise.
9468         (vec_setv2di_internal): Likewise.
9469         (vec_extract<mode>): Likewise.
9470         (vec_extract<mode>): Likewise.
9471         (vec_extractv2di): Likewise.
9472         (*add<mode>3_neon): Likewise.
9473         (adddi3_neon): Likewise.
9474         (*sub<mode>3_neon): Likewise.
9475         (subdi3_neon): Likewise.
9476         (fma<VCVTF:mode>4): Likewise.
9477         (fma<VCVTF:mode>4_intrinsic): Likewise.
9478         (*fmsub<VCVTF:mode>4): Likewise.
9479         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
9480         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
9481         (ior<mode>3): Likewise.
9482         (and<mode>3): Likewise.
9483         (orn<mode>3_neon): Likewise.
9484         (orndi3_neon): Likewise.
9485         (bic<mode>3_neon): Likewise.
9486         (bicdi3_neon): Likewise.
9487         (xor<mode>3): Likewise.
9488         (one_cmpl<mode>2): Likewise.
9489         (abs<mode>2): Likewise.
9490         (neg<mode>2): Likewise.
9491         (negdi2_neon): Likewise.
9492         (*umin<mode>3_neon): Likewise.
9493         (*umax<mode>3_neon): Likewise.
9494         (*smin<mode>3_neon): Likewise.
9495         (*smax<mode>3_neon): Likewise.
9496         (vashl<mode>3): Likewise.
9497         (vashr<mode>3_imm): Likewise.
9498         (vlshr<mode>3_imm): Likewise.
9499         (ashl<mode>3_signed): Likewise.
9500         (ashl<mode>3_unsigned): Likewise.
9501         (neon_load_count): Likewise.
9502         (ashldi3_neon_noclobber): Likewise.
9503         (ashldi3_neon): Likewise.
9504         (signed_shift_di3_neon): Likewise.
9505         (unsigned_shift_di3_neon): Likewise.
9506         (ashrdi3_neon_imm_noclobber): Likewise.
9507         (lshrdi3_neon_imm_noclobber): Likewise.
9508         (<shift>di3_neon): Likewise.
9509         (widen_ssum<mode>3): Likewise.
9510         (widen_usum<mode>3): Likewise.
9511         (quad_halves_<code>v4si): Likewise.
9512         (quad_halves_<code>v4sf): Likewise.
9513         (quad_halves_<code>v8hi): Likewise.
9514         (quad_halves_<code>v16qi): Likewise.
9515         (reduc_splus_v2di): Likewise.
9516         (neon_vpadd_internal<mode>): Likewise.
9517         (neon_vpsmin<mode>): Likewise.
9518         (neon_vpsmax<mode>): Likewise.
9519         (neon_vpumin<mode>): Likewise.
9520         (neon_vpumax<mode>): Likewise.
9521         (*ss_add<mode>_neon): Likewise.
9522         (*us_add<mode>_neon): Likewise.
9523         (*ss_sub<mode>_neon): Likewise.
9524         (*us_sub<mode>_neon): Likewise.
9525         (neon_vadd<mode>_unspec): Likewise.
9526         (neon_vaddl<mode>): Likewise.
9527         (neon_vaddw<mode>): Likewise.
9528         (neon_vhadd<mode>): Likewise.
9529         (neon_vqadd<mode>): Likewise.
9530         (neon_vaddhn<mode>): Likewise.
9531         (neon_vmul<mode>): Likewise.
9532         (neon_vfms<VCVTF:mode>): Likewise.
9533         (neon_vmlal<mode>): Likewise.
9534         (neon_vmls<mode>): Likewise.
9535         (neon_vmlsl<mode>): Likewise.
9536         (neon_vqdmulh<mode>): Likewise.
9537         (neon_vqdmlal<mode>): Likewise.
9538         (neon_vqdmlsl<mode>): Likewise.
9539         (neon_vmull<mode>): Likewise.
9540         (neon_vqdmull<mode>): Likewise.
9541         (neon_vsub<mode>_unspec): Likewise.
9542         (neon_vsubl<mode>): Likewise.
9543         (neon_vsubw<mode>): Likewise.
9544         (neon_vqsub<mode>): Likewise.
9545         (neon_vhsub<mode>): Likewise.
9546         (neon_vsubhn<mode>): Likewise.
9547         (neon_vceq<mode>): Likewise.
9548         (neon_vcge<mode>): Likewise.
9549         (neon_vcgeu<mode>): Likewise.
9550         (neon_vcgt<mode>): Likewise.
9551         (neon_vcgtu<mode>): Likewise.
9552         (neon_vcle<mode>): Likewise.
9553         (neon_vclt<mode>): Likewise.
9554         (neon_vcage<mode>): Likewise.
9555         (neon_vcagt<mode>): Likewise.
9556         (neon_vtst<mode>): Likewise.
9557         (neon_vabd<mode>): Likewise.
9558         (neon_vabdl<mode>): Likewise.
9559         (neon_vaba<mode>): Likewise.
9560         (neon_vabal<mode>): Likewise.
9561         (neon_vmax<mode>): Likewise.
9562         (neon_vmin<mode>): Likewise.
9563         (neon_vpaddl<mode>): Likewise.
9564         (neon_vpadal<mode>): Likewise.
9565         (neon_vpmax<mode>): Likewise.
9566         (neon_vpmin<mode>): Likewise.
9567         (neon_vrecps<mode>): Likewise.
9568         (neon_vrsqrts<mode>): Likewise.
9569         (neon_vqabs<mode>): Likewise.
9570         (neon_vqneg<mode>): Likewise.
9571         (neon_vcls<mode>): Likewise.
9572         (clz<mode>2): Likewise.
9573         (popcount<mode>2): Likewise.
9574         (neon_vrecpe<mode>): Likewise.
9575         (neon_vrsqrte<mode>): Likewise.
9576         (neon_vget_lane<mode>_sext_internal): Likewise.
9577         (neon_vget_lane<mode>_zext_internal): Likewise.
9578         (neon_vdup_n<mode>): Likewise.
9579         (neon_vdup_n<mode>): Likewise.
9580         (neon_vdup_nv2di): Likewise.
9581         (neon_vdup_lane<mode>_interal): Likewise.
9582         (*neon_vswp<mode>): Likewise.
9583         (neon_vcombine<mode>): Likewise.
9584         (float<mode><V_cvtto>2): Likewise.
9585         (floatuns<mode><V_cvtto>2): Likewise.
9586         (fix_trunc<mode><V_cvtto>2): Likewise.
9587         (fixuns_trunc<mode><V_cvtto>2
9588         (neon_vcvt<mode>): Likewise.
9589         (neon_vcvt<mode>): Likewise.
9590         (neon_vcvtv4sfv4hf): Likewise.
9591         (neon_vcvtv4hfv4sf): Likewise.
9592         (neon_vcvt_n<mode>): Likewise.
9593         (neon_vcvt_n<mode>): Likewise.
9594         (neon_vmovn<mode>): Likewise.
9595         (neon_vqmovn<mode>): Likewise.
9596         (neon_vqmovun<mode>): Likewise.
9597         (neon_vmovl<mode>): Likewise.
9598         (neon_vmul_lane<mode>): Likewise.
9599         (neon_vmul_lane<mode>): Likewise.
9600         (neon_vmull_lane<mode>): Likewise.
9601         (neon_vqdmull_lane<mode>): Likewise.
9602         (neon_vqdmulh_lane<mode>): Likewise.
9603         (neon_vqdmulh_lane<mode>): Likewise.
9604         (neon_vmla_lane<mode>): Likewise.
9605         (neon_vmla_lane<mode>): Likewise.
9606         (neon_vmlal_lane<mode>): Likewise.
9607         (neon_vqdmlal_lane<mode>): Likewise.
9608         (neon_vmls_lane<mode>): Likewise.
9609         (neon_vmls_lane<mode>): Likewise.
9610         (neon_vmlsl_lane<mode>): Likewise.
9611         (neon_vqdmlsl_lane<mode>): Likewise.
9612         (neon_vext<mode>): Likewise.
9613         (neon_vrev64<mode>): Likewise.
9614         (neon_vrev32<mode>): Likewise.
9615         (neon_vrev16<mode>): Likewise.
9616         (neon_vbsl<mode>_internal): Likewise.
9617         (neon_vshl<mode>): Likewise.
9618         (neon_vqshl<mode>): Likewise.
9619         (neon_vshr_n<mode>): Likewise.
9620         (neon_vshrn_n<mode>): Likewise.
9621         (neon_vqshrn_n<mode>): Likewise.
9622         (neon_vqshrun_n<mode>): Likewise.
9623         (neon_vshl_n<mode>): Likewise.
9624         (neon_vqshl_n<mode>): Likewise.
9625         (neon_vqshlu_n<mode>): Likewise.
9626         (neon_vshll_n<mode>): Likewise.
9627         (neon_vsra_n<mode>): Likewise.
9628         (neon_vsri_n<mode>): Likewise.
9629         (neon_vsli_n<mode>): Likewise.
9630         (neon_vtbl1v8qi): Likewise.
9631         (neon_vtbl2v8qi): Likewise.
9632         (neon_vtbl3v8qi): Likewise.
9633         (neon_vtbl4v8qi): Likewise.
9634         (neon_vtbl1v16qi): Likewise.
9635         (neon_vtbl2v16qi): Likewise.
9636         (neon_vcombinev16qi): Likewise.
9637         (neon_vtbx1v8qi): Likewise.
9638         (neon_vtbx2v8qi): Likewise.
9639         (neon_vtbx3v8qi): Likewise.
9640         (neon_vtbx4v8qi): Likewise.
9641         (*neon_vtrn<mode>_insn): Likewise.
9642         (*neon_vzip<mode>_insn): Likewise.
9643         (*neon_vuzp<mode>_insn): Likewise.
9644         (neon_vld1<mode>): Likewise.
9645         (neon_vld1_lane<mode>): Likewise.
9646         (neon_vld1_lane<mode>): Likewise.
9647         (neon_vld1_dup<mode>): Likewise.
9648         (neon_vld1_dup<mode>): Likewise.
9649         (neon_vld1_dupv2di): Likewise.
9650         (neon_vst1<mode>): Likewise.
9651         (neon_vst1_lane<mode>): Likewise.
9652         (neon_vst1_lane<mode>): Likewise.
9653         (neon_vld2<mode>): Likewise.
9654         (neon_vld2<mode>): Likewise.
9655         (neon_vld2_lane<mode>): Likewise.
9656         (neon_vld2_lane<mode>): Likewise.
9657         (neon_vld2_dup<mode>): Likewise.
9658         (neon_vst2<mode>): Likewise.
9659         (neon_vst2<mode>): Likewise.
9660         (neon_vst2_lane<mode>): Likewise.
9661         (neon_vst2_lane<mode>): Likewise.
9662         (neon_vld3<mode>): Likewise.
9663         (neon_vld3qa<mode>): Likewise.
9664         (neon_vld3qb<mode>): Likewise.
9665         (neon_vld3_lane<mode>): Likewise.
9666         (neon_vld3_lane<mode>): Likewise.
9667         (neon_vld3_dup<mode>): Likewise.
9668         (neon_vst3<mode>): Likewise.
9669         (neon_vst3qa<mode>): Likewise.
9670         (neon_vst3qb<mode>): Likewise.
9671         (neon_vst3_lane<mode>): Likewise.
9672         (neon_vst3_lane<mode>): Likewise.
9673         (neon_vld4<mode>): Likewise.
9674         (neon_vld4qa<mode>): Likewise.
9675         (neon_vld4qb<mode>): Likewise.
9676         (neon_vld4_lane<mode>): Likewise.
9677         (neon_vld4_lane<mode>): Likewise.
9678         (neon_vld4_dup<mode>): Likewise.
9679         (neon_vst4<mode>): Likewise.
9680         (neon_vst4qa<mode>): Likewise.
9681         (neon_vst4qb<mode>): Likewise.
9682         (neon_vst4_lane<mode>): Likewise.
9683         (neon_vst4_lane<mode>): Likewise.
9684         (neon_vec_unpack<US>_lo_<mode>): Likewise.
9685         (neon_vec_unpack<US>_hi_<mode>): Likewise.
9686         (neon_vec_<US>mult_lo_<mode>): Likewise.
9687         (neon_vec_<US>mult_hi_<mode>): Likewise.
9688         (neon_vec_<US>shiftl_<mode>): Likewise.
9689         (neon_unpack<US>_<mode>): Likewise.
9690         (neon_vec_<US>mult_<mode>): Likewise.
9691         (vec_pack_trunc_<mode>): Likewise.
9692         (neon_vec_pack_trunc_<mode>): Likewise.
9693         (neon_vabd<mode>_2): Likewise.
9694         (neon_vabd<mode>_3): Likewise.
9696 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9698         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
9699         (load_pair): Update type attribute.
9700         (store_pair): Update type attribute.
9701         * config/aarch64/iterators.md (q): New.
9703 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9705         * config/arm/types.md: Add new types for Neon insns.
9707 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9708             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9709             Sergey Lega  <sergey.s.lega@intel.com>
9710             Anna Tikhonova  <anna.tikhonova@intel.com>
9711             Ilya Tocar  <ilya.tocar@intel.com>
9712             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9713             Ilya Verbin  <ilya.verbin@intel.com>
9714             Kirill Yukhin  <kirill.yukhin@intel.com>
9715             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9717         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
9718         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
9719         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
9720         (rcp14<mode>): New.
9721         (srcp14<mode>): Ditto.
9722         (rsqrt14<mode>): Ditto.
9723         (rsqrt14<mode>): Ditto.
9724         (avx512f_vmscalef<mode>): Ditto.
9725         (avx512f_scalef<mode>): Ditto.
9726         (avx512f_getexp<mode>): Ditto.
9727         (avx512f_sgetexp<mode>): Ditto.
9728         (avx512f_fixupimm<mode>): Ditto.
9729         (avx512f_sfixupimm<mode>): Ditto.
9730         (avx512f_rndscale<mode>): Ditto.
9731         (*avx512er_exp2<mode>): Ditto.
9732         (*avx512er_rcp28<mode>): Ditto.
9733         (avx512er_rsqrt28<mode>): Ditto.
9734         (avx512f_getmant<mode>): Ditto.
9735         (avx512f_getmant<mode>): Ditto.
9736         (avx512f_rndscale<mode>): Fix formatting.
9738 2013-10-15  Martin Jambor  <mjambor@suse.cz>
9740         * ipa-utils.h (ipa_edge_within_scc): Declare.
9741         * ipa-cp.c (edge_within_scc): Moved...
9742         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
9744 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9745             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9746             Sergey Lega  <sergey.s.lega@intel.com>
9747             Anna Tikhonova  <anna.tikhonova@intel.com>
9748             Ilya Tocar  <ilya.tocar@intel.com>
9749             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9750             Ilya Verbin  <ilya.verbin@intel.com>
9751             Kirill Yukhin  <kirill.yukhin@intel.com>
9752             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9754         * config/i386/predicates.md (const_8_to_15_operand): New.
9755         (const_16_to_31_operand): Ditto.
9756         * config/i386/sse.md (V8FI): New.
9757         (V16FI): Ditto.
9758         (reduc_splus_v8df): Ditto.
9759         (reduc_splus_v16sf): Ditto.
9760         (avx512f_vextract<shuffletype>32x4_1): Ditto.
9761         (vec_extract_hi_<mode>): Ditto.
9762         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
9763         (vec_set_lo_<mode>): Ditto.
9764         (vec_set_hi_<mode>): Ditto.
9765         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
9766         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
9767         (avx512f_pshufd_1): Ditto.
9768         (avx512f_broadcast<mode>): Ditto.
9769         (avx512f_broadcast<mode>): Ditto.
9770         (define_split): Split vec_extract_lo into move.
9771         (ssequartermode): Ditto.
9772         (ssedoublemode): Extened with wider modes.
9773         (vec_extract_lo_<mode>): Ditto.
9775 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9776             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9777             Sergey Lega  <sergey.s.lega@intel.com>
9778             Anna Tikhonova  <anna.tikhonova@intel.com>
9779             Ilya Tocar  <ilya.tocar@intel.com>
9780             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9781             Ilya Verbin  <ilya.verbin@intel.com>
9782             Kirill Yukhin  <kirill.yukhin@intel.com>
9783             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9785         * config/i386/predicates.md (register_or_constm1_operand): New.
9786         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
9787         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
9788         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
9789         UNSPEC_SCATTER_PREFETCH
9790         (VI48_512): New.
9791         (avx512f_ucmp<mode>3): Ditto.
9792         (avx512f_vternlog<mode>): Ditto.
9793         (avx512f_align<mode>): Ditto.
9794         (<shift_insn><mode>3): Ditto.
9795         (avx512f_<rotate>v<mode>): Ditto.
9796         (avx512f_<rotate><mode>): Ditto.
9797         (avx512f_eq<mode>3): Ditto.
9798         (avx512f_eq<mode>3_1): Ditto.
9799         (avx512f_gt<mode>3): Ditto.
9800         (avx512f_testm<mode>3): Ditto.
9801         (avx512f_testnm<mode>3): Ditto.
9802         (avx512pf_gatherpf<mode>): Ditto.
9803         (*avx512pf_gatherpf<mode>_mask): Ditto.
9804         (*avx512pf_gatherpf<mode>): Ditto.
9805         (avx512pf_scatterpf<mode>): Ditto.
9806         (*avx512pf_scatterpf<mode>_mask): Ditto.
9807         (*avx512pf_scatterpf<mode>): Ditto.
9808         (avx512f_vec_dup_gpr<mode>): Ditto.
9809         (clz<mode>2): Ditto.
9810         (conflict<mode>): Ditto.
9811         (REDUC_SMINMAX_MODE): Extened with wider modes.
9812         (reduc_<code>_<mode>): Ditto.
9813         (vlshr<mode>3): Ditto.
9814         (vashl<mode>3): Ditto.
9816 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9817             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9818             Sergey Lega  <sergey.s.lega@intel.com>
9819             Anna Tikhonova  <anna.tikhonova@intel.com>
9820             Ilya Tocar  <ilya.tocar@intel.com>
9821             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9822             Ilya Verbin  <ilya.verbin@intel.com>
9823             Kirill Yukhin  <kirill.yukhin@intel.com>
9824             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9826         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
9827         UNSPEC_SCATTER.
9828         (VI48F_512): New.
9829         (avx512fmaskmode): Ditto.
9830         (bcstscalarsuff): Ditto.
9831         (avx512f_blendm<mode>): Ditto.
9832         (cmp_imm_predicate): Ditto.
9833         (avx512f_cmp<mode>3): Ditto.
9834         (avx512f_vec_dup<mode>): Ditto.
9835         (avx512f_vec_dup_mem<mode>): Ditto.
9836         (avx512f_vpermi2var<mode>3): Ditto.
9837         (avx512f_vpermt2var<mode>3): Ditto.
9838         (vec_init<mode>): Ditto.
9839         (avx512f_gathersi<mode>): Ditto.
9840         (*avx512f_gathersi<mode>): Ditto.
9841         (*avx512f_gathersi<mode>_2): Ditto.
9842         (avx512f_gatherdi<mode>): Ditto.
9843         (*avx512f_gatherdi<mode>): Ditto.
9844         (*avx512f_gatherdi<mode>_2): Ditto.
9845         (avx512f_scattersi<mode>): Ditto.
9846         (*avx512f_scattersi<mode>): Ditto.
9847         (avx512f_scatterdi<mode>): Ditto.
9848         (*avx512f_scatterdi<mode>): Ditto.
9849         (sseintprefix): Extened with wider modes.
9850         (VEC_GATHER_IDXSI): Ditto.
9851         (VEC_GATHER_IDXDI): Ditto.
9852         (VEC_GATHER_SRCDI): Ditto.
9854 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9855             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9857         * config/arm/t-aprofile: New file.
9858         * config.gcc: Handle --with-multilib-list option.
9860 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
9862         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
9863         the input for r2.
9865 2013-10-15  Richard Biener  <rguenther@suse.de>
9867         * tree-loop-distribution.c (build_empty_rdg): Inline into
9868         single user.
9869         (rdg_flag_vertex): Inline into single user.
9870         (rdg_flag_vertex_and_dependent): Likewise.
9871         (build_rdg_partition_for_vertex): Remove processed bitmap.
9872         (rdg_build_partitions): Simplify.
9874 2013-10-15  Richard Biener  <rguenther@suse.de>
9876         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9877         Restructure forwarding through conversions and copies to
9878         avoid performing copy-propagation the wrong way.  Adjust
9879         recursion invocations.
9880         (forward_propagate_addr_expr): Add argument stating if we
9881         are recursing from a single-use.
9882         (ssa_forward_propagate_and_combine): Adjust.
9884 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
9886         * dumpfile.h (gcc::dump_manager): New class, to hold state
9887         relating to dumpfile management.
9888         (get_dump_file_name): Remove in favor of method of dump_manager.
9889         (dump_initialized_p): Likewise.
9890         (dump_start): Likewise.
9891         (dump_finish): Likewise.
9892         (dump_switch_p): Likewise.
9893         (dump_register): Likewise.
9894         (get_dump_file_info): Likewise.
9895         * context.c (gcc::context::context): Construct the dump_manager
9896         instance.
9897         * context.h (gcc::context::get_dumps): New.
9898         (gcc::context::m_dumps): New.
9899         * coverage.c (coverage_init): Port to dump_manager API.
9900         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
9901         (extra_dump_files_in_use): Likewise.
9902         (extra_dump_files_alloced): Likewise.
9903         (gcc::dump_manager::dump_manager): New.
9904         (dump_register): Convert to...
9905         (gcc::dump_manager::dump_register): ...method, replacing
9906         function-static next_dump with m_next_dump field.
9907         (get_dump_file_info): Convert to...
9908         (gcc::dump_manager::get_dump_file_info): ...method.
9909         (get_dump_file_name): Convert to...
9910         (gcc::dump_manager::get_dump_file_name): ...method.
9911         (dump_start): Convert to...
9912         (gcc::dump_manager::dump_start): ...method.
9913         (dump_finish): Convert to...
9914         (gcc::dump_manager::dump_finish): ...method.
9915         (dump_begin): Replace body with...
9916         (gcc::dump_manager::dump_begin): ...new method.
9917         (dump_phase_enabled_p): Convert to...
9918         (gcc::dump_manager::dump_phase_enabled_p): ...method.
9919         (dump_phase_enabled_p): Convert to...
9920         (gcc::dump_manager::dump_phase_enabled_p): ...method.
9921         (dump_initialized_p):  Convert to...
9922         (gcc::dump_manager::dump_initialized_p): ...method.
9923         (dump_flag_name): Replace body with...
9924         (gcc::dump_manager::dump_flag_name): ...new method.
9925         (dump_enable_all): Convert to...
9926         (gcc::dump_manager::dump_enable_all): ...new method.
9927         (opt_info_enable_passes): Convert to...
9928         (gcc::dump_manager::opt_info_enable_passes): ...new method.
9929         (dump_switch_p_1): Convert to...
9930         (gcc::dump_manager::dump_switch_p_1): ...new method.
9931         (dump_switch_p):  Convert to...
9932         (gcc::dump_manager::dump_switch_p): ...new method.
9933         (opt_info_switch_p): Port to dump_manager API.
9934         (enable_rtl_dump_file): Likewise.
9935         * opts-global.c (handle_common_deferred_options): Port to new
9936         dump_manager API.
9937         * passes.c (pass_manager::finish_optimization_passes): Likewise.
9938         (pass_manager::register_one_dump_file): Likewise.
9939         (pass_manager::register_pass): Likewise.
9940         (pass_init_dump_file): Likewise.
9941         (pass_fini_dump_file): Likewise.
9942         * statistics.c (statistics_early_init): Likewise.
9944 2013-10-14  Richard Biener  <rguenther@suse.de>
9946         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
9947         iterative_hash_canonical_type, gimple_canonical_type_hash,
9948         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
9949         gimple_register_canonical_type, print_gimple_types_stats,
9950         free_gimple_type_tables): Move to lto/lto.c
9951         (gt-gimple.h): Do not include.
9952         * gimple.h (gimple_register_canonical_type,
9953         print_gimple_types_stats, free_gimple_type_tables): Remove.
9954         * Makefile.in (GTFILES): Remove gimple.c.
9956 2013-10-14  Travis Snoozy  <quandary@remstate.com>
9958         PR target/58716
9959         * config/msp430/msp430.c (msp430_option_override): Correct thinko
9960         scanning for msp430x targets.
9962 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
9964         PR bootstrap/58509
9965         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
9966         (registers_ok_for_ldd_peep): Move around.
9967         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
9968         * config/sparc/sparc.md (widening peepholes): Use it.
9970 2013-10-14  Richard Biener  <rguenther@suse.de>
9972         PR middle-end/58712
9973         PR middle-end/55358
9974         * gimple.c (iterative_hash_canonical_type): Make sure to
9975         record the hash into the correct hashtable slot.
9977 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
9979         PR rtl-optimization/58662
9980         * combine.c (try_combine): Take into account death nodes on I2 when
9981         splitting a PARALLEL of two independent SETs.  Fix dump message.
9983 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
9985         PR target/51244
9986         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
9987         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
9988         extra_objs.
9989         * config/sh/t-sh (sh_treg_combine.o): New entry.
9990         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
9991         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
9992         (register_sh_passes): New function.  Register sh_treg_combine pass.
9993         (sh_option_override): Invoke it.
9994         (sh_canonicalize_comparison): Handle op0_preserve_value.
9995         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
9996         opportunities.  Canonicalize branch condition.
9997         (nott): Allow only if pseudos can be created for non-SH2A.
9999 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10001         PR target/58690
10002         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
10003         (ix86_expand_movmem): Replace copy_addr_to_reg with
10004         ix86_copy_addr_to_reg.
10005         (ix86_expand_setmem): Likewise.
10007 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
10009         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
10010         provided by ix86_fp_compare_mode instead of CCFPUmode.
10012 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
10014         * config/aarch64/arm_neon.h
10015         (vtbx<1,3>_<psu>8): Fix register constriants.
10017 2013-10-11  Jeff Law  <law@redhat.com>
10019         PR tree-optimization/58640
10020         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
10021         threading paths that cross over two loop entry points.
10023 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10025         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
10026         handle vector float as well.
10027         (*vsx_le_perm_load_v4si): Likewise.
10028         (*vsx_le_perm_store_v2di): Likewise.
10029         (*vsx_le_perm_store_v4si): Likewise.
10031 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10033         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
10034         directly to circumvent subtract from splat{31} workaround.
10035         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
10036         prototype.
10037         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
10038         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
10039         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
10040         (altivec_vperm_<mode>): Convert to define_insn_and_split to
10041         separate big and little endian logic.
10042         (*altivec_vperm_<mode>_internal): New define_insn.
10043         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
10044         separate big and little endian logic.
10045         (*altivec_vperm_<mode>_uns_internal): New define_insn.
10046         (vec_permv16qi): Add little endian logic.
10048 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
10050         * doc/extend.texi (returns_nonnull): Remove arguments.
10052 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10053             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10054             Sergey Lega  <sergey.s.lega@intel.com>
10055             Anna Tikhonova  <anna.tikhonova@intel.com>
10056             Ilya Tocar  <ilya.tocar@intel.com>
10057             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10058             Ilya Verbin  <ilya.verbin@intel.com>
10059             Kirill Yukhin  <kirill.yukhin@intel.com>
10060             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10062         * config/i386/sse.md (VI48F_256_512): New.
10063         (avx2_permvar<mode>): Change to ...
10064         (<avx2_avx512f>_permvar<mode>): This.
10066 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10067             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10068             Sergey Lega  <sergey.s.lega@intel.com>
10069             Anna Tikhonova  <anna.tikhonova@intel.com>
10070             Ilya Tocar  <ilya.tocar@intel.com>
10071             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10072             Ilya Verbin  <ilya.verbin@intel.com>
10073             Kirill Yukhin  <kirill.yukhin@intel.com>
10074             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10076         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
10077         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
10078         * config/i386/sse.md (VI4_AVX): New.
10079         (sf2simodelower): Ditto.
10080         (sse2_cvtps2dq): Change to ...
10081         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
10083 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10084             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10085             Sergey Lega  <sergey.s.lega@intel.com>
10086             Anna Tikhonova  <anna.tikhonova@intel.com>
10087             Ilya Tocar  <ilya.tocar@intel.com>
10088             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10089             Ilya Verbin  <ilya.verbin@intel.com>
10090             Kirill Yukhin  <kirill.yukhin@intel.com>
10091             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10093         * config/i386/sse.md (V_512): New.
10094         (VI_512): Ditto.
10095         (vcond<V_512:mode><VF_512:mode>): Ditto.
10096         (vcond<V_512:mode><VI_512:mode>): Ditto.
10097         (vcondu<V_512:mode><VI_512:mode>): Ditto.
10099 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10100             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10101             Sergey Lega  <sergey.s.lega@intel.com>
10102             Anna Tikhonova  <anna.tikhonova@intel.com>
10103             Ilya Tocar  <ilya.tocar@intel.com>
10104             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10105             Ilya Verbin  <ilya.verbin@intel.com>
10106             Kirill Yukhin  <kirill.yukhin@intel.com>
10107             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10109         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
10110         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
10111         (FMAMODE): Ditto.
10112         (fma<mode>4): Removed condition.
10113         (fms<mode>4): Ditto.
10114         (fnma<mode>4): Ditto.
10115         (fnms<mode>4): Ditto.
10116         (fma4i_fmadd_<mode>): Ditto.
10117         (*fma_fmadd_<mode>): Ditto.
10118         (*fma_fmsub_<mode>): Ditto.
10119         (*fma_fnmadd_<mode>): Ditto.
10120         (*fma_fnmsub_<mode>): Ditto.
10121         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
10122         (*fma_fmaddsub_<mode>): Ditto.
10123         (*fma_fmsubadd_<mode>): Ditto.
10124         (*fmai_fmadd_<mode>): Ditto.
10125         (*fmai_fmsub_<mode>): Ditto.
10126         (*fmai_fnmadd_<mode>): Ditto.
10127         (*fmai_fnmsub_<mode>): Ditto.
10129 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10130             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10131             Sergey Lega  <sergey.s.lega@intel.com>
10132             Anna Tikhonova  <anna.tikhonova@intel.com>
10133             Ilya Tocar  <ilya.tocar@intel.com>
10134             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10135             Ilya Verbin  <ilya.verbin@intel.com>
10136             Kirill Yukhin  <kirill.yukhin@intel.com>
10137             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10139         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
10140         (VI124_256): Changed to ...
10141         (VI124_256_48_512): This.
10142         (ssepackmode): Extended with wider modes.
10143         (<code><mode>3): Changed iterator.
10144         (*avx2_<code><mode>3): Ditto.
10145         (vec_pack_trunc_<mode>): Ditto.
10147 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10148             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10149             Sergey Lega  <sergey.s.lega@intel.com>
10150             Anna Tikhonova  <anna.tikhonova@intel.com>
10151             Ilya Tocar  <ilya.tocar@intel.com>
10152             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10153             Ilya Verbin  <ilya.verbin@intel.com>
10154             Kirill Yukhin  <kirill.yukhin@intel.com>
10155             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10157         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
10158         (VI8F_256_512): Ditto.
10159         (abs<mode>2): Changed iterator.
10160         (avx2_perm<mode>): Changed to ...
10161         (<avx2_avx512f>_perm<mode>): This.
10162         (avx2_perm<mode>_1): Changed to ...
10163         (<avx2_avx512f>_perm<mode>_1): This.
10165 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10166             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10167             Sergey Lega  <sergey.s.lega@intel.com>
10168             Anna Tikhonova  <anna.tikhonova@intel.com>
10169             Ilya Tocar  <ilya.tocar@intel.com>
10170             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10171             Ilya Verbin  <ilya.verbin@intel.com>
10172             Kirill Yukhin  <kirill.yukhin@intel.com>
10173             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10175         * config/i386/sse.md (VI48_AVX512F): New.
10176         (VI48_AVX2): Changed to ...
10177         (VI48_AVX2_48_AVX512F): This.
10178         (avx2_ashrv<mode>): Changed to ...
10179         (<avx2_avx512f>_ashrv<mode>): This.
10180         (avx2_<shift_insn>v<mode>): Changed to ...
10181         (<avx2_avx512f>_<shift_insn>v<mode>): This.
10183 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10184             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10185             Sergey Lega  <sergey.s.lega@intel.com>
10186             Anna Tikhonova  <anna.tikhonova@intel.com>
10187             Ilya Tocar  <ilya.tocar@intel.com>
10188             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10189             Ilya Verbin  <ilya.verbin@intel.com>
10190             Kirill Yukhin  <kirill.yukhin@intel.com>
10191             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10193         * config/i386/sse.md (VI4_AVX512F): New.
10194         (VI8_AVX2_AVX512F): Ditto.
10195         (mul<mode>3): Extended with wider modes.
10196         (*<sse4_1_avx2>_mul<mode>3): Ditto.
10197         (mul<mode>3): Ditto.
10198         (vec_widen_<s>mult_odd_<mode>): Ditto.
10200 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10201             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10202             Sergey Lega  <sergey.s.lega@intel.com>
10203             Anna Tikhonova  <anna.tikhonova@intel.com>
10204             Ilya Tocar  <ilya.tocar@intel.com>
10205             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10206             Ilya Verbin  <ilya.verbin@intel.com>
10207             Kirill Yukhin  <kirill.yukhin@intel.com>
10208             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10210         * config/i386/sse.md (VI2_AVX512F): New.
10211         (VI124_AVX512F): Ditto.
10212         (sseunpackmode): Extended with wider modes.
10213         (sseunpackfltmode): Ditto.
10214         (vec_unpacks_float_hi_<mode>): Ditto.
10215         (vec_unpacks_float_lo_<mode>): Ditto.
10216         (vec_unpacku_float_hi_<mode>): Ditto.
10217         (vec_unpacku_float_lo_<mode>): Ditto.
10218         (vec_unpacks_lo_<mode>): Ditto.
10219         (vec_unpacks_hi_<mode>): Ditto.
10220         (vec_unpacku_lo_<mode>): Ditto.
10221         (vec_unpacku_hi_<mode>): Ditto.
10223 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10224             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10225             Sergey Lega  <sergey.s.lega@intel.com>
10226             Anna Tikhonova  <anna.tikhonova@intel.com>
10227             Ilya Tocar  <ilya.tocar@intel.com>
10228             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10229             Ilya Verbin  <ilya.verbin@intel.com>
10230             Kirill Yukhin  <kirill.yukhin@intel.com>
10231             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10233         * config/i386/i386.md (multdiv): New.
10234         (multdiv_mnemonic): Ditto.
10235         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
10236         (<sse>_vm<multdiv_mnemonic><mode>3): This.
10237         (<sse>_vmdiv<mode>3): Removed.
10239 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10240             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10241             Sergey Lega  <sergey.s.lega@intel.com>
10242             Anna Tikhonova  <anna.tikhonova@intel.com>
10243             Ilya Tocar  <ilya.tocar@intel.com>
10244             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10245             Ilya Verbin  <ilya.verbin@intel.com>
10246             Kirill Yukhin  <kirill.yukhin@intel.com>
10247             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10249         * config/i386/sse.md (V): Extended with wider modes.
10250         (VF2): Ditto.
10251         (ssehalfvecmode): Ditto.
10252         (i128): Ditto.
10253         (ssepackfltmode): Ditto.
10254         (avx_vec_concat<mode>): Ditto.
10255         (V_256_512): New iterator.
10256         (VF2_512_256): Ditto.
10257         (si2dfmode): New attribute.
10258         (si2dfmodelower): Ditto.
10259         (sf2dfmode): Ditto.
10260         (concat_tg_mode): Ditto.
10261         (floatv4siv4df2): Changed to ...
10262         (float<si2dfmodelower><mode>2): This.
10263         (avx_cvtps2pd256): Changed to ...
10264         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
10265         (vec_pack_trunc_v4df): Changed to ...
10266         (vec_pack_trunc_<mode>): This.
10267         (avx_vpermil<mode>): Changed to ...
10268         (<sse2_avx_avx512f>_vpermil<mode>): This.
10269         (<fixsuffix>fix_truncv8dfv8si2): New.
10270         (vec_pack_sfix_trunc_v8df): Ditto.
10271         (avx512f_rndscale<mode>): Ditto.
10272         (avx512f_roundpd512): Ditto.
10273         (vec_pack_ufix_trunc_<mode>): Updated iterator.
10275 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10276             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10277             Sergey Lega  <sergey.s.lega@intel.com>
10278             Anna Tikhonova  <anna.tikhonova@intel.com>
10279             Ilya Tocar  <ilya.tocar@intel.com>
10280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10281             Ilya Verbin  <ilya.verbin@intel.com>
10282             Kirill Yukhin  <kirill.yukhin@intel.com>
10283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10285         * config/i386/i386.md (any_fix): New iterator.
10286         (fixsuffix): New attribute.
10287         * config/i386/sse.md (VF1): Extened with wider modes.
10288         (VI): Ditto.
10289         (VI_AVX2): Ditto.
10290         (VI8): Ditto.
10291         (sseintvecmodelower): Ditto.
10292         (ssescalarmode): Ditto.
10293         (ssescalarnum): Ditto.
10294         (VF1_128_256): New.
10295         (ssexmmmode): Ditto.
10296         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
10297         (<sse>_rcp<mode>2): Change iterator.
10298         (rsqrt<mode>2): Ditto.
10299         (<sse>_rsqrt<mode>2): Ditto.
10300         (avx2_vec_dup<mode>): Ditto.
10301         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
10302         (round<mode>2_sfix): Ditto.
10303         (avx2_pbroadcast<mode>): Ditto.
10304         (*andnot<mode>3): Handle XI mode.
10305         (*<code><mode>3): Ditto.
10306         (AVXTOSSEMODE): Removed.
10307         (avx_vpermil<mode>): Changed to ...
10308         (<sse2_avx_avx512f>_vpermil<mode>): This.
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/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
10321         (<sse>_comi): Ditto.
10322         (<sse>_ucomi): Ditto.
10323         (sse_cvtss2siq_2): Ditto.
10324         (sse2_cvtsd2si): Ditto.
10325         (sse2_cvtsd2siq): Ditto.
10326         (sse2_cvttsd2si): Ditto.
10327         (sse2_cvttsd2siq): Ditto.
10328         (<shift_insn><mode>3): Ditto.
10329         (sse2_cvtsi2sdq): Update constraint and prefix.
10330         (sse_cvtsi2ss): Update prefix.
10331         (sse_cvtsi2ssq): Ditto.
10333 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
10335         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
10336         ignore internal calls.
10338 2013-10-11  Richard Biener  <rguenther@suse.de>
10340         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
10341         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
10342         TREE_OVERFLOW is set.
10344 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
10346         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
10348         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
10349         * gimple.h: Likewise.
10351         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
10353         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
10354         macros.
10356         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
10358         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
10359         * configure: Regenerate.
10361 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
10363         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
10364         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
10365         formatting fixes, use pp_colon instead of pp_character (..., ':'),
10366         similarly pp_right_paren.
10367         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
10368         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
10369         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
10370         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
10371         clauses.
10372         (omp_declare_simd_clauses_equal,
10373         omp_remove_redundant_declare_simd_attrs): New functions.
10374         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
10375         (walk_tree_1): Handle new OpenMP 4.0 clauses.
10376         * tree.h (OMP_LOOP_CHECK): Define.
10377         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10378         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
10379         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
10380         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
10381         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
10382         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
10383         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
10384         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
10385         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
10386         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
10387         OMP_CLAUSE_SIMDLEN_EXPR): Define.
10388         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
10389         (omp_remove_redundant_declare_simd_attrs): New prototype.
10390         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
10391         GIMPLE_OMP_TEAMS): New codes.
10392         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
10393         * omp-low.c (struct omp_context): Add cancel_label and cancellable
10394         fields.
10395         (target_nesting_level): New variable.
10396         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
10397         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
10398         for collapse > 1 static schedule unless ordered.
10399         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
10400         (determine_parallel_type): Adjust get_ws_args_for caller.
10401         (install_var_field): Handle mask & 4 for double indirection.
10402         (scan_sharing_clauses): Ignore shared clause on teams construct.
10403         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
10404         (create_omp_child_function): If inside target or declare target
10405         constructs, set "omp declare target" attribute on the child function.
10406         (find_combined_for): New function.
10407         (scan_omp_parallel): Handle combined loops.
10408         (scan_omp_target, scan_omp_teams): New functions.
10409         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
10410         restrictions and set ctx->cancellable for cancellable constructs.
10411         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
10412         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
10413         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
10414         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
10415         (omp_clause_aligned_alignment): New function.
10416         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
10417         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
10418         on teams constructs.  Handle user defined reductions and new
10419         OpenMP 4.0 clauses.
10420         (lower_reduction_clauses): Don't set placeholder to address of ref
10421         if it has already the right type.
10422         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
10423         (expand_parallel_call): Use the new non-_start suffixed builtins,
10424         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
10425         and GOMP_parallel_end after the call.
10426         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
10427         (expand_omp_for_init_counts): Handle combined loops.
10428         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
10429         loops.
10430         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
10431         end of cancellable loops.
10432         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
10433         Likewise.  Handle collapse > 1 loops.
10434         (expand_omp_simd): Handle combined loops.
10435         (expand_omp_for): Add inner_stmt argument, adjust callers of
10436         expand_omp_for* functions, use expand_omp_for_static*chunk even
10437         for collapse > 1 unless ordered.
10438         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
10439         of cancellable sections.
10440         (expand_omp_single): Remove need_barrier variable, just rely on
10441         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
10442         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
10443         (expand_omp_atomic_load, expand_omp_atomic_store,
10444         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
10445         (expand_omp_target): New function.
10446         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
10447         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
10448         (build_omp_regions_1): Immediately close region for
10449         GF_OMP_TARGET_KIND_UPDATE.
10450         (maybe_add_implicit_barrier_cancel): New function.
10451         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
10452         cancellation.
10453         (lower_omp_single): Likewise.  Add clobber after the barrier.
10454         (lower_omp_taskgroup): New function.
10455         (lower_omp_for): Handle combined loops.  Adjust
10456         lower_rec_input_clauses caller.  Handle cancellation.
10457         (lower_depend_clauses): New function.
10458         (lower_omp_taskreg): Lower depend clauses.  Adjust
10459         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
10460         cancellation.
10461         (lower_omp_target, lower_omp_teams): New functions.
10462         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
10463         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
10464         and GOMP_cancellation_point calls.
10465         (lower_omp): Fold stmts inside of target region.
10466         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
10467         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
10468         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
10469         (BT_FN_VOID_OMPFN_PTR_UINT,
10470         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
10471         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
10472         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
10473         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
10474         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
10475         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
10476         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
10477         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10478         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10479         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
10480         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10481         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
10482         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
10483         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
10484         BUILT_IN_GOMP_PARALLEL_END.
10485         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
10486         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
10487         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
10488         GF_OMP_FOR_KIND_DISTRIBUTE.
10489         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
10490         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
10491         (dump_gimple_omp_return): Print lhs if it has any.
10492         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
10493         gimple_omp_atomic_seq_cst_p.
10494         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
10495         and GIMPLE_OMP_TEAMS.
10496         * langhooks.c (lhd_omp_mappable_type): New function.
10497         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
10498         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
10499         hook.
10500         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
10501         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
10502         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
10503         (struct gimplify_omp_ctx): Add combined_loop field.
10504         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
10505         on stmts inside of target region.
10506         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
10507         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
10508         ORT_TARGET and ORT_TARGET_DATA.
10509         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
10510         Handle GOVD_MAP.
10511         (omp_notice_threadprivate_variable): Complain about threadprivate
10512         variables in target region.
10513         (omp_notice_variable): Complain about vars with non-mappable type
10514         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
10515         (omp_check_private): Ignore ORT_TARGET* regions.
10516         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
10517         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
10518         (find_combined_omp_for): New function.
10519         (gimplify_omp_for): Handle gimplification of combined loops.
10520         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
10521         OMP_TEAMS.
10522         (gimplify_omp_target_update): New function.
10523         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
10524         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
10525         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
10526         (gimplify_body): If fndecl has "omp declare target" attribute, add
10527         implicit ORT_TARGET context around it.
10528         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
10529         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
10530         * tree-nested.c (convert_nonlocal_reference_stmt,
10531         convert_local_reference_stmt, convert_gimple_call): Handle
10532         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10533         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
10534         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
10535         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
10536         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
10537         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
10538         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
10539         BUILT_IN_GOMP_LOOP_END_CANCEL,
10540         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
10541         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
10542         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
10543         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
10544         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
10545         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
10546         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
10547         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
10548         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
10549         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
10550         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
10551         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
10552         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
10553         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
10554         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
10555         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10556         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
10557         gimple_build_omp_teams): New functions.
10558         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
10559         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
10560         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
10561         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10562         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
10563         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
10564         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
10565         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
10566         GF_OMP_ATOMIC_SEQ_CST): New.
10567         (gimple_build_omp_taskgroup, gimple_build_omp_target,
10568         gimple_build_omp_teams): New prototypes.
10569         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
10570         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10571         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
10572         GIMPLE_OMP_SINGLE as end of range.
10573         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
10574         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
10575         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
10576         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
10577         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
10578         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
10579         gimple_omp_target_kind, gimple_omp_target_set_kind,
10580         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
10581         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
10582         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
10583         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
10584         gimple_omp_teams_set_clauses): New inlines.
10585         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
10586         and GIMPLE_OMP_TASKGROUP.
10587         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
10588         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
10589         enum omp_clause_proc_bind_kind): New.
10590         (union omp_clause_subcode): Add depend_kind, map_kind and
10591         proc_bind_kind fields.
10592         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
10593         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10594         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
10595         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
10596         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10598 2013-10-10  Teresa Johnson  <tejohnson@google.com>
10600         * predict.c (tree_estimate_probability): Add new parameter
10601         for estimate_bb_frequencies.
10602         (estimate_bb_frequencies): Add new parameter to force estimation.
10603         (rebuild_frequencies): When max frequency in function is small,
10604         recompute counts from frequencies.
10605         * predict.h (estimate_bb_frequencies): New parameter.
10607 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
10609         * ipa-inline.c (ipa_inline): Fix leak of "order" when
10610         optimizations are disabled.
10612 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
10614         * coverage.c (coverage_finish): Fix leak of da_file_name.
10616 2013-10-10  Jan Hubicka  <jh@suse.cz>
10618         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
10619         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
10620         Bobcat and generic.
10622 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
10624         PR middle-end/58670
10625         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
10626         if any labels are in FALLTHRU_BB, use a special label emitted
10627         immediately after the asm goto insn rather than label_rtx
10628         of the LABEL_DECL.
10629         (expand_asm_stmt): Adjust caller.
10630         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
10631         edge if the last insn in predecessor is a jump with single successor,
10632         but it isn't simplejump_p.
10634 2013-10-10  Richard Biener  <rguenther@suse.de>
10636         PR tree-optimization/58656
10637         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
10639 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
10641         * gimplify.c: Include expr.h and tm_p.h for targets with special
10642         va-arg padding requirements.
10644 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
10646         * tree-flow.h: Move some prototypes to gimple.h.
10647         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
10648         * gimple.h: Relocate some prototypes from tree-flow.h
10649         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
10650         Move to gimplify.c.
10651         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
10652         (build_va_arg_indirect_ref): Relocate and make static.
10653         (std_gimplify_va_arg_expr): Relocate here.
10654         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
10655         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
10657 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10659         * doc/md.texi: Document the mnemonic attribute.
10661 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10663         PR target/57377
10664         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
10665         (set_attr_alternative x ...) when searching for user defined
10666         mnemonic attribute.
10668 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
10670         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
10672 2013-10-09  Easwaran Raman <eraman@google.com>
10674         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
10675         * cfgexpand.c (defer_stack_allocation): ...use here
10676         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
10678 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10680         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
10681         (operand_equal_for_value_replacement): New function, extracted from
10682         value_replacement and enhanced to catch more cases.
10683         (value_replacement): Use operand_equal_for_value_replacement.
10685 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10687         * loop-doloop.c (doloop_modify, doloop_optimize): Use
10688         get_max_loop_iterations.
10690 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10692         * config/arm/aarch-common.c (arm_early_load_addr_dep):
10693         Place comment above function.
10695 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10697         * tree-flow.h: Remove all remaining prototypes, enums and structs that
10698         are not related to tree-cfg.c.
10699         * tree-ssa-address.h: New file.  Relocate prototypes.
10700         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
10701         (addr_for_mem_ref): New.  Combine call to get_address_description and
10702         return addr_for_mem_ref.
10703         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
10704         * tree-ssa-live.h: Adjust prototypes.
10705         * passes.c: Include tree-ssa-live.h.
10706         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
10707         * graphite.c (graphite_transform_loops): Make static.
10708         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10709         make_pass_graphite, pass_data_graphite_transforms,
10710         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
10711         * ipa-pure-const.c (warn_function_noreturn): Make static.
10712         (execute_warn_function_noreturn, gate_warn_function_noreturn,
10713         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10714         Relocate from tree-cfg.c
10715         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
10716         static.
10717         (execute_warn_function_noreturn, gate_warn_function_noreturn,
10718         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10719         Move to ipa-pure-const.c.
10720         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
10721         Relocate from tree-optimize.c.
10722         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
10723         make_pass_fixup_cfg): Move to tree-cfg.c.
10724         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
10725         Relocate some prototypes.
10726         * tree-data-ref.h (tree_check_data_deps) Add prototype.
10727         * tree-dump.c (dump_function_to_file): Remove prototype.
10728         Add tree-flow.h to the include file.
10729         * tree-dump.h: Remove prototype.
10730         * tree-parloops.h: New File.  Add prototypes.
10731         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
10732         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
10733         from tree-ssa-loop.c.
10734         * tree-predcom.c (run_tree_predictive_commoning,
10735         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
10736         Relocate here from tree-ssa-loop.c.
10737         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
10738         ssa_name_values.release ().
10739         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
10740         (ssa_name_values): Relocate from tree-flow.h.
10741         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
10742         * tree-ssa-loop.c (run_tree_predictive_commoning,
10743         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
10744         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10745         make_pass_graphite, pass_data_graphite_transforms,
10746         make_pass_graphite_transforms, gate_tree_parallelize_loops,
10747         tree_parallelize_loops, pass_data_parallelize_loops,
10748         make_pass_parallelize_loops): Move to other files.
10749         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
10750         moved here.
10751         * tree.h: Remove prototypes from tree-address.c.
10753 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10755         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
10756         (struct int_tree_map): Move to tree-hasher.h
10757         (SCALE, LABEL, PERCENT): Move to gimple.h
10758         * tree-flow-inline.h: Delete.  Move functions to other files.
10759         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
10760         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
10761         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
10762         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
10763         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
10764         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
10765         * tree-hasher.h: Don't include tree-flow.h.
10766         (struct int_tree_map): Relocate from tree-flow.h.
10767         * tree-sra.c (contains_view_convert_expr_p): Relocate from
10768         tree-flow-inline.h and make static.
10769         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
10770         tree-flow-inline.h.
10771         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
10772         tree-flow-inline.h and make static.
10773         * tree.h (is_global_var, may_be_aliased): Relocate from
10774         tree-flow-inline.h.
10775         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
10776         * value-prof.c: No longer include tree-flow-inline.h.
10777         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
10779 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10781         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
10782         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
10783         (enum move_pos): Move to tree-ssa-loop-im.h
10784         * cfgloop.h: Move some prototypes.
10785         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
10786         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
10787         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
10788         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
10789         (loop_containing_stmt): Relocate from tree-flow-inline.h.
10790         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
10791         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
10792         (enum move_pos): Relocate here.
10793         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
10794         tree-ssa-loop.c.
10795         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
10796         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
10797         make_pass_lim): Relocate here from tree-ssa-loop.c.
10798         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
10799         tree-ssa-loop.c.
10800         (loop_edge_to_cancel, unloop_loops): Make static.
10801         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10802         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
10803         (tree_complete_unroll, gate_tree_complete_unroll,
10804         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
10805         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10806         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
10807         * tree-ssa-loop-ivopts.c: Remove local prototypes.
10808         (stmt_invariant_in_loop_p): Remove unused function.
10809         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
10810         * tree-ssa-loop-manip.h: New file.  Add prototypes.
10811         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
10812         (gcov_type_to_double_int): Move to cfgloop.h.
10813         (double_int_cmp, bound_index,
10814         estimate_numbers_of_iterations_loop): Make static.
10815         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
10816         (max_loop_iterations): Factor out get_max_loop_iterations.
10817         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
10818         cfgloop.c.
10819         * tree-ssa-loop-niter.h: New file.  Add prototypes.
10820         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
10821         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
10822         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
10823         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
10824         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
10825         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
10826         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
10827         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
10828         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
10829         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
10830         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10831         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
10832         pass_data_complete_unroll, make_pass_complete_unroll,
10833         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10834         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
10835         tree-ssa-loop-ivcanon.c.
10836         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
10837         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
10838         tree-ssa-loop-prefetch.c.
10839         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
10840         tree-ssa-loop-im.c.
10841         (get_lsm_tmp_name): Relocate and add suffix parameter.
10842         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
10843         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
10844         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
10845         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
10846         (get_estimated_loop_iterations): Factor out accessor from
10847         estimated_loop_iterations in tree-ssa-loop-niter.c.
10848         (get_max_loop_iterations): Factor out accessor from
10849         _max_loop_iterations in tree-ssa-niter.c.
10850         * loop-unroll.c (decide_unroll_constant_iterations,
10851         decide_unroll_runtime_iterations, decide_peel_simple,
10852         decide_unroll_stupid): Use new get_* accessors.
10854 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
10856         PR tree-optimization/20318
10857         * doc/extend.texi (returns_nonnull): New function attribute.
10858         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
10859         attribute.
10860         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
10861         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
10863 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
10865         PR middle-end/58570
10866         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
10867         false if both components are bitfields.
10869 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10871         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
10872         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
10873         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
10874         * config/aarch64/aarch64.h
10875         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
10876         * config/aarch64/aarch64-simd-builtins.def
10877         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
10879 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10881         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
10883 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10885         * config/aarch64/arm_neon.h (vdiv_f64): Added.
10887 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10889         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
10890         (vneg_f64): New intrinsic.
10891         (vneg_s8): Asm replaced with C.
10892         (vneg_s16): Likewise.
10893         (vneg_s32): Likewise.
10894         (vneg_s64): New intrinsic.
10895         (vnegq_f32): Asm replaced with C.
10896         (vnegq_f64): Likewise.
10897         (vnegq_s8): Likewise.
10898         (vnegq_s16): Likewise.
10899         (vnegq_s32): Likewise.
10900         (vnegq_s64): Likewise.
10902 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
10904         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
10906 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10908         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
10909         packed stack special handling.
10910         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
10911         back to fixed stack slots for FPRs saved due to stdarg.
10913 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10915         * config/s390/s390.c (s390_frame_info): Restructure function.
10917 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10919         * config/s390/s390.c (struct s390_frame_layout): New field
10920         gpr_save_slots.
10921         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
10922         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
10923         regs_ever_clobbered to char*.
10924         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
10925         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
10926         (s390_register_info): Enable FPR save slots.  Move/Copy some
10927         functionality into ...
10928         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
10929         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
10930         function.
10931         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
10932         not imply a stack frame.
10933         (s390_init_frame_layout): Remove variable clobbered_regs.
10934         (s390_update_register_info): Remove function.
10935         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
10936         cannot be used for register renaming.
10937         (s390_hard_regno_scratch_ok): New function.
10938         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
10939         (s390_initial_elimination_offset): Change offset calculation of
10940         the return address pointer.
10941         (save_gprs): Deal with only r6 being saved from the call-saved regs.
10942         (restore_gprs): Set frame related flag.
10943         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
10944         (s390_emit_prologue): Call s390_register_info instead of
10945         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
10946         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
10947         (s390_optimize_prologue): Call s390_optimize_register_info.
10948         Try to remove also FPR slot save/restore INSNs.  Remove frame
10949         related flags from restore INSNs.
10951 2013-10-08  DJ Delorie  <dj@redhat.com>
10953         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
10954         (movhi): Likewise.
10956         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
10957         avoid conflict with the MI use of %c.
10958         * config/rl78/rl78-real.md: change %c to %C throughout.
10959         * config/rl78/rl78-virt.md: Likewise.
10961 2013-10-08  Jan Hubicka  <jh@suse.cz>
10963         * config/i386/i386.c (ix86_option_override_internal): Switch
10964         to SSE math for -ffast-math when target ISA supports SSE2.
10966 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
10968         * tree-flow.h: Remove some prototypes.
10969         * tree.h: Remove some protypes, add a couple.
10970         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
10971         using_eh_for_cleanups_p): Add interface routines for front ends.
10972         * tree-eh.h: New file.  Add protoptyes.
10973         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
10974         (add_stmt_to_eh_lp_fn): Make static.
10975         (lower_try_finally): Use new using_eh_for_cleanups_p.
10976         * emit-rtl.c: Include tree-eh.h.
10977         * gimple.h: Include tree-eh.h.
10979 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
10981         PR tree-optimization/58480
10982         * tree-vrp.c (infer_nonnull_range): New function.
10983         (infer_value_range): Call infer_nonnull_range.
10985 2013-10-08  Dehao Chen  <dehao@google.com>
10987         PR tree-optimization/58619
10988         * tree-inline.c (copy_phis_for_bb): Combine location data
10989         only if non-null.
10991 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10993         PR target/58423
10994         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
10995         RTX_FRAME_RELATED_P on INSN.
10997 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10999         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
11000         (altivec_expand_vec_perm_const): Call it.
11002 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11004         * config/rs6000/vector.md (mov<mode>): Emit permuted move
11005         sequences for LE VSX loads and stores at expand time.
11006         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
11007         prototype.
11008         * config/rs6000/rs6000.c (rs6000_const_vec): New.
11009         (rs6000_gen_le_vsx_permute): New.
11010         (rs6000_gen_le_vsx_load): New.
11011         (rs6000_gen_le_vsx_store): New.
11012         (rs6000_gen_le_vsx_move): New.
11013         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
11014         (*vsx_le_perm_load_v4si): New.
11015         (*vsx_le_perm_load_v8hi): New.
11016         (*vsx_le_perm_load_v16qi): New.
11017         (*vsx_le_perm_store_v2di): New.
11018         (*vsx_le_perm_store_v4si): New.
11019         (*vsx_le_perm_store_v8hi): New.
11020         (*vsx_le_perm_store_v16qi): New.
11021         (*vsx_xxpermdi2_le_<mode>): New.
11022         (*vsx_xxpermdi4_le_<mode>): New.
11023         (*vsx_xxpermdi8_le_V8HI): New.
11024         (*vsx_xxpermdi16_le_V16QI): New.
11025         (*vsx_lxvd2x2_le_<mode>): New.
11026         (*vsx_lxvd2x4_le_<mode>): New.
11027         (*vsx_lxvd2x8_le_V8HI): New.
11028         (*vsx_lxvd2x16_le_V16QI): New.
11029         (*vsx_stxvd2x2_le_<mode>): New.
11030         (*vsx_stxvd2x4_le_<mode>): New.
11031         (*vsx_stxvd2x8_le_V8HI): New.
11032         (*vsx_stxvd2x16_le_V16QI): New.
11034 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
11036         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
11038 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11040         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
11041         loop to work also for 31bit ABI.
11042         Save the stack pointer for frame_size > 0.
11044 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11046         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
11047         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
11048         constraint letters from expanders.
11049         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
11050         retry count to general_operand.
11051         ("tabort"): Give operand 0 a mode.
11052         ("tabort_1"): Add mode and constraint letter for operand 0.
11053         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
11055 2013-10-04  Jeff Law  <law@redhat.com>
11057         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
11059         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
11060         out of ...
11061         (thread_across_edge): Here.  Call it.
11063 2013-10-04  Cary Coutant  <ccoutant@google.com>
11065         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
11066         discarding a location list expression (or a piece of one).
11068 2013-10-03  Jan Hubicka  <jh@suse.cz>
11070         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
11071         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
11072         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
11074 2013-10-03  Jan Hubicka  <jh@suse.cz>
11076         * config/i386/i386.c (ix86_option_override_internal): Do not enable
11077         accumulate-outgoing-args when producing unwind info.
11079 2013-10-03  Wei Mi  <wmi@google.com>
11081         * lra-constraints.c (insert_move_for_subreg): New function
11082         extracted from simplify_operand_subreg.
11083         (simplify_operand_subreg): Add reload for paradoxical subreg.
11085 2013-10-03  Rong Xu  <xur@google.com>
11087         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
11088         the candidate of builtin_expect such that we should fix the
11089         size/time estimation.
11090         (estimate_function_body_sizes): Do the acutally size/time fix-up
11091         for builtin_expect.
11093 2013-10-03  Rong Xu  <xur@google.com>
11095         * predict.c (tree_predict_by_opcode): Get the probability
11096         for builtin_expect from param builtin_expect_probability.
11097         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
11098         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
11099         * doc/invoke.texi: Add documentation for builtin-expect-probability.
11101 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
11103         PR c++/19476
11104         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
11105         * calls.c (alloca_call_p): Use get_callee_fndecl.
11106         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
11107         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
11108         Likewise.
11109         (vrp_visit_stmt): Remove duplicated code.
11111 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11113         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
11114         ceildf2, btruncdf2, instead of vsx_* name.
11116         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
11117         iterators to only do V2DF and V4SF here.  Move the DF code to
11118         rs6000.md where it is combined with SF mode.  Replace <VSv> with
11119         just 'v' since only vector operations are handled with these insns
11120         after moving the DF support to rs6000.md.
11121         (vsx_sub<mode>3): Likewise.
11122         (vsx_mul<mode>3): Likewise.
11123         (vsx_div<mode>3): Likewise.
11124         (vsx_fre<mode>2): Likewise.
11125         (vsx_neg<mode>2): Likewise.
11126         (vsx_abs<mode>2): Likewise.
11127         (vsx_nabs<mode>2): Likewise.
11128         (vsx_smax<mode>3): Likewise.
11129         (vsx_smin<mode>3): Likewise.
11130         (vsx_sqrt<mode>2): Likewise.
11131         (vsx_rsqrte<mode>2): Likewise.
11132         (vsx_fms<mode>4): Likewise.
11133         (vsx_nfma<mode>4): Likewise.
11134         (vsx_copysign<mode>3): Likewise.
11135         (vsx_btrunc<mode>2): Likewise.
11136         (vsx_floor<mode>2): Likewise.
11137         (vsx_ceil<mode>2): Likewise.
11138         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
11139         (vsx_sminsf3): Likewise.
11140         (vsx_fmadf4): Likewise.
11141         (vsx_fmsdf4): Likewise.
11142         (vsx_nfmadf4): Likewise.
11143         (vsx_nfmsdf4): Likewise.
11144         (vsx_cmpdf_internal1): Likewise.
11146         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
11147         simpler to select whether a target has SPE or traditional floating
11148         point support in iterators.
11149         (TARGET_DF_SPE): Likewise.
11150         (TARGET_SF_FPR): Likewise.
11151         (TARGET_DF_FPR): Likewise.
11152         (TARGET_SF_INSN): Macros to say whether floating point support
11153         exists for a given operation for expanders.
11154         (TARGET_DF_INSN): Likewise.
11156         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
11157         combining of SF/DF mode operations, using both traditional and VSX
11158         registers.
11159         (Fvsx): Likewise.
11160         (Ff): Likewise.
11161         (Fv): Likewise.
11162         (Fs): Likewise.
11163         (Ffre): Likewise.
11164         (FFRE): Likewise.
11165         (abs<mode>2): Combine SF/DF modes using traditional floating point
11166         instructions.  Add support for using the upper DF registers with
11167         VSX support, and SF registers with power8-vector support.  Update
11168         expanders for operations supported by both the SPE and traditional
11169         floating point units.
11170         (abs<mode>2_fpr): Likewise.
11171         (nabs<mode>2): Likewise.
11172         (nabs<mode>2_fpr): Likewise.
11173         (neg<mode>2): Likewise.
11174         (neg<mode>2_fpr): Likewise.
11175         (add<mode>3): Likewise.
11176         (add<mode>3_fpr): Likewise.
11177         (sub<mode>3): Likewise.
11178         (sub<mode>3_fpr): Likewise.
11179         (mul<mode>3): Likewise.
11180         (mul<mode>3_fpr): Likewise.
11181         (div<mode>3): Likewise.
11182         (div<mode>3_fpr): Likewise.
11183         (sqrt<mode>3): Likewise.
11184         (sqrt<mode>3_fpr): Likewise.
11185         (fre<Fs>): Likewise.
11186         (rsqrt<mode>2): Likewise.
11187         (cmp<mode>_fpr): Likewise.
11188         (smax<mode>3): Likewise.
11189         (smin<mode>3): Likewise.
11190         (smax<mode>3_vsx): Likewise.
11191         (smin<mode>3_vsx): Likewise.
11192         (negsf2): Delete SF operations that are merged with DF.
11193         (abssf2): Likewise.
11194         (addsf3): Likewise.
11195         (subsf3): Likewise.
11196         (mulsf3): Likewise.
11197         (divsf3): Likewise.
11198         (fres): Likewise.
11199         (fmasf4_fpr): Likewise.
11200         (fmssf4_fpr): Likewise.
11201         (nfmasf4_fpr): Likewise.
11202         (nfmssf4_fpr): Likewise.
11203         (sqrtsf2): Likewise.
11204         (rsqrtsf_internal1): Likewise.
11205         (smaxsf3): Likewise.
11206         (sminsf3): Likewise.
11207         (cmpsf_internal1): Likewise.
11208         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
11209         (negdf2): Delete DF operations that are merged with SF.
11210         (absdf2): Likewise.
11211         (nabsdf2): Likewise.
11212         (adddf3): Likewise.
11213         (subdf3): Likewise.
11214         (muldf3): Likewise.
11215         (divdf3): Likewise.
11216         (fred): Likewise.
11217         (rsqrtdf_internal1): Likewise.
11218         (fmadf4_fpr): Likewise.
11219         (fmsdf4_fpr): Likewise.
11220         (nfmadf4_fpr): Likewise.
11221         (nfmsdf4_fpr): Likewise.
11222         (sqrtdf2): Likewise.
11223         (smaxdf3): Likewise.
11224         (smindf3): Likewise.
11225         (cmpdf_internal1): Likewise.
11226         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
11227         (btrunc<mode>2): Delete separate expander, and combine with the
11228         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
11229         (btrunc<mode>2_fpr): Likewise.
11230         (ceil<mode>2): Likewise.
11231         (ceil<mode>2_fpr): Likewise.
11232         (floor<mode>2): Likewise.
11233         (floor<mode>2_fpr): Likewise.
11234         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
11235         Add support for using the upper registers with VSX and
11236         power8-vector.  Move insns to be closer to the define_expands. On
11237         VSX systems, prefer the traditional form of FMA over the VSX
11238         version, since the traditional form allows the target not to
11239         overlap with the inputs.
11240         (fms<mode>4_fpr): Likewise.
11241         (nfma<mode>4_fpr): Likewise.
11242         (nfms<mode>4_fpr): Likewise.
11244 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11245             Richard Earnshaw  <richard.earnshaw@arm.com>
11247         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
11248         (struct mult_cost_table): Likewise.
11249         (struct mem_cost_table): Likewise.
11250         (struct fp_cost_table): Likewise.
11251         (struct vector_cost_table): Likewise.
11252         (cpu_cost_table): Likewise.
11253         * config/arm/arm.opt (mold-rts-costs): New option.
11254         (mnew-generic-costs): Likewise.
11255         * config/arm/arm.c (generic_extra_costs): New table.
11256         (cortexa15_extra_costs): Likewise.
11257         (arm_slowmul_tune): Use NULL as new costs.
11258         (arm_fastmul_tune): Likewise.
11259         (arm_strongarm_tune): Likewise.
11260         (arm_xscale_tune): Likewise.
11261         (arm_9e_tune): Likewise.
11262         (arm_v6t2_tune): Likewise.
11263         (arm_cortex_a5_tune): Likewise.
11264         (arm_cortex_a9_tune): Likewise.
11265         (arm_v6m_tune): Likewise.
11266         (arm_fa726te_tune): Likewise.
11267         (arm_cortex_a15_tune): Use cortex15_extra_costs.
11268         (arm_cortex_tune): Use generict_extra_costs.
11269         (shifter_op_p): New function.
11270         (arm_unspec_cost): Likewise.
11271         (LIBCALL_COST): Define.
11272         (arm_new_rtx_costs): New function.
11273         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
11274         table is available. Use old costs otherwise unless mnew-generic-costs
11275         is specified.
11276         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
11277         (cpu_cost_table): Declare.
11279 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11281         PR target/58460
11282         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
11283         (*subs_mul_imm_<mode>)
11284         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
11285         (*sub_<shift>_<mode>)
11286         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
11287         Remove k constraint.
11289 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
11291         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
11292         code.
11293         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
11295 2013-10-02  Teresa Johnson  <tejohnson@google.com>
11297         * predict.c (probably_never_executed): New function.
11298         (probably_never_executed_bb_p): Invoke probably_never_executed.
11299         (probably_never_executed_edge_p): Ditto.
11300         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11301         Treat profile insanities conservatively.
11303 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
11305         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
11307 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
11309         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
11310         use it.  Use smaller increase for scratch.  Don't increase reject
11311         for early clobber scratch.
11312         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
11313         setting eliminated regs except setting fp from hfp.
11314         (lra_eliminate): Check lra_insn_recog_data on NULL.
11316 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11318         PR target/58587
11319         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
11320         setting -mvsx-timode by default until the underlying problem is fixed.
11321         (RS6000_CPU, power7 defaults): Likewise.
11323 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11325         * config/x-linux (host-linux.o): Remove header dependencies.
11326         Use $(COMPILE) and $(POSTCOMPILE).
11327         * config/t-linux-android (linux-android.o): Ditto.
11329 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11331         * Makefile.in (expmed.o-warn): Remove.
11333 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11335         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
11336         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
11338 2013-10-02  Teresa Johnson  <tejohnson@google.com>
11340         * dojump.c (do_jump_1): Divide probability between
11341         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
11343 2013-10-02  Tom Tromey  <tromey@redhat.com>
11345         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
11347 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11349         * tree-flow.h: Remove some prototypes.
11350         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
11351         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
11352         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
11353         mark_virtual_phi_result_for_renaming): Relocate here.
11354         * tree-into-ssa.h: Add prototypes.
11355         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
11356         single_pred_before_succ_order.
11357         (blocks_in_phiopt_order): Rename and move to cfganal.c.
11358         (nonfreeing_call_p) Move to gimple.c.
11359         * cfganal.c (single_pred_before_succ_order): Move and renamed from
11360         tree-ssa-phiopt.c.
11361         * basic-block.h (single_pred_before_succ_order): Add prototype.
11362         * gimple.c (nonfreeing_call_p): Relocate here.
11363         * gimple.h: Add prototype.
11364         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
11365         * tree-ssa-dom.h: New file.  Relocate prototypes here.
11366         * tree-ssa.h: Include tree-ssa-dom.h.
11368 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11370         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
11371         Use $(COMPILE) and $(POSTCOMPILE).
11373         * config/alpha/x-alpha (driver-alpha.o): Ditto.
11375 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11377         * tree-flow.h: Remove some prototypes.
11378         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
11379         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
11380         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
11381         propagate_tree_value*): Move from here to...
11382         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
11383         propagate_tree_value*): Relocate here.
11384         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
11385         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
11386         * gimple-fold.c: Remove gimple-fold.h from include list.
11387         * tree-vrp.c: Remove gimple-fold.h from include list.
11388         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
11389         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
11390         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
11391         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
11392         * sese.c: Add tree-ssa-propagate.h to include list.
11394 2013-10-02  Richard Biener  <rguenther@suse.de>
11396         * tree-loop-distribution.c: Include tree-vectorizer.h for
11397         find_loop_location.
11398         (enum partition_kind): Remove PKIND_REDUCTION.
11399         (struct partition_s): Remove has_writes member, add reduction_p member.
11400         (partition_alloc): Adjust.
11401         (partition_builtin_p): Likewise.
11402         (partition_has_writes): Remove.
11403         (partition_reduction_p): New function.
11404         (partition_merge_into): Likewise.
11405         (generate_code_for_partition): Commonize builtin partition
11406         handling tail.
11407         (rdg_cannot_recompute_vertex_p): Remove.
11408         (already_processed_vertex_p): Likewise.
11409         (rdg_flag_vertex): Do not set has_writes.
11410         (classify_partition): Adjust.
11411         (rdg_build_partitions): Do not set has_writes, treat all
11412         partitions as useful.
11413         (distribute_loop): Record number of library calls generated.  Adjust.
11414         (tree_loop_distribution): Report number of loops and library
11415         calls generated as opt-info.
11417 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11419         * tree-flow.h: Include new .h files.  Move prototypes.
11420         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
11421         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
11422         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
11423         * tree-pretty-print.h: Add prototypes from tree-flow.h.
11424         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
11425         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
11426         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
11427         * tree.h (get_ref_base_and_extent): Move prototype out.
11428         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
11429         tree-dfa.h.
11430         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
11431         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
11432         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
11433         * tree-scalar-evolution.c: Include tree.h.
11434         * sese.c: Include tree.h.
11435         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
11436         * dwarf2out.c: Include tree-dfa.h.
11437         * tree-chrec.c: Include tree.h.
11438         * tree-data-ref.c: Include tree.h.
11440 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
11442         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
11443         Fix whitespace.
11445 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11447         * config/t-sol2 (sol2-c.o): Remove header dependencies.
11448         Use $(COMPILE) and $(POSTCOMPILE).
11449         (sol2-cxx.o): Likewise.
11450         (sol2-stubs.o): Likewise.
11451         (sol2.o): Likewise.
11452         * config/x-solaris (host-solaris.o): Likewise.
11454         * config/sparc/t-sparc (sparc.o): Remove.
11455         (sparc-c.o): Remove header dependencies.
11456         Use $(COMPILE) and $(POSTCOMPILE).
11457         * config/sparc/x-sparc: Likewise.
11459 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
11461         * config/arc/arc-opts.h: Add 2013 to Copyright years.
11462         * config/arc/arc700.md: Likewise.
11463         * config/arc/arc-modes.def: Likewise.
11464         * config/arc/arc-simd.h: Likewise.
11465         * config/arc/t-arc-uClibc: Likewise.
11466         * config/arc/t-arc-newlib: Likewise.
11468 2013-10-02  Renlin Li  <renlin.li@arm.com>
11470         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11471         plus_constant.
11472         (aarch64_expand_epilogue): Likewise.
11474 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11475             Yufeng Zhang  <yufeng.zhang@arm.com>
11477         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
11478         declaration.
11479         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
11480         'base_in' represent a conversion and legal_cast_p_1 holds; set
11481         'base_in' with the returned value from get_unwidened.
11483 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11485         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
11486         plus_constant is not used.
11488 2013-10-01  Wei Mi  <wmi@google.com>
11490         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
11491         * config/i386/i386.md: Add define_peephole2 to
11492         break partial reg stall for cvtss2sd/cvtsd2ss.
11494 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11496         * config/arc/arc.c (pass_arc_ifcvt::clone):
11497         Update for ctxt_ -> m_ctxt change.
11499 2013-10-01  Jeff Law  <law@redhat.com>
11501         * tree-ssa-threadupdate.c (struct redirection_data): Delete
11502         outgoing_edge and intermediate_edge fields.  Instead store the path.
11503         (redirection_data::hash): Hash on the last edge's destination index.
11504         (redirection_data::equal): Check the entire thread path.
11505         (lookup_redirectio_data): Corresponding changes.
11506         (create_edge_and_update_destination_phis): Likewise.
11507         (thread_single_edge): Likewise.
11509 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11510             Diego Novillo <dnovillo@google.com>
11512         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
11513         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
11514         (vld32wh_insn, vld32wl_insn): Delete commented-out old
11515         versions of these patterns.
11517         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
11518         (__builtin_arc_aligned): Likewise.
11520         * config/arc/arc.md: Expand adc_0 comment stating the intended
11521         purpose and why it isn't ready.
11522         Replace commented out call_value_via_label_mixed with a
11523         plain comment about bl_s.
11525         * config/arc/arc.c (stdio.h): Don't include directly.
11526         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
11527         Remove if (1) condition.
11528         (arc_encode_section_info): Fix comment.
11530 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11532         * config/arc/arc.c (arc_conditional_register_usage):
11533         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
11534         Also set reg_alloc_order for DMA config regs.
11536 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11537             Jeremy Bennett  <jeremy.bennett@embecosm.com>
11539         * doc/install.texi (--with-cpu): Mention ARC.
11540         (arc-*-elf32): New paragraph.
11541         (arc-linux-uclibc): Likewise.
11542         * doc/md.texi (Machine Constraints): Add ARC part.
11543         * doc/invoke.texi: (menu): Add ARC Options.
11544         (Machine Dependent Options) <ARC Options>: Add synopsis.
11545         (node ARC Options): Add.
11546         * doc/extend.texi (long_call / short_call attribute): Add ARC.
11547         (ARC Built-in Functions): New section defining
11548         generic ARC built-in functions.
11549         (ARC SIMD Built-in Functions): New section defining SIMD specific
11550         built-in functions.
11551         (Declaring Attributes of Functions): Extended
11552         description of short_call and long_call attributes for ARC and
11553         added index entries.
11555 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
11556             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
11557             Joern Rennecke  <joern.rennecke@embecosm.com>
11558             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
11559             Brendan Kehoe  <brendan@zen.org>
11560             Michael Eager  <eager@eagercon.com>
11561             Simon Cook  <simon.cook@embecosm.com>
11562             Jeremy Bennett  <jeremy.bennett@embecosm.com>
11564         * config/arc, common/config/arc: New directories.
11566 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11567             Brendan Kehoe  <brendan@zen.org>
11568             Simon Cook  <simon.cook@embecosm.com>
11570         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
11572 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
11574         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
11575         * tree-ssa-coalesce.h: New. Move prototype to here.
11576         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
11577         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
11578         (gimple_can_coalesce_p): Move to...
11579         * gimple.c (gimple_can_coalesce_p): Here.
11581 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
11583         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
11584         (dump_decl_set): Move to gimple.c.
11585         * gimple.h: Don't include tree-ssa-operands.h.
11586         (dump_decl_set): Add prototype.
11587         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
11588         Move to gimple-ssa.h.
11589         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
11590         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
11591         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
11592         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
11593         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
11594         than PHI_ARG_DEF.
11595         (dump_decl_set): Relocate here.
11596         * gimple-ssa.h: New file.
11597         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
11598         Relocate from gimple.h.
11599         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
11600         * tree-ssa-operands.c (swap_ssa_operands): Rename from
11601         swap_tree_operands and remove non-ssa path.
11602         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
11603         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
11604         swap_ssa_operands.
11605         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
11606         vect_is_simple_reduction_1): Use swap_ssa_operands.
11607         * tree-flow.h: Move various prototypes to tree-phinodes.h.
11608         (enum need_phi_state): Move to tree-into-ssa.c.
11609         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11610         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
11611         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
11612         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
11613         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11614         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11615         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11616         num_imm_uses): Move to ssa-iterators.h.
11617         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
11618         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
11619         tree-phinodes.h.
11620         (op_iter_done, op_iter_next_def, op_iter_next_tree,
11621         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
11622         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
11623         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
11624         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
11625         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
11626         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
11627         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
11628         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
11629         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
11630         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
11631         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
11632         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
11633         (set_phi_nodes): Move to tree-phinodes.h.
11634         * tree-ssa-operands.h (enum ssa_op_iter_type,
11635         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
11636         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
11637         (dump_decl_set): Remove prototype.
11638         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
11639         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
11640         (set_phi_nodes): Relocate from tree-flow-inline.h.
11641         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
11642         tree-flow-inline.h
11643         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
11644         include list.  Temporarily add gimple.h to include list.
11645         * ssa-iterators.h: New file.
11646         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11647         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
11648         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
11649         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
11650         Relocate from tree-ssa-operands.h.
11651         (delink_imm_use, link_imm_use_to_list, link_imm_use,
11652         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11653         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11654         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11655         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
11656         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
11657         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
11658         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
11659         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
11660         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
11661         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
11662         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
11663         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
11664         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
11665         Relocate from tree-flow-inline.h.
11666         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
11668 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
11670         * aarch64-simd.md
11671         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
11672         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
11673         Insert '\t' to output template.
11674         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
11675         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
11676         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
11677         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
11679 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
11681         * doc/install.texi (Host/target specific installation notes for GCC):
11682         Put @anchor before @heading.
11683         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
11684         Use @email for email addresses.
11686 2013-10-01  Jeff Law  <law@redhat.com>
11688         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
11689         a vec.  Only delete the path if we create one without successfully
11690         registering a jump thread.
11691         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
11692         as a pointer.
11693         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
11694         (paths): New vector of jump threading paths.
11695         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
11696         (THREAD_PATH): New accessor macro for the entire thread path.
11697         (lookup_redirection_data): Get intermediate and final outgoing edge
11698         from the thread path.
11699         (create_edge_and_update_destination_phis): Copy the threading path.
11700         (ssa_fix_duplicate_block_edges): Get edges and block types from the
11701         jump threading path.
11702         (ssa_redirect_edges): Get edges and block types from the jump threading
11703         path.  Free the path vector.
11704         (thread_block): Get edges from the jump threading path.  Look at the
11705         entire path to see if we thread to a loop exit.  If we cancel a jump
11706         thread request, then free the path vector.
11707         (thread_single_edge): Get edges and block types from the jump threading
11708         path.  Free the path vector.
11709         (thread_through_loop_header): Get edges and block types from the jump
11710         threading path.  Free the path vector.
11711         (mark_threaded_blocks): Iterate over the vector of paths and store
11712         the path on the appropriate edge.  Get edges and block types from the
11713         jump threading path.
11714         (mark_threaded_blocks): Get edges and block types from the jump
11715         threading path.  Free the path vector.
11716         (thread_through_all_blocks): Use the vector of paths rather than
11717         a vector of 3-edge sets.
11718         (register_jump_thread): Accept pointer to a path vector rather
11719         than the path vector itself.  Store the path vector for later use.
11720         Simplify.
11722 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
11723             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11725         PR target/58574
11726         * config/s390/s390.c (s390_split_branches): Modify check for table
11727         jump insns.
11728         (s390_chunkify_start): Rearrange table jump insn check in order to
11729         deal with compare and branch insns correctly.
11731 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
11733         PR target/58578
11734         Revert
11735         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
11736         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
11737         define_insn_and_split.
11738         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
11739         (shiftsi3_compare): New pattern.
11740         (rrx): New pattern.
11741         * config/arm/unspecs.md (UNSPEC_RRX): New.
11743 2013-10-01  Alan Modra  <amodra@gmail.com>
11745         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
11746         casing inout operands.
11748 2013-10-01  Richard Biener  <rguenther@suse.de>
11750         PR tree-optimization/58553
11751         * tree-loop-distribution.c (struct partition_s): Add niter member.
11752         (classify_partition): Populate niter member for the partition
11753         and properly identify whether the relevant store happens before
11754         or after the loop exit.
11755         (generate_memset_builtin): Use niter member from the partition.
11756         (generate_memcpy_builtin): Likewise.
11758 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
11760         * vec.h (vec_prefix, vec): Prefix member names with "m_".
11761         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
11763 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
11765         * basic-block.h (edge_list): Prefix member names with "m_".
11766         * context.h (context): Likewise.
11767         * domwalk.h (dom_walker): Likewise.
11768         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
11769         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
11770         * hash-table.h (hash_table): Likewise.
11771         * machmode.h (bit_field_mode_iterator): Likewise.
11772         * pass_manager.h (pass_list): Likewise.
11773         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
11774         * tree-pass.h (pass_data): Likewise.
11775         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
11776         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
11777         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
11778         * asan.c (pass_data_asan): Update accordingly.
11779         * cfganal.c (control_dependences::find_control_dependence): Likewise.
11780         (control_dependences::control_dependences): Likewise.
11781         (control_dependences::~control_dependences): Likewise.
11782         (control_dependences::~control_dependences): Likewise.
11783         (control_dependences::get_edges_dependent_on): Likewise.
11784         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
11785         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
11786         * context.c (gcc::context::context): Likewise.
11787         * cprop.c (pass_rtl_cprop::clone): Likewise.
11788         * domwalk.c (dom_walker::walk): Likewise.
11789         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
11790         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
11791         * mode-switching.c (pass_mode_switching::clone): Likewise.
11792         * passes.c (opt_pass::opt_pass): Likewise.
11793         (pass_manager::pass_manager): Likewise.
11794         * predict.c (pass_strip_predict_hints::clone): Likewise.
11795         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
11796         (pass_split_all_insns::clone): Likewise.
11797         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
11798         Likewise.
11799         (bit_field_mode_iterator::next_mode): Likewise.
11800         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
11801         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
11802         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
11803         * tree-complex.c (pass_lower_complex::clone): Likewise.
11804         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
11805         * tree-object-size.c (pass_object_sizes::clone): Likewise.
11806         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
11807         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
11808         (pass_fold_builtins::clone): Likewise.
11809         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
11810         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
11811         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
11812         (pass_cd_dce::clone): Likewise.
11813         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
11814         (pass_phi_only_cprop::clone): Likewise.
11815         * tree-ssa-dse.c (pass_dse::clone): Likewise.
11816         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
11817         * tree-ssa-loop.c (pass_lim::clone): Likewise.
11818         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
11819         * tree-ssa-pre.c (pass_fre::clone): Likewise.
11820         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
11821         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
11822         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
11823         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
11824         * tree-vrp.c (pass_vrp::clone): Likewise.
11825         * tsan.c (pass_tsan::clone): Likewise.
11827 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
11829         PR middle-end/58564
11830         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
11831         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
11833         PR middle-end/58564
11834         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
11835         optimization, punt if sign_bit_p looked through any zero extension.
11837 2013-09-30  Teresa Johnson  <tejohnson@google.com>
11839         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
11840         Update redirected out edge count in joiner case.
11841         (ssa_redirect_edges): Common the joiner and non-joiner cases
11842         so that joiner case gets profile updates.
11844 2013-09-30  Richard Biener  <rguenther@suse.de>
11846         PR tree-optimization/58554
11847         * tree-loop-distribution.c (classify_partition): Require
11848         unconditionally executed stores for memcpy and memset recognition.
11849         (tree_loop_distribution): Calculate dominance info.
11851 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
11853         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
11854         (NO_PROFILE_COUNTERS): Likewise.
11855         (PROFILE_HOOK): Likewise.
11856         (FUNCTION_PROFILER): Likewise.
11857         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
11859 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
11861         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
11862         calls and defines in TARGET_MACHO conditional.
11863         (load_macho_picbase_di): Likewise.
11864         (reload_macho_picbase): Likewise.
11865         (reload_macho_picbase_si): Likewise.
11866         (reload_macho_picbase_di): Likewise.
11867         (nonlocal_goto_receiver): Likewise.
11869 2013-09-30  Nick Clifton  <nickc@redhat.com>
11871         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
11872         that use the MSP430X ISA.
11873         (msp430_option_override): Scan -mmcu command line option for any
11874         MCU name that supports the MSP430X ISA.
11875         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
11876         -mmcu options which enable the MSP430X ISA.
11878 2013-09-30  Richard Biener  <rguenther@suse.de>
11880         PR middle-end/58532
11881         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
11882         before looking for setjmp-like calls.
11884 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11886         PR target/10901
11887         * config/darwin-protos.h (machopic_get_function_picbase): New.
11888         * config/darwin.c (machopic_get_function_picbase): New.
11889         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
11890         label for a new func.  (load_macho_picbase_di): Likewise.
11891         (reload_macho_picbase): New expand.
11892         (reload_macho_picbase_si): New insn.
11893         (reload_macho_picbase_di): New insn.
11894         (nonlocal_goto_receiver): New define and split.
11895         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
11896         (unspecv enum): Add UNSPECV_NLGR.
11898 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11900         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
11901         that altivec registers are correctly sized on Darwin.
11903 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11905         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
11906         darwin-driver.o): Use COMPILE and POSTCOMPILE.
11907         * config/x-darwin (host-darwin.o): Likewise.
11908         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
11909         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
11910         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
11912 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
11914         * doc/invoke.texi: Fix usage of @tie{} command.
11916 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
11918         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
11920 2013-09-28  Jan Hubicka  <jh@suse.cz>
11922         * config/i386/x86-tune.def: Add documentation for each of the options;
11923         add whitespace.
11925 2013-09-28  Jan Hubicka  <jh@suse.cz>
11927         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
11928         generic.
11929         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
11930         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
11931         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
11932         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
11933         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
11935 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
11937         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
11938         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
11939         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
11940         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
11941         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
11942         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
11943         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
11944         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
11945         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
11946         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
11947         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
11948         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
11949         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
11950         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
11951         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
11952         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
11953         gimple.h, godump.c, graphite-clast-to-gimple.c,
11954         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
11955         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
11956         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
11957         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
11958         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
11959         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
11960         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
11961         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
11962         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
11963         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
11964         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
11965         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
11966         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
11967         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
11968         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
11969         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
11970         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
11971         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
11972         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
11973         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
11974         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
11975         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
11976         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
11977         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
11978         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11979         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11980         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
11981         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
11982         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11983         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11984         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11985         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
11986         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
11987         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
11988         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
11989         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
11990         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
11991         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
11992         whitespace before "(".
11994 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
11996         * expr.h (extract_bit_field): Remove packedp parameter.
11997         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
11998         from forward declaration.
11999         (store_split_bit_field): Remove packedp arg from calls to
12000         extract_fixed_bit_field.
12001         (extract_bit_field_1): Remove packedp parameter and packedp
12002         argument from recursive calls and calls to extract_fixed_bit_field.
12003         (extract_bit_field): Remove packedp parameter and corresponding
12004         arg to extract_bit_field_1.
12005         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
12006         to issue warnings.
12007         (extract_split_bit_field): Remove packedp arg from call to
12008         extract_fixed_bit_field.
12009         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
12010         (copy_blkmode_from_reg): Likewise.
12011         (copy_blkmode_to_reg): Likewise.
12012         (read_complex_part): Likewise.
12013         (store_field): Likewise.
12014         (expand_expr_real_1): Likewise.
12015         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
12016         to extract_bit_field.
12017         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
12018         call to extract_bit_field.
12019         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
12020         call to extract_bit_field.
12021         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
12022         and special packedp behavior from -fstrict-volatile-bitfields
12023         documentation.
12025 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12027         * lra-eliminations.c (init_elim_table): Guard value_p.
12029 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
12031         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
12032         DFmode, DImode, and SFmode in the upper VSX registers based on the
12033         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
12034         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
12035         of the VSX register handling.
12037         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
12038         (f32_sv): Likewise.
12039         (zero_extendsidi2_lfiwzx): Add support for loading into the
12040         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
12041         only do VSX memory options on Altivec registers.
12042         (extendsidi2_lfiwax): Likewise.
12043         (extendsfdf2_fpr): Likewise.
12044         (mov<mode>_hardfloat, SF/SD modes): Likewise.
12045         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
12046         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
12047         (movdi_internal64): Likewise.
12049 2013-09-27  Xinliang David Li  <davidxl@google.com>
12051         * opts.c (finish_options): Adjust parameters
12052         according to vect cost model.
12053         (common_handle_option): Set dynamic vect cost
12054         model for FDO.
12055         targhooks.c (default_add_stmt_cost): Compute stmt cost
12056         unconditionally.
12057         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12058         Use helper function.
12059         * tree-vectorizer.h (unlimited_cost_model): New function.
12060         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
12061         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
12062         function.
12063         (vect_enhance_data_refs_alignment): Ditto.
12064         * flag-types.h: New enum.
12065         * common/config/i386/i386-common.c (ix86_option_init_struct):
12066         No need to initialize vect_cost_model flag.
12067         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
12068         unconditionally.
12070 2013-09-27  Diego Novillo  <dnovillo@google.com>
12072         * gimple.h (enum ssa_mode): Remove.
12074 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
12076         * cfgloop.h (number_of_loops): Fix typo in check for null.
12078 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
12080         PR middle-end/58551
12081         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
12082         are children of outermost saved_cfun's loop, and set it up to
12083         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
12084         if loop != loop0 and SESE region contains bbs that belong to loop0.
12086 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
12088         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
12089         (binary_scale_code_p, get_base_term, get_index_term): New functions.
12090         (set_address_segment, set_address_base, set_address_index)
12091         (set_address_disp): Accept the argument unconditionally.
12092         (baseness): Remove must_be_base_p and must_be_index_p checks.
12093         (decompose_normal_address): Classify as much as possible in the
12094         main loop.
12096 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
12098         * cse.c (count_reg_usage): Handle INT_LIST.
12099         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
12100         * reginfo.c (reg_scan_mark_refs): Likewise.
12101         * reload1.c (eliminate_regs_1): Likewise.
12103 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
12105         PR middle-end/58547
12106         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
12107         signed.
12109 2013-09-27  Richard Biener  <rguenther@suse.de>
12111         PR tree-optimization/58459
12112         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
12113         restriction not propagating into loops.
12115 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
12117         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
12118         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
12119         * doc/tree-ssa.texi (Walking use-def chains): Delete.
12121 2013-09-26  Richard Biener  <rguenther@suse.de>
12123         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
12125 2013-09-26  Richard Biener  <rguenther@suse.de>
12127         * alias.h (component_uses_parent_alias_set): Rename to ...
12128         (component_uses_parent_alias_set_from): ... this.
12129         * alias.c (component_uses_parent_alias_set): Rename to ...
12130         (component_uses_parent_alias_set_from): ... this and return
12131         the desired parent.
12132         (reference_alias_ptr_type_1): Use the result from
12133         component_uses_parent_alias_set_from instead of stripping
12134         components one at a time.
12135         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
12137 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
12139         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
12140         Move prototypes to...
12141         * tree-ssa-ter.h: New File.  Move prototypes here.
12142         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
12143         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
12144         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
12145         from is_replaceable_p.
12146         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
12147         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
12148         (process_replaceable): Use ter_is_replaceable_p.
12149         (find_replaceable_in_bb): Use ter_is_replaceable_p.
12150         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
12151         newly refactored ssa_is_replaceable_p.
12152         * cfgexpand.c: Include tree-outof-ssa.h.
12153         * ssaexpand.h: Delete.
12155 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
12157         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
12158         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
12159         tree-ssa.c
12160         (create_gimple_tmp): Delete.
12161         (get_expr_type, build_assign, build_type_cast): Move to...
12162         * gimple-builder.c: New File.
12163         (get_expr_type): Relocate from gimple.c.
12164         (build_assign, build_type_cast): Change to only create ssanames.
12165         * gimple.h: Move prototypes to...
12166         * gimple-builder.h: New File. Here.
12167         * tree-ssa.h: And here.
12168         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
12169         count_uses_and_derefs): Relocate from gimple.c.
12170         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
12171         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
12172         * tree-ssa-math-opts (execute_cse_reciprocals): Use
12173         gimple_replace_ssa_lhs.
12174         * asan.c: Include gimple-builder.h.
12175         * Makefile.in: Add gimple-builder.o.
12177 2013-09-26  Richard Biener  <rguenther@suse.de>
12179         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
12180         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
12181         (loe_visit_block): Use gcc_checking_assert.
12182         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
12183         gimple_assign_ssa_name_copy_p.
12184         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
12185         change.
12187 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
12189         * config/rs6000/t-rs6000 (rs6000.o): Remove.
12190         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
12192 2013-09-26  Richard Biener  <rguenther@suse.de>
12194         PR tree-optimization/58539
12195         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
12196         the fact that debug statements are not taking part in loop-closed
12197         SSA construction.
12199 2013-09-26  Nick Clifton  <nickc@redhat.com>
12201         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
12202         time warning message.
12203         (msp430_print_operand_raw): Delete unused letter parameter.
12204         (TARGET_PRINT_OPERAND_ADDRESS): Define.
12205         (msp430_print_operand_address): New function.
12206         (msp430_print_operand): Move address printing code from here to
12207         new function.
12208         * config/msp430/msp430.md (movsipsi2): Add comment in generated
12209         assembler.
12210         (zero_extendpsisi2): Likewise.
12211         (extendpsisi2): New pattern.
12212         (andneghi3): New pattern.
12214 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
12216         * config/aarch64/aarch64.opt (mlra): New option.
12217         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
12218         (TARGET_LRA_P): Define.
12220 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
12222         * expr.c (expand_assignment): Remove obsolete comment.
12224 2013-09-25  Jeff Law  <law@redhat.com>
12226         * tree-flow.h (thread_through_all_blocks): Prototype moved into
12227         tree-ssa-threadupdate.h.
12228         (register_jump_thread): Similarly.
12229         * tree-ssa-threadupdate.h: New header file.
12230         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
12231         * tree-vrp.c: Likewise.
12232         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
12233         (thread_around_empty_blocks): Change type of path vector argument to
12234         an edge,type pair from just an edge.  Initialize both elements when
12235         appending to a jump threading path.  Tweak references to elements
12236         appropriately.
12237         (thread_across_edge): Similarly.  Release memory for the elements
12238         as needed.
12239         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
12240         (dump_jump_thread_path): New function broken out from
12241         register_jump_thread.
12242         (register_jump_thread): Use dump_jump_thread_path.  Change type of
12243         path vector entries.  Search the path for NULL edges and dump
12244         the path if one is found.  Tweak the conversion of path to 3-edge
12245         form to use the block copy type information embedded in the path.
12247 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
12249         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
12251 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
12252             Vladimir Makarov  <vmakarov@redhat.com>
12254         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
12255         from the least significant bit.
12256         (strip_address_mutations): Add bitfield operations handling.
12257         (must_be_index_p): Add shifting and rotate operations handling.
12258         (set_address_base): Use must_be_base_p predicate.
12259         (set_address_index): Use must_be_index_p predicate.
12261 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12262             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12263             Sergey Lega  <sergey.s.lega@intel.com>
12264             Anna Tikhonova  <anna.tikhonova@intel.com>
12265             Ilya Tocar  <ilya.tocar@intel.com>
12266             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12267             Ilya Verbin  <ilya.verbin@intel.com>
12268             Kirill Yukhin  <kirill.yukhin@intel.com>
12269             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12271         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12272         Use new names.
12273         (ix86_expand_vector_move_misalign): Support new unaligned load and
12274         stores and use new names.
12275         (CODE_FOR_sse2_storedqu): Rename to ...
12276         (CODE_FOR_sse2_storedquv16qi): ... this.
12277         (CODE_FOR_sse2_loaddqu): Rename to ...
12278         (CODE_FOR_sse2_loaddquv16qi): ... this.
12279         (CODE_FOR_avx_loaddqu256): Rename to ...
12280         (CODE_FOR_avx_loaddquv32qi): ... this.
12281         (CODE_FOR_avx_storedqu256): Rename to ...
12282         (CODE_FOR_avx_storedquv32qi): ... this.
12283         * config/i386/i386.md (fpint_logic): New.
12284         * config/i386/sse.md (VMOVE): Extend for AVX512.
12285         (VF): Ditto.
12286         (VF_128_256): New.
12287         (VF_512): Ditto.
12288         (VI_UNALIGNED_LOADSTORE): Ditto.
12289         (sse2_avx_avx512f): Ditto.
12290         (sse2_avx2): Extend for AVX512.
12291         (sse4_1_avx2): Ditto.
12292         (avx2_avx512f): New.
12293         (sse): Extend for AVX512.
12294         (sse2): Ditto.
12295         (sse4_1): Ditto.
12296         (avxsizesuffix): Ditto.
12297         (sseintvecmode): Ditto.
12298         (ssePSmode): Ditto.
12299         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
12300         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
12301         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12302         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
12303         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12304         (<sse2_avx_avx512f>_storedqu<mode): ... this.
12305         (<sse>_movnt<mode>): Replace constraint "x" with "v".
12306         (STORENT_MODE): Extend for AVX512.
12307         (*absneg<mode>2): Replace constraint "x" with "v".
12308         (*mul<mode>3): Ditto.
12309         (*ieee_smin<mode>3): Ditto.
12310         (*ieee_smax<mode>3): Ditto.
12311         (avx_cmp<mode>3): Replace VF with VF_128_256.
12312         (*<sse>_maskcmp<mode>3_comm): Ditto.
12313         (<sse>_maskcmp<mode>3): Ditto.
12314         (<sse>_andnot<mode>3): Extend for AVX512.
12315         (<code><mode>3, anylogic): Replace VF with VF_128_256.
12316         (<code><mode>3, fpint_logic): New.
12317         (*<code><mode>3): Extend for AVX512.
12318         (avx512flogicsuff): New.
12319         (avx512f_<logic><mode>): Ditto.
12320         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
12321         VF_128_256.
12322         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
12323         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
12324         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
12325         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
12326         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
12327         (xop_vpermil2<mode>3): Ditto.
12328         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
12329         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
12330         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
12331         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
12333 2013-09-25  Tom Tromey  <tromey@redhat.com>
12335         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
12336         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
12337         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
12338         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
12339         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
12340         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
12341         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
12342         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
12343         (GRAPHITE_HTAB_H): Remove.
12345 2013-09-25  Tom Tromey  <tromey@redhat.com>
12347         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
12349 2013-09-25  Tom Tromey  <tromey@redhat.com>
12351         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
12353 2013-09-25  Tom Tromey  <tromey@redhat.com>
12355         * config/i386/t-i386 (i386.o): Remove.
12356         (i386-c.o): Use COMPILE and POSTCOMPILE.
12358 2013-09-25  Tom Tromey  <tromey@redhat.com>
12360         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
12362 2013-09-25  Tom Tromey  <tromey@redhat.com>
12364         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
12365         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
12366         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
12367         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
12368         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
12369         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
12370         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
12371         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
12372         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
12373         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
12374         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
12375         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
12376         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
12377         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
12378         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
12379         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
12380         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
12381         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
12382         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
12383         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
12384         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
12385         (tree-ssa-pre.o, tree-ssa-sccvn.o)
12386         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
12387         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
12388         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
12389         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
12390         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
12391         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
12392         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
12393         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
12394         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
12395         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
12396         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
12397         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
12398         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
12399         (graphite-clast-to-gimple.o, graphite-dependences.o)
12400         (graphite-interchange.o, graphite-poly.o)
12401         (graphite-scop-detection.o, graphite-sese-to-poly.o)
12402         (graphite-optimize-isl.o, tree-vect-loop.o)
12403         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
12404         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
12405         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
12406         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
12407         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
12408         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
12409         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
12410         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
12411         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
12412         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
12413         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
12414         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
12415         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
12416         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
12417         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
12418         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
12419         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
12420         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
12421         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
12422         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
12423         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
12424         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
12425         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
12426         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
12427         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
12428         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
12429         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
12430         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
12431         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
12432         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
12433         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
12434         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
12435         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
12436         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
12437         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
12438         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
12439         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
12440         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
12441         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
12442         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
12443         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
12444         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
12445         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
12446         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
12447         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
12448         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
12449         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
12450         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
12451         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
12452         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
12453         (gcov-dump.o): Remove.
12454         (default-c.o): Use COMPILE and POSTCOMPILE.
12455         (CFLAGS-gcc.o): New variable.
12456         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
12458 2013-09-25  Tom Tromey  <tromey@redhat.com>
12460         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
12461         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
12462         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
12463         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
12464         (c-family/c-pragma.o, c-family/c-pretty-print.o)
12465         (c-family/c-semantics.o, c-family/c-ada-spec.o)
12466         (c-family/array-notation-common.o, c-family/stub-objc.o)
12467         (c-family/c-ubsan.o): Remove.
12469 2013-09-25  Tom Tromey  <tromey@redhat.com>
12471         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
12473 2013-09-25  Tom Tromey  <tromey@redhat.com>
12475         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
12476         to add -DENABLE_SHARED_LIBGCC.
12477         (gcc.o): Don't use subshell.
12479 2013-09-25  Tom Tromey  <tromey@redhat.com>
12481         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
12482         * configure.ac: Don't invoke AM_PROG_CC_C_O.
12483         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
12484         * configure, config.in: Rebuild.
12486 2013-09-25  Tom Tromey  <tromey@redhat.com>
12488         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
12489         (COMPILE, POSTCOMPILE): New variables.
12490         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
12491         (DEPFILES): New variable.
12492         Include ".Po" files.
12493         * configure.ac: Add checks for dependency checking.
12494         * configure, aclocal.m4: Regenerate.
12496 2013-09-25  Tom Tromey  <tromey@redhat.com>
12498         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
12499         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
12501 2013-09-25  Tom Tromey  <tromey@redhat.com>
12503         * Makefile.in (generated_files): Add options.h,
12504         target-hooks-def.h, insn-opinit.h,
12505         common/common-target-hooks-def.h, pass-instances.def,
12506         c-family/c-target-hooks-def.h.
12508 2013-09-25  Jeff Law  <law@redhat.com>
12510         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
12511         than foo[foo.length () - 1] to access last member in a vec.
12512         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
12514 2013-09-25  Richard Biener  <rguenther@suse.de>
12516         PR middle-end/58521
12517         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
12519 2013-09-25  Jan Hubicka  <jh@suse.cz>
12521         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
12522         test.
12524 2013-09-25  Marek Polacek  <polacek@redhat.com>
12526         PR sanitizer/58420
12527         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
12528         when determining the type name.
12530 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
12532         * config/sh/sh.md: Fix formatting.
12534 2013-09-24  Xinliang David Li  <davidxl@google.com>
12536         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
12537         max peel iterations parameter.
12538         * param.def: New parameter.
12539         * doc/invoke.texi: Document New parameter.
12541 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
12543         * gimple-pretty-print.c: Various whitespace tweaks.
12544         * tree-core.h: Likewise.
12545         * tree-pretty-print.c: Likewise.
12546         * tree-ssa-alias.c: Likewise.
12547         * tree-ssa-copy.c: Likewise.
12548         * tree-ssanames.c: Likewise.
12549         * tree-ssanames.h: Likewise.
12550         * tree-vrp.c: Likewise.
12552 2013-09-24  Alan Modra  <amodra@gmail.com>
12554         PR middle-end/57134
12555         PR middle-end/57586
12556         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
12557         for output operands that disallow regs.  Don't use EXPAND_WRITE on
12558         inout operands.
12560 2013-09-24  Richard Biener  <rguenther@suse.de>
12562         PR middle-end/58513
12563         * tree.c (reference_alias_ptr_type): Move ...
12564         * alias.c (reference_alias_ptr_type): ... here and implement
12565         in terms of the new reference_alias_ptr_type_1.
12566         (ref_all_alias_ptr_type_p): New helper.
12567         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
12568         use ref_all_alias_ptr_type_p.
12569         (get_deref_alias_set): Add flag_strict_aliasing check here.
12570         (reference_alias_ptr_type_1): New function, split out from ...
12571         (get_alias_set): ... here.
12572         (alias_ptr_types_compatible_p): New function.
12573         * alias.h (reference_alias_ptr_type): Declare.
12574         (alias_ptr_types_compatible_p): Likewise.
12575         * tree.h (reference_alias_ptr_type): Remove.
12576         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
12577         to compare MEM_REF alias types.
12579 2013-09-24  Richard Biener  <rguenther@suse.de>
12581         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
12583 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12585         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
12586         reload helper function arrays into a single array reg_addr.
12587         (reload_fpr_gpr): Likewise.
12588         (reload_gpr_vsx): Likewise.
12589         (reload_vsx_gpr): Likewise.
12590         (struct rs6000_reg_addr): Likewise.
12591         (reg_addr): Likewise.
12592         (rs6000_debug_reg_global): Change rs6000_vector_reload,
12593         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
12594         (rs6000_init_hard_regno_mode_ok): Likewise.
12595         (rs6000_secondary_reload_direct_move): Likewise.
12596         (rs6000_secondary_reload): Likewise.
12598         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
12599         constraints: wu, ww, and wy.  Repurpose wv constraint added during
12600         power8 changes.  Put wg constraint in alphabetical order.
12602         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
12603         for future work to add ISA 2.07 VSX single precision support.
12604         (-mvsx-scalar-double): Change default from -1 to 1, update
12605         documentation comment.
12606         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
12607         (-mupper-regs-df): New debug switch to control whether DF values
12608         can go in the traditional Altivec registers.
12609         (-mupper-regs-sf): New debug switch to control whether SF values
12610         can go in the traditional Altivec registers.
12612         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
12613         and wy constraints.
12614         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
12615         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
12616         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
12617         (rs6000_debug_legitimate_address_p): Print if we are running
12618         before, during, or after reload.
12619         (rs6000_secondary_reload): Add a comment.
12620         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
12622         * config/rs6000/constraints.md (wa constraint): Sort w<x>
12623         constraints.  Update documentation string.
12624         (wd constraint): Likewise.
12625         (wf constraint): Likewise.
12626         (wg constraint): Likewise.
12627         (wn constraint): Likewise.
12628         (ws constraint): Likewise.
12629         (wt constraint): Likewise.
12630         (wx constraint): Likewise.
12631         (wz constraint): Likewise.
12632         (wu constraint): New constraint for ISA 2.07 SFmode scalar
12633         instructions.
12634         (ww constraint): Likewise.
12635         (wy constraint): Likewise.
12636         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
12637         in the previous submissions.
12638         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
12640 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
12642         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
12643         (REG_BR_PROB): Say that the probability is stored in an int_list.
12644         * reg-notes.def: Update commentary to mention INT_LIST.
12645         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
12646         (INT_LIST): New rtx.
12647         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
12648         * rtlanal.c (int_reg_note_p): New function.
12649         (alloc_reg_note): Assert that the note does not have an int argument.
12650         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
12651         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
12652         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
12653         rather than an INSN_LIST.  Handle INT_LIST.
12654         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
12655         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
12656         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
12657         Manipulate them as ints rather than rtxes.
12658         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
12659         * regmove.c (copy_src_to_dest): Likewise.
12660         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
12662         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
12663         into the cases that need it.
12664         * config/arm/arm.c (arm_unwind_emit): Likewise.
12666         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
12667         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
12668         * loop-doloop.c (add_test, doloop_modify): Likewise.
12669         * loop-unswitch.c (compare_and_jump_seq): Likewise.
12670         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
12671         * predict.c (combine_predictions_for_insn): Likewise.
12672         * print-rtl.c (print_rtx): Handle INT_LIST.
12673         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
12674         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
12675         * config/arm/arm.c (emit_unlikely_jump): Likewise.
12676         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
12677         (ix86_split_fp_branch, predict_jump): Likewise.
12678         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
12679         * config/sh/sh.c (expand_cbranchsi4): Likewise.
12680         * config/spu/spu.c (ea_load_store_inline): Likewise.
12682         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
12683         value of a REG_BR_PROB note.
12684         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12685         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
12686         * emit-rtl.c (try_split): Likewise.
12687         * predict.c (br_prob_note_reliable_p): Likewise.
12688         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
12689         * reorg.c (mostly_true_jump): Likewise.
12690         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
12691         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
12692         * config/i386/i386.c (ix86_print_operand): Likewise.
12693         * config/ia64/ia64.c (ia64_print_operand): Likewise.
12694         * config/mmix/mmix.c (mmix_print_operand): Likewise.
12695         * config/rs6000/rs6000.c (output_cbranch): Likewise.
12696         * config/s390/s390.c (s390_expand_tbegin): Likewise.
12697         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
12698         * config/sparc/sparc.c (output_cbranch): Likewise.
12699         * config/spu/spu.c (get_branch_target): Likewise.
12700         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
12701         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
12703 2013-09-23  Jan Hubicka  <jh@suse.cz>
12705         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
12706         for ipa-devirt.
12707         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
12708         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
12709         of external calls
12710         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
12711         (gimple_fold_call): Dump inconsistent devirtualizations; add
12712         sanity check for type based devirtualizations.
12713         * ipa-prop.c: Include ipa-utils.h
12714         (ipa_intraprocedural_devirtualization): Add sanity check.
12715         (try_make_edge_direct_virtual_call): Likewise.
12717 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
12719         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
12720         assignment statements.
12722 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
12724         * gimple-pretty-print.c (dump_ssaname_info): New function.
12725         (dump_gimple_phi): Call it.
12726         (pp_gimple_stmt_1): Likewise.
12727         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
12728         (range_info_def): Declare.
12729         * tree-pretty-print.c (pp_double_int): New function.
12730         (dump_generic_node): Call it.
12731         * tree-pretty-print.h (pp_double_int): Declare.
12732         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
12733         * tree-ssanames.h (range_info_def): New structure.
12734         (value_range_type): Move definition here.
12735         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
12736         Declare.
12737         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
12738         initialization.
12739         (set_range_info): New function.
12740         (get_range_info): Likewise.
12741         (duplicate_ssa_name_range_info): Likewise.
12742         (duplicate_ssa_name_fn): Check pointer type and call
12743         duplicate_ssa_name_range_info.
12744         * tree-ssa-copy.c (fini_copy_prop): Likewise.
12745         * tree-vrp.c (value_range_type): Remove definition, now in
12746         tree-ssanames.h.
12747         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
12748         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
12749         (SSA_NAME_RANGE_INFO): New macro.
12751 2013-09-23  Richard Biener  <rguenther@suse.de>
12753         PR tree-optimization/58464
12754         * tree-ssa-pre.c (phi_trans_lookup): Remove.
12755         (phi_trans_add): Change to add conditionally on being not present.
12756         (phi_translate_1): Remove recursion detection here.
12757         (phi_translate): Pre-seed the cache with NULL to catch
12758         recursion here in a more generic way.
12759         (bitmap_find_leader): Adjust comment.
12760         (get_representative_for): Dump value-numbers.
12761         (create_expression_by_pieces): Likewise.
12762         (insert_into_preds_of_block): Likewise.
12764 2013-09-23  Christian Bruel  <christian.bruel@st.com>
12766         PR target/58475
12767         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
12768         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
12770 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
12772         Revert r202780:
12773         2013-09-20  Renlin Li  <renlin.li@arm.com>
12775         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12776         plus_constant.
12777         (aarch64_expand_epilogue): Likewise.
12778         (aarch64_legitimize_reload_address): Likewise.
12780 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
12782         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
12783         NULL_TREE before pushing them onto the vector.  Likewise for labels.
12785 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
12787         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
12788         comparison operators when -fno-trapping-math is in effect.
12789         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
12790         comparison operators in TFmode and assert that unsupported operators
12791         cannot reach here.
12792         (ia64_print_operand): Likewise.
12794 2013-09-21  Jan Hubicka  <jh@suse.cz>
12796         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
12797         (sse_typeless_stores): Enable for core
12798         (sse_load0_by_pxor): Likewise.
12799         (four_jump_limit): Disable for core.
12800         (pad_returns): Likewise.
12801         (avoid_vector_decode): Likewise.
12802         (fuse_cmp_and_branch): Enable for cores.
12803         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
12805 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
12807         PR middle-end/56791
12808         * config/pa/pa.c (pa_option_override): Disable auto increment and
12809         decrement instructions until reload is completed.
12811         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
12812         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
12813         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12815 2013-09-20  DJ Delorie  <dj@redhat.com>
12816             Nick Clifton  <nickc@redhat.com>
12818         * config/rl78/rl78.c: Various whitespace and comment tweaks.
12819         (need_to_save): Save bank 0 on interrupts.
12820         (characterize_address): Strip far address wrappers.
12821         (rl78_as_legitimate_address): Likewise.
12822         (transcode_memory_rtx): Likewise.
12823         (rl78_peep_movhi_p): Disable this peephole after devirt.
12824         (rl78_propogate_register_origins): Forget all origins when a
12825         CLOBBER is seen.
12826         * config/rl78/rl78-virt.md: Various whitespace tweaks.
12827         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
12828         peephole2's.
12829         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
12830         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
12831         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
12832         relocating.
12833         * config/rl78/constraints.md: Various whitespace and paren tweaks.
12835 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
12837         * config/pa/pa.md: In "scc" insn patterns, change output template to
12838         handle const0_rtx in reg_or_0_operand operands.
12840 2013-09-20  Martin Husemann  <martin@NetBSD.org>
12842         PR target/56875
12843         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
12844         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
12846 2013-09-20  Richard Biener  <rguenther@suse.de>
12848         PR middle-end/58484
12849         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
12850         remembering SSA name version and block index.
12851         (new_scev_info_str): Adjust.
12852         (hash_scev_info): Likewise.  Also hash the block index.
12853         (eq_scev_info): Adjust.
12854         (find_var_scev_info): Likewise.
12855         (struct instantiate_cache_entry): Remove.
12856         (struct instantiate_cache_type): Use a htab to map name, block
12857         to chrec.
12858         (instantiate_cache_type::~instantiate_cache_type): Adjust.
12859         (get_instantiated_value_entry): Likewise.
12860         (hash_idx_scev_info, eq_idx_scev_info): New functions.
12861         (instantiate_scev_name): Adjust.
12863 2013-09-20  Jeff Law  <law@redhat.com>
12865         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
12867 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
12869         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
12870         Call aarch64_simd_expand_args to update op[argc].
12872 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
12874         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
12875         plugin argument.
12877 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
12879         * gengtype.c (file_rules): Added rule for *.cc files.
12880         (get_output_file_with_visibility): Give fatal message when no
12881         rules found.
12883 2013-09-20  Renlin Li  <renlin.li@arm.com>
12885         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
12886         (aarch64_expand_epilogue): Likewise.
12887         (aarch64_legitimize_reload_address): Likewise.
12889 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12891         PR middle-end/57748
12892         * expr.c (expand_assignment): Remove misalignp code path.
12894 2013-09-20  Marek Polacek  <polacek@redhat.com>
12896         PR sanitizer/58413
12897         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
12898         TYPE_PRECISION.  Add asserts.
12900 2013-09-20  Richard Biener  <rguenther@suse.de>
12902         PR tree-optimization/58453
12903         * tree-loop-distribution.c (distribute_loop): Apply the cost
12904         model for -ftree-loop-distribute-patterns, too.
12906 2013-09-20  Richard Biener  <rguenther@suse.de>
12908         PR middle-end/58473
12909         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
12910         make type comparison less strict.
12912 2013-09-20  Alan Modra  <amodra@gmail.com>
12914         * configure: Regenerate.
12915         * aclocal.m4: Regenerate.
12917 2013-09-20  Marek Polacek  <polacek@redhat.com>
12919         PR other/58467
12920         * doc/extend.texi: Document that attribute used is meant to be used
12921         on variables with static storage duration.
12923 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12925         PR tree-optimization/58472
12926         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
12927         simd_lane_access set inv_p = false.
12928         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
12929         the simduid magic VAR_DECL.
12931 2013-09-19  Jan Hubicka  <jh@suse.cz>
12933         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
12935 2013-09-17  Jeff Law  <law@redhat.com>
12937         * tree-ssa-dom.c (record_temporary_equivalences): New function
12938         split out of dom_opt_dom_walker::after_dom_children.
12939         (dom_opt_dom_walker::thread_across_edge): Move common code
12940         in here from dom_opt_dom_walker::after_dom_children.
12941         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
12943 2013-09-19  Jan Hubicka  <jh@suse.cz>
12945         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
12946         (TARGET_GENERIC): Use PROCESOR_GENERIC
12947         (enum processor_type): Unify generic32 and 64.
12948         * i386.md (cpu): Likewise.
12949         * x86-tune.def (use_leave): Enable for generic32.
12950         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
12951         * athlon.md: Change generic64 to generic in all occurences.
12952         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
12953         (ix86_target_macros_internal): Likewise.
12954         * driver-i386.c (host_detect_local_cpu): Likewise.
12955         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
12956         to ..
12957         (generic_memcpy, generic_memset, generic_cost): This one.
12958         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
12959         (m_GENERIC32, m_GENERIC64): Remove.
12960         (m_GENERIC): Turn into one flag.
12961         (processor_target): Unify generic tunnings.
12962         (ix86_option_override_internal): Replace generic32/64 by generic.
12963         (ix86_issue_rate): Likewise.
12964         (ix86_adjust_cost): Likewise.
12966 2013-09-19  Jan Hubicka  <jh@suse.cz>
12968         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
12969         of speculative flag.
12971 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12973         * omp-low.c (expand_omp_sections): Always pass len - 1 to
12974         GOMP_sections_start, even if !exit_reachable.
12976 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
12978         * lra-constraints.c (need_for_all_save_p): Use macro
12979         HARD_REGNO_CALL_PART_CLOBBERED.
12980         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
12981         set up pseudo conflict hard regs.
12983 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12985         PR target/58452
12986         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
12987         operands.
12989 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
12991         PR rtl-optimization/58438
12992         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
12993         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
12994         from previous subpasses.
12996 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
12998         * arm.c (arm_get_frame_offsets): Validate architecture supports
12999         LDRD/STRD before accepting the tuning preference.
13000         (arm_expand_prologue): Likewise.
13001         (arm_expand_epilogue): Likewise.
13003 2013-09-18  Richard Biener  <rguenther@suse.de>
13005         PR tree-optimization/58417
13006         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
13007         have chrecs with symbols defined in the loop as operands.
13008         (chrec_fold_multiply): Likewise.
13009         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
13010         parameters before folding binary operations.
13011         (struct instantiate_cache_entry_hasher): Remove.
13012         (struct instantiate_cache_type): Use a pointer-map.
13013         (instantiate_cache_type::instantiate_cache_type): New function.
13014         (instantiate_cache_type::get): Likewise.
13015         (instantiate_cache_type::set): Likewise.
13016         (instantiate_cache_type::~instantiate_cache_type): Adjust.
13017         (get_instantiated_value_entry): Likewise.
13018         (global_cache): New global.
13019         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
13020         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
13021         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
13022         (instantiate_scev_name): Adjust.
13023         (instantiate_scev): Construct global instead of local cache.
13024         (resolve_mixers): Likewise.
13026 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
13027             Paolo Carlini  <paolo.carlini@oracle.com>
13029         PR c++/58458
13030         * doc/implement-cxx.texi: Fix references to the C++ standards.
13032 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
13034         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
13035         * tree-vect-data-refs.c (vect_analyze_data_refs): For
13036         simd_lane_access drs, update also DR_ALIGNED_TO.
13038 2013-09-18  Marek Polacek  <polacek@redhat.com>
13040         PR sanitizer/58411
13041         * doc/extend.texi: Document no_sanitize_undefined attribute.
13042         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
13043         no_sanitize_undefined attribute.
13045 2013-09-18  Nick Clifton  <nickc@redhat.com>
13047         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
13048         (ASM_DECLARE_FUNCTION_NAME): Define.
13050 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
13052         * compare-elim.c (find_comparison_dom_walker): New class
13053         (find_comparisons_in_bb): Rename to
13054         find_comparison_dom_walker::before_dom_children
13055         (find_comparisons): Adjust
13056         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
13057         adjust.
13058         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
13059         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
13060         (init_walk_dominator_tree): Remove declaration.
13061         (fini_walk_dominator_tree): Remove declaration.
13062         * fwprop.c (single_def_use_dom_walker): New class
13063         (single_def_use_enter_block): Convert to
13064         single_def_use_dom_walker::before_dom_children.
13065         (single_def_use_leave_block): Convert to
13066         single_def_use_dom_walker::after_dom_children.
13067         (build_single_def_use_links): Adjust.
13068         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
13069         class.
13070         (find_candidates_in_block): Convert to
13071         find_candidates_dom_walker::before_dom_children.
13072         (execute_strength_reduction): Adjust.
13073         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
13074         (sese_dom_walker): New class.
13075         (sese_dom_walker::sese_dom_walker): New constructor.
13076         (sese_dom_walker::~sese_dom_walker): New destructor.
13077         (build_sese_conditions_before): Convert to
13078         sese_dom_walker::before_dom_children.
13079         (build_sese_conditions_after): Convert to
13080         sese_dom_walker::after_dom_children.
13081         (build_poly_scop): Adjust
13082         * tree-into-ssa.c (rewrite_dom_walker): New class
13083         (rewrite_enter_block): Convert to
13084         rewrite_dom_walker::before_dom_children.
13085         (rewrite_leave_block): Convert to
13086         rewrite_dom_walker::after_dom_children.
13087         (rewrite_update_dom_walker): New class.
13088         (rewrite_update_enter_block): Convert to
13089         rewrite_update_dom_walker::before_dom_children.
13090         (rewrite_update_leave_block): Convert to
13091         rewrite_update_dom_walker::after_dom_children.
13092         (rewrite_blocks, rewrite_into_ssa): Adjust.
13093         (mark_def_dom_walker): New class.
13094         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
13095         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
13096         (mark_def_sites_blocks): Convert to
13097         mark_def_dom_walker::before_dom_children.
13098         (mark_def_site_blocks): Remove.
13099         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
13100         (tree_ssa_dominator_optimize): Adjust.
13101         (dom_thread_across_edge): Convert to method
13102         dom_opt_dom_walker::thread_across_edge.
13103         (dom_opt_enter_block): Convert to member function
13104         dom_opt_dom_walker::before_dom_children.
13105         (dom_opt_leave_block): Convert to member function
13106         dom_opt_dom_walker::after_dom_children.
13107         * tree-ssa-dse.c (dse_dom_walker): New class.
13108         (dse_enter_block): Convert to member function
13109         dse_dom_walker::before_dom_children.
13110         (tree_ssa_dse): Adjust.
13111         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
13112         (determine_invariantness_stmt): Convert to method
13113         invariantness_dom_walker::before_dom_children.
13114         (determine_invariantness): Remove
13115         (move_computations_dom_walker): New class.
13116         (move_computations_stmt): Convert to method
13117         move_computations_dom_walker::before_dom_children.
13118         (move_computations, tree_ssa_lim): Adjust.
13119         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
13120         (nt_init_block): Convert to method
13121         notrappping_dom_walker::before_dom_children.
13122         (nt_fini_block): Convert to method
13123         method nontrapping_dom_walker::after_dom_children.
13124         (get_non_trapping): Adjust.
13125         * tree-ssa-pre.c (eliminate_dom_walker): New class.
13126         (eliminate_bb): Convert to method
13127         eliminate_dom_walker::before_dom_children.
13128         (eliminate_leave_block): Convert to method
13129         eliminate_dom_walker::after_dom_children.
13130         (eliminate): Adjust.
13131         * tree-ssa-strlen.c (strlen_dom_walker): New class.
13132         (strlen_enter_block): Convert to method
13133         strlen_dom_walker::before_dom_children.
13134         (strlen_leave_block): Convert to method
13135         method strlen_dom_walker::after_dom_children.
13136         (tree_ssa_strlen): Adjust.
13137         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
13138         (tree_ssa_uncprop): Adjust.
13139         (uncprop_leave_block): Convert to method
13140         uncprop_dom_walker::after_dom_children.
13141         (uncprop_leave_block): Convert to method
13142         uncprop_dom_walker::before_dom_children.
13144 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
13146         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
13147         branch in same basic block.  Check both src and dest of the move insn.
13149 2013-09-17  Nick Clifton  <nickc@redhat.com>
13151         * config/rl78/rl78-real.md (bf): New pattern.
13152         (bt): New pattern.
13153         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
13154         (rl78_print_operand): Do not put a # before a %B.
13155         * config/rl78/rl78.opt: Tweak doc strings.
13157 2013-09-17  DJ Delorie  <dj@redhat.com>
13159         * config/rl78/constraints.md (Wcv): Allow up to $r31.
13160         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
13161         (rl78_option_override): Likewise, if -mallregs.
13162         (is_virtual_register): Likewise.
13163         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
13164         (REGNO_OK_FOR_BASE_P): Likewise.
13165         * config/rl78/rl78.opt (-mallregs): New.
13167 2013-09-17  Nick Clifton  <nickc@redhat.com>
13169         * config/rl78/rl78.c (need_to_save): Change return type to bool.
13170         For interrupt functions: save all call clobbered registers if the
13171         interrupt handler is not a leaf function.
13172         (rl78_expand_prologue): Always recompute the frame information.
13173         For interrupt functions: only select bank 0 if one of the bank 0
13174         registers is going to be psuhed.
13176 2013-09-17  DJ Delorie  <dj@redhat.com>
13178         * config/rl78/constraints.md: For each W* constraint, rename to C*
13179         and create a W* constraint that checks for an optional ES: prefix
13180         pattern also.
13181         * config/rl78/rl78.md (UNS_ES_ADDR): New.
13182         (es_addr): New.  Used to wrap far addresses.
13183         * config/rl78/rl78-protos.h (rl78_es_addr): New.
13184         (rl78_es_base): New.
13185         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
13186         wrapped far addresses.
13187         (rl78_print_operand_1): Unwrap far addresses before processing.
13188         (rl78_lo16): Wrap far addresses in unspecs.
13189         (rl78_es_addr): New.
13190         (rl78_es_base): New.
13191         (insn_ok_now): Check for not-yet-wrapped far addresses.
13192         (transcode_memory_rtx): Properly re-wrap far addresses.
13194 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13196         * config/sparc/t-rtems: Add leon3 multilibs.
13198 2013-09-17  Cong Hou  <congh@google.com>
13200         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
13201         when checking the dot production pattern. The type of rhs operand
13202         of multiply is now checked correctly.
13204 2013-09-17  Jeff Law  <law@redhat.com>
13206         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13207         edge implied equivalences into successor phis.
13208         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
13209         here from tree-ssa-threadedge.c.
13210         (mark_threaded_blocks): When threading through a joiner, if both
13211         successors of the joiner's clone reach the same block, verify the
13212         PHI arguments are equal.  If not, cancel the jump threading request.
13213         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
13214         tree-ssa-threadupdate.c
13215         (thread_across_edge): Don't check PHI argument equality when
13216         threading through joiner block here.
13218 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
13220         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
13221         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
13222         (warn_uninit, warn_uninitialized_vars,
13223         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13224         Move to tree-ssa-uninit.c.
13225         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
13226         (has_undefined_value_p): New.  Pass dependant parts of
13227         ssa_undefined_value_p.
13228         (uninit_undefined_value_p): Use has_undefined_value_p.
13229         (warn_uninit, warn_uninitialized_vars,
13230         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13231         Move from tree-ssa.c.
13232         * tree-ssa.h: Adjust prototypes.
13234 2013-09-17  Jan Hubicka  <jh@suse.cz>
13236         PR middle-end/58332
13237         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
13238         * ipa-inline.c (can_inline_edge_p): Do not downgrade
13239         FUNCTION_NOT_OPTIMIZED.
13240         * ipa-inline-analysis.c (compute_inline_parameters): Function
13241         not optimized is not inlinable unless it is alwaysinline.
13242         (inline_analyze_function): Force calls in not optimized
13243         function not inlinable.
13245 2013-09-17  Jan Hubicka  <jh@suse.cz>
13247         PR middle-end/58329
13248         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
13249         to return NULL.
13250         * ipa.c (function_and_variable_visibility): Likewise.
13251         * ipa-profile.c (ipa_profile): Likewise.
13253 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13255         PR ipa/58398
13256         * cgraph.c (cgraph_function_body_availability): Check for ifunc
13257         attribute, and don't inline the resolver in this case.
13259 2013-09-17  Teresa Johnson  <tejohnson@google.com>
13261         * coverage.c (get_coverage_counts): Add missing newline.
13263 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13265         PR tree-optimization/58088
13266         * fold-const.c (mask_with_trailing_zeros): New function.
13267         (fold_binary_loc): Make sure we don't recurse infinitely
13268         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
13269         Use mask_with_trailing_zeros where appropriate.
13271 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
13273         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
13274         of 'prev' var to get better distance estimation.
13276 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13278         * tree-inline.h (struct copy_body_data): Add transform_parameter.
13279         * tree-inline.c (is_parameter_of): New predicate.
13280         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
13281         a parameter has been remapped.
13282         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
13283         (optimize_inline_calls): Initialize transform_parameter.
13284         (copy_gimple_seq_and_replace_locals): Likewise.
13285         (tree_function_versioning): Likewise.
13286         (maybe_inline_call_in_expr): Likewise.
13288 2013-09-17  Nick Clifton  <nickc@redhat.com>
13290         * config/msp430/msp430-protos.h: Add prototypes for new functions.
13291         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
13292         interrupt handlers.
13293         (is_attr_func): New function.
13294         (msp430_is_interrupt_func): New function.
13295         (is_naked_func): New function.
13296         (is_reentrant_func): New function.
13297         (is_critical_func): New function.
13298         (msp430_start_function): Add annotations for function attributes.
13299         (msp430_attr): New function.
13300         (msp430_attribute_table): New.
13301         (msp430_function_section): New function.
13302         (TARGET_ASM_FUNCTION_SECTION): Define.
13303         (msp430_builtin): New enum.
13304         (msp430_init_builtins): New function.
13305         (msp430_builtin_devl): New function.
13306         (msp430_expand_builtin): New function.
13307         (TARGET_INIT_BUILTINS): Define.
13308         (TARGET_EXPAND_BUILTINS): Define.
13309         (TARGET_BUILTIN_DECL): Define.
13310         (msp430_expand_prologue): Add support for naked, interrupt,
13311         critical and reentrant functions.
13312         (msp430_expand_epilogue): Likewise.
13313         (msp430_print_operand): Handle 'O' character.
13314         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
13315         NO_TRAMPOLINES.
13316         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
13317         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
13318         (pushm): Use a 'n' rather than an 'i' constraint.
13319         (msp_return): Add generation of the interrupt return instruction.
13320         (disable_interrupts): New pattern.
13321         (enable_interrupts): New pattern.
13322         (push_intr_state): New pattern.
13323         (pop_intr_state): New pattern.
13324         (bic_SR): New pattern.
13325         (bis_SR): New pattern.
13326         * doc/extend.texi: Document MSP430 function attributes and builtin
13327         functions.
13329 2013-09-17  Richard Biener  <rguenther@suse.de>
13331         PR tree-optimization/58432
13332         * tree-loop-distribution.c (tree_loop_distribution): Also
13333         scan PHIs for outside loop uses and seed a partition from them.
13335 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
13337         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
13338         (restructure_reference): Call backtrace_base_for_ref.
13340 2013-09-17  Alan Modra  <amodra@gmail.com>
13342         PR target/57589
13343         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
13344         patch.
13346 2013-09-16  DJ Delorie  <dj@redhat.com>
13348         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
13349         vregs location for RL78/G10.
13350         (rl78_expand_prologue): Avoid SEL on G10.
13351         (rl78_expand_epilogue): Likewise.
13352         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
13353         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13354         __RL78_G10__ when appropriate.
13355         (ASM_SPEC): Pass -mg10 along to the assembler.
13356         * config/rl78/rl78.md (sel_rb): Disable for G10.
13357         * config/rl78/rl78.opt: Add -mg10 option.
13358         * config/rl78/t-rl78: Add -mg10 multilib.
13360 2013-09-16  Xinliang David Li  <davidxl@google.com>
13362         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
13363         * omp-low.c (omp_max_vf): Ditto.
13364         (expand_omp_simd): Ditto.
13365         * tree-vectorizer.c (vectorize_loops): Ditto.
13366         (gate_vect_slp): Ditto.
13367         (gate_increase_alignment): Ditto.
13368         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
13369         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
13370         (gate_tree_vectorize): Name change.
13371         (tree_vectorize): Ditto.
13372         (pass_vectorize::gate): Call new function.
13373         (pass_vectorize::execute): Ditto.
13374         * opts.c: O3 default setting change.
13375         (finish_options): Check new flag.
13376         * doc/invoke.texi: Document new flags.
13377         * common.opt: New flags.
13379 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
13381         * doc/tm.texi.in (Cond Exec Macros): Remove node.
13382         (Condition Code): Don't reference it.
13383         * doc/tm.texi: Regenerate.
13385 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
13387         PR middle-end/58418
13388         * lra-constraints.c (undo_optional_reloads): Consider all optional
13389         reload even if it did not get a hard reg.
13391 2013-09-16  Teresa Johnson  <tejohnson@google.com>
13393         * dumpfile.c (dump_loc): Remove newline emission.
13394         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
13395         emission to dump_printf_loc calls where missing.
13396         (vect_mark_for_runtime_alias_test): Ditto.
13397         (vect_analyze_data_ref_dependence): Ditto.
13398         (vect_analyze_data_ref_dependences): Ditto.
13399         (vect_slp_analyze_data_ref_dependence): Ditto.
13400         (vect_slp_analyze_data_ref_dependences): Ditto.
13401         (vect_compute_data_ref_alignment): Ditto.
13402         (vect_update_misalignment_for_peel): Ditto.
13403         (vect_verify_datarefs_alignment): Ditto.
13404         (vector_alignment_reachable_p): Ditto.
13405         (vect_get_data_access_cost): Ditto.
13406         (vect_enhance_data_refs_alignment): Ditto.
13407         (vect_find_same_alignment_drs): Ditto.
13408         (vect_analyze_data_refs_alignment): Ditto.
13409         (vect_analyze_group_access): Ditto.
13410         (vect_analyze_data_ref_access): Ditto.
13411         (vect_analyze_data_ref_accesses): Ditto.
13412         (vect_prune_runtime_alias_test_list): Ditto.
13413         (vect_analyze_data_refs): Ditto.
13414         (vect_create_addr_base_for_vector_ref): Ditto.
13415         (vect_create_data_ref_ptr): Ditto.
13416         (vect_grouped_store_supported): Ditto.
13417         (vect_grouped_load_supported): Ditto.
13418         * value-prof.c (check_counter): Ditto.
13419         (check_ic_target): Ditto.
13420         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
13421         (vect_recog_widen_mult_pattern): Ditto.
13422         (vect_recog_widen_sum_pattern): Ditto.
13423         (vect_recog_over_widening_pattern): Ditto.
13424         (vect_recog_widen_shift_pattern): Ditto.
13425         (vect_recog_rotate_pattern): Ditto.
13426         (vect_recog_vector_vector_shift_pattern): Ditto.
13427         (vect_recog_divmod_pattern): Ditto.
13428         (vect_recog_mixed_size_cond_pattern): Ditto.
13429         (vect_recog_bool_pattern): Ditto.
13430         (vect_pattern_recog_1): Ditto.
13431         (vect_pattern_recog): Ditto.
13432         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
13433         (vect_is_simple_iv_evolution): Ditto.
13434         (vect_analyze_scalar_cycles_1): Ditto.
13435         (vect_get_loop_niters): Ditto.
13436         (vect_analyze_loop_1): Ditto.
13437         (vect_analyze_loop_form): Ditto.
13438         (vect_analyze_loop_operations): Ditto.
13439         (vect_analyze_loop_2): Ditto.
13440         (vect_analyze_loop): Ditto.
13441         (report_vect_op): Ditto.
13442         (vect_is_slp_reduction): Ditto.
13443         (vect_is_simple_reduction_1): Ditto.
13444         (vect_get_known_peeling_cost): Ditto.
13445         (vect_estimate_min_profitable_iters): Ditto.
13446         (vect_model_reduction_cost): Ditto.
13447         (vect_model_induction_cost): Ditto.
13448         (get_initial_def_for_induction): Ditto.
13449         (vect_create_epilog_for_reduction): Ditto.
13450         (vectorizable_reduction): Ditto.
13451         (vectorizable_induction): Ditto.
13452         (vectorizable_live_operation): Ditto.
13453         (vect_loop_kill_debug_uses): Ditto.
13454         (vect_transform_loop): Ditto.
13455         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
13456         (vect_stmt_relevant_p): Ditto.
13457         (process_use): Ditto.
13458         (vect_mark_stmts_to_be_vectorized): Ditto.
13459         (vect_model_simple_cost): Ditto.
13460         (vect_model_promotion_demotion_cost): Ditto.
13461         (vect_model_store_cost): Ditto.
13462         (vect_get_store_cost): Ditto.
13463         (vect_model_load_cost): Ditto.
13464         (vect_get_load_cost): Ditto.
13465         (vect_init_vector_1): Ditto.
13466         (vect_get_vec_def_for_operand): Ditto.
13467         (vect_finish_stmt_generation): Ditto.
13468         (vectorizable_call): Ditto.
13469         (vectorizable_conversion): Ditto.
13470         (vectorizable_assignment): Ditto.
13471         (vectorizable_shift): Ditto.
13472         (vectorizable_operation): Ditto.
13473         (vectorizable_store): Ditto.
13474         (vectorizable_load): Ditto.
13475         (vectorizable_condition): Ditto.
13476         (vect_analyze_stmt): Ditto.
13477         (vect_transform_stmt): Ditto.
13478         (vect_is_simple_use): Ditto.
13479         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
13480         (vect_can_advance_ivs_p): Ditto.
13481         (vect_update_ivs_after_vectorizer): Ditto.
13482         (vect_do_peeling_for_loop_bound): Ditto.
13483         (vect_gen_niters_for_prolog_loop): Ditto.
13484         (vect_update_inits_of_drs): Ditto.
13485         (vect_create_cond_for_alias_checks): Ditto.
13486         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
13487         (vect_build_slp_tree_1): Ditto.
13488         (vect_supported_load_permutation_p): Ditto.
13489         (vect_analyze_slp_instance): Ditto.
13490         (vect_analyze_slp): Ditto.
13491         (vect_make_slp_decision): Ditto.
13492         (vect_detect_hybrid_slp): Ditto.
13493         (vect_bb_vectorization_profitable_p): Ditto.
13494         (vect_slp_analyze_bb_1): Ditto.
13495         (vect_update_slp_costs_according_to_vf): Ditto.
13496         (vect_get_mask_element): Ditto.
13497         (vect_transform_slp_perm_load): Ditto.
13498         (vect_schedule_slp_instance): Ditto.
13499         (vect_schedule_slp): Ditto.
13500         (vect_slp_transform_bb): Ditto.
13501         * profile.c (read_profile_edge_counts): Ditto.
13502         (compute_branch_probabilities): Ditto.
13503         * coverage.c (get_coverage_counts): Ditto.
13505 2013-09-16  Diego Novillo  <dnovillo@google.com>
13507         * tree-core.h: Add missing comment lines from refactoring of tree.h.
13509 2013-09-16  Jan Hubicka  <jh@suse.cz>
13511         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
13512         abstract functions; for static functions check the presence of body.
13514 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
13516         * config/aarch64/aarch64-simd-builtins.def (fma): New.
13517         * config/aarch64/aarch64-simd.md
13518         (aarch64_mla_elt<mode>): New.
13519         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13520         (aarch64_mls_elt<mode>): Likewise.
13521         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13522         (aarch64_fma4_elt<mode>): Likewise.
13523         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13524         (aarch64_fma4_elt_to_128v2df): Likewise.
13525         (aarch64_fma4_elt_to_64df): Likewise.
13526         (fnma<mode>4): Likewise.
13527         (aarch64_fnma4_elt<mode>): Likewise.
13528         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
13529         (aarch64_fnma4_elt_to_128v2df): Likewise.
13530         (aarch64_fnma4_elt_to_64df): Likewise.
13531         * config/aarch64/iterators.md (VDQSF): New.
13532         * config/aarch64/arm_neon.h
13533         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
13534         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
13536 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
13538         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
13539         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13540         (aarch64_mul3_elt_to_128df): Likewise.
13541         (aarch64_mul3_elt_to_64v2df): Likewise.
13542         * config/aarch64/iterators.md (VEL): Also handle DFmode.
13543         (VMUL): New.
13544         (VMUL_CHANGE_NLANES) Likewise.
13545         (h_con): Likewise.
13546         (f): Likewise.
13547         * config/aarch64/arm_neon.h
13548         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
13550 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
13552         * config/aarch64/arm_neon.h
13553         (vcvtx_high_f32_f64): Fix parameters.
13555 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13556             Uros Bizjak  <ubizjak@gmail.com>
13558         * config/alpha.c: Include tree-ssanames.h.
13560 2013-09-16  Richard Biener  <rguenther@suse.de>
13562         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
13563         (dot_rdg_1): Handle control_dd.
13564         (create_edge_for_control_dependence): New function.
13565         (create_rdg_edges): Add control dependences if asked for.
13566         (build_rdg): Likewise.
13567         (generate_loops_for_partition): If there are not necessary
13568         control stmts remove all their dependencies.
13569         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
13570         (distribute_loop): Pass on control dependences.
13571         (tree_loop_distribution): Compute control dependences and remove
13572         restriction on number of loop nodes.
13574 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
13576         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
13577         for internal calls.
13579 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
13581         * cse.c (try_const_anchors): Punt on CC modes.
13583 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13585         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
13587 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
13589         PR target/58382
13590         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
13591         calls to word_mode.
13593 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
13595         PR target/48094
13596         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
13597         seen.
13598         (darwin_objc1_section): Likewise.
13599         (darwin_file_end): Emit Image Info section when required.
13601 2013-09-14  Jan Hubicka  <jh@suse.cz>
13603         * tree-into-ssa.c (gate_into_ssa): New.
13604         (pass_data_build_ssa): Use it.
13605         * cgraph.h (expand_thunk): Update prototype.
13606         * cgraphunit.c (analyze_function): Expand thunks early.
13607         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
13608         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
13609         set lowered flag; do not add new function.
13610         (assemble_thunks_and_aliases): Update.
13611         * tree-ssa.c (gate_init_datastructures): New gate.
13612         (pass_data_init_datastructures): Use it.
13614 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
13616         PR target/58269
13617         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
13618         xmm register set described in the psABI.
13620 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
13622         * dwarf2out.c (should_emit_struct_debug): Add check
13623         for type_decl variable is not NULL.
13625 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
13627         * config.gcc: Use new winnt-c.c target hooks
13628         * config/t-winnt: New file
13629         * config/winnt-c.c: New file
13630         * doc/tm.texi.in: Document new hook
13631         * doc/tm.texi: Regenerated
13633 2013-09-13  Jan Hubicka  <jh@suse.cz>
13635         PR middle-end/58094
13636         * ipa-inline.c (check_callers): New function.
13637         (check_caller_edge): Remove.
13638         (want_inline_function_to_all_callers_p): Also permit alises that are
13639         called dirrectly.
13640         (inline_to_all_callers): Terminate the walk when devirtualization
13641         introduce new calls.
13643 2013-09-13  Jan Hubicka  <jh@suse.cz>
13645         * ipa-inline-analysis.c (struct growth_data): Add node.
13646         (do_estimate_growth_1): Fix detection of recursion.
13648 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
13650         PR tree-optimization/58392
13651         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
13652         to avoid shadowing of outer loop variable.  If
13653         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
13654         replace_by_duplicate_decl simduid of loops that have it set and
13655         set dest_cfun->has_simduid_loops and/or
13656         dest_cfun->has_force_vect_loops.
13657         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
13658         instead of maybe_lookup_decl.
13659         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
13660         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
13661         call.  Copy over force_vect and copy and remap simduid.  Set
13662         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
13663         (copy_cfg_body): Remove blocks_to_copy argument.  Use
13664         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
13665         caller.  Don't set cfun->has_simduid_loops and/or
13666         cfun->has_force_vect_loops here.
13667         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
13668         caller.
13669         (expand_call_inline, tree_function_versioning): Adjust copy_body
13670         callers.
13672 2013-09-13  Martin Jambor  <mjambor@suse.cz>
13674         PR bootstrap/58388
13675         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
13676         the assert if the edge was a speculative one.
13678 2013-09-13  Richard Biener  <rguenther@suse.de>
13680         * tree-data-ref.h (known_dependences_p): Move here ...
13681         * tree-loop-distribution.c (known_dependences_p): ... from here.
13682         (dump_rdg_component, debug_rdg_component): Remove.
13683         (dump_rdg): Adjust.
13684         (generate_loops_for_partition): Use gimple_uid instead of
13685         relying on matching stmt visit order.
13686         (rdg_build_partitions): Take starting stmt vector.
13687         (ldist_gen): Merge into ...
13688         (distribute_loop): ... this function.  Do not compute starting
13689         vertices vector.
13690         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
13692 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13694         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
13695         Set type attribute correctly. Set predicable_short_it attribute.
13696         (cmpsi_shiftsi): Remove %? from output template.
13698 2013-09-13  Richard Biener  <rguenther@suse.de>
13700         * tree-loop-distribution.c (struct rdg_component,
13701         rdg_defs_used_in_other_loops_p, free_rdg_components,
13702         rdg_build_components): Remove.
13703         (stmts_from_loop): Do not record virtual PHIs.
13704         (generate_loops_for_partition): Skip virtual PHIs.
13705         (build_rdg_partition_for_component): Rename to ...
13706         (build_rdg_partition_for_vertex): ... this and adjust.
13707         (rdg_build_partitions): Take a vector of starting vertices
13708         instead of components.  Remove unnecessary leftover handling.
13709         (ldist_gen): Do not build components or record other stores.
13710         (distribute_loop): Do not distribute loops containing stmts
13711         with side-effects.
13713 2013-09-13  Christian Bruel  <christian.bruel@st.com>
13715         PR target/58314
13716         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
13718 2013-09-13  Kai Tietz  <ktietz@redhat.com>
13720         * config.gcc: Separate cases for mingw and cygwin targets,
13721         and add 64-bit cygwin target case.
13723         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
13724         dll-export inline-functions.
13725         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
13727 2013-09-13  Jeff Law  <law@redhat.com>
13729         PR middle-end/58387
13730         Revert:
13731         2013-09-06  Jeff Law  <law@redhat.com>
13733         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13734         edge implied equivalences into successor phis.
13736 2013-09-12  DJ Delorie  <dj@redhat.com>
13738         * config/rl78/rl78-virt.md: Change from | to \; for asm line
13739         separators.
13741 2013-09-12  Brooks Moses  <bmoses@google.com>
13743         PR driver/42955
13744         * Makefile.in: Do not install driver binaries in $(target)/bin.
13746 2013-09-12  DJ Delorie  <dj@redhat.com>
13748         * config/rl78/rl78.opt (mrelax): New.
13749         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
13750         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
13752         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
13753         between SP and FP.
13754         (rl78_expand_epilogue): Likewise.
13756 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
13758         PR middle-end/58335
13759         * lra-eliminations.c (remove_reg_equal_offset_note): New.
13760         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
13761         pointer elimination with using remove_reg_equal_offset_note.
13763 2013-09-12  DJ Delorie  <dj@redhat.com>
13765         * config/msp430/: New port.
13766         * config.gcc (msp430): Added.
13767         * doc/invoke.texi: Document MSP430 options.
13768         * doc/install.texi: Document msp430-elf
13769         * doc/md.texi: Document msp430-elf
13770         * doc/contrib.texi: Document msp430-elf
13772         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
13773         PSImode.
13775 2013-09-12  Martin Jambor  <mjambor@suse.cz>
13777         PR ipa/58389
13778         * ipa-prop.c (remove_described_reference): Give up if the edge in the
13779         reference descriptor is NULL.
13780         (ipa_edge_removal_hook): If owning a reference descriptor, set its
13781         edge to NULL.
13783 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
13785         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
13786         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
13787         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
13788         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
13789         make_temp_ssa_name): move to tree-ssanames.h
13790         * tree-ssa-alias.h: Move prototype.
13791         * tree-ssa.h: Include tree-ssanames.h.
13792         * tree-ssanames.c (FREE_SSANAMES): Move to here.
13793         * tree-ssanames.h: New.  Move items from tree-flow*.h
13794         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
13796 2013-09-12  Richard Biener  <rguenther@suse.de>
13798         PR tree-optimization/58404
13799         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
13800         propagate non-invariant addresses into dereferences wrapped
13801         in component references.
13803 2013-09-12  Richard Biener  <rguenther@suse.de>
13805         PR tree-optimization/58402
13806         * passes.def: Move pass_late_warn_uninitialized later.
13808 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
13810         * tree-ssa.h: New.  Move content from tree-flow.h and
13811         tree-flow-inline.h.
13812         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
13813         Move prototypes belonging to tree-ssa.c.
13814         * tree-flow-inline.h (redirect_edge_var_map_def,
13815         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
13816         tree-ssa.h.
13817         * gimple.h: Adjust prototypes.
13818         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
13819         to...
13820         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
13821         * tree.h: Move prototype to tree-ssa.h.
13822         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
13823         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
13824         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
13825         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
13826         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
13827         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
13828         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
13829         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
13830         graphite-blocking.c, graphite-clast-to-gimple.c,
13831         graphite-dependences.c, graphite-interchange.c,
13832         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
13833         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
13834         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
13835         ipa-reference.c, ipa-split.c, ipa-utils.c,
13836         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
13837         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
13838         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
13839         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
13840         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
13841         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13842         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
13843         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
13844         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
13845         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
13846         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
13847         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13848         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13849         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
13850         value-prof.c, var-tracking.c,
13851         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
13853 2013-09-12  Richard Biener  <rguenther@suse.de>
13855         PR tree-optimization/58396
13856         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
13857         (build_rdg): Take a loop-nest parameter, fix memleaks.
13858         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
13860 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
13862         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
13863         for SLM.
13865 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
13867         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
13868         The FMA instruction names should have a 'v' prefix.
13870 2013-09-12  Richard Biener  <rguenther@suse.de>
13872         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
13873         (dot_rdg): Use popen instead of system in optional code.
13874         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
13875         (already_processed_vertex_p): Adjust.
13876         (has_anti_or_output_dependence, predecessor_has_mem_write,
13877         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
13878         rdg_flag_uses): Remove.
13879         (rdg_flag_vertex): Simplify.
13880         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
13881         remove recursion.
13882         (build_rdg_partition_for_component): Process the first vertex
13883         of a component only.
13884         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
13886 2013-09-12  Alan Modra  <amodra@gmail.com>
13888         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
13890 2013-09-11  DJ Delorie  <dj@redhat.com>
13891             Nick Clifton  <nickc@redhat.com>
13893         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
13894         (rl78_stack_based_mem): New.
13895         * config/rl78/constraints.md (Iv08): New.
13896         (Iv16): New.
13897         (Iv24): New.
13898         (Is09): New.
13899         (Is17): New.
13900         (Is25): New.
13901         (ISsi): New.
13902         (IShi): New.
13903         (ISqi): New.
13904         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
13905         (movhi): Likewise.
13906         (movsi): Change from expand to insn-and-split.
13907         (ashrsi3): Clobber AX.
13908         (lshrsi3): New.
13909         (ashlsi3): New.
13910         (cbranchsi4): New.
13911         * config/rl78/rl78.md (CC_REG): Fix.
13912         (addsi3): Allow memory and immediate operands.
13913         (addsi3_internal): Split into...
13914         (addsi3_internal_virt): ...new, and ...
13915         (addsi3_internal_real): ...new.
13916         (subsi): New.
13917         (subsi3_internal_virt): New.
13918         (subsi3_internal_real): New.
13919         (mulsi3): Add memory operand.
13920         (mulsi3_rl78): Likewise.
13921         (mulsi3_g13): Likewise.
13922         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
13923         (cbranchqi4_real): Add more constraint options.
13924         (cbranchhi4_real): Expand pattern.
13925         (cbranchhi4_real_signed): New.
13926         (cbranchhi4_real_inverted): New.
13927         (cbranchsi4_real_lt): New.
13928         (cbranchsi4_real_ge): New.
13929         (cbranchsi4_real_signed): New.
13930         (cbranchsi4_real): New.
13931         (peephole2): New.
13932         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
13933         constant shifts.
13934         (lshrsi3_virt): Likewise.
13935         (ashlsi3_virt): Likewise.
13936         (cbranchqi4_virt_signed): New.
13937         (cbranchhi4_virt_signed): New.
13938         (cbranchsi4_virt): New.
13939         * config/rl78/rl78.c: Whitespace fixes throughout.
13940         (move_elim_pass): New.
13941         (pass_data_rl78_move_elim): New.
13942         (pass_rl78_move_elim): New.
13943         (make_pass_rl78_move_elim): New.
13944         (rl78_devirt_info): Run devirt earlier.
13945         (rl78_move_elim_info): New.
13946         (rl78_asm_file_start): Register it.
13947         (rl78_split_movsi): New.
13948         (rl78_as_legitimate_address): Allow virtual base registers when
13949         appropriate.
13950         (rl78_addr_space_convert): Remove spurious debug stuff.
13951         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
13952         (rl78_print_operand): More cases for not printing '#'.
13953         (rl78_expand_compare): Remove most of the logic.
13954         (content_memory): New.
13955         (clear_content_memory): New.
13956         (get_content_index): New.
13957         (get_content_name): New.
13958         (display_content_memory): New.
13959         (update_content): New.
13960         (record_content): New.
13961         (already_contains): New.
13962         (insn_ok_now): Re-recog insns with virtual registers.
13963         (add_postponed_content_update): New.
13964         (process_postponed_content_update): New.
13965         (gen_and_emit_move): New.
13966         (transcode_memory_rtx): Record new location content.
13967         Use gen_and_emit_move.
13968         (force_into_acc): New.
13969         (move_to_acc): Use gen_and_emit_move.
13970         (move_from_acc): Likewise.
13971         (move_acc_to_reg): Likewise.
13972         (move_to_x): Likewise.
13973         (move_to_hl): Likewise.
13974         (move_to_de): Likewise.
13975         (rl78_alloc_physical_registers_op1): Record location content.
13976         (has_constraint): New.
13977         (rl78_alloc_physical_registers_op2): Record location content.
13978         Optimize use of HL.
13979         (rl78_alloc_physical_registers_ro1): Likewise.
13980         (rl78_alloc_physical_registers_cmp): Likewise.
13981         (rl78_alloc_physical_registers_umul): Likewise.
13982         (rl78_alloc_address_registers_macax): New.
13983         (rl78_alloc_physical_registers): Initialize and set location
13984         content memory as needed.
13985         (rl78_reorg): Make sure split2 is called.
13986         (rl78_rtx_costs): New.
13988 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
13990         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
13991         for (not (neg ...)) and (neg (not ...)) cases.
13993 2013-09-11  Richard Biener  <rguenther@suse.de>
13995         PR middle-end/58377
13996         * passes.def: Split critical edges before late uninit warning passes.
13997         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
13999 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
14001         PR tree-optimization/58385
14002         * fold-const.c (build_range_check): If both low and high are NULL,
14003         use omit_one_operand_loc to preserve exp side-effects.
14005 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14007         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
14009 2013-09-11  Richard Biener  <rguenther@suse.de>
14011         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
14012         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
14013         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
14014         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
14015         stmts_from_loop, known_dependences_p, build_empty_rdg,
14016         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
14017         * tree-loop-distribution.c: ... here.
14018         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
14019         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
14020         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
14021         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
14022         * tree-loop-distribution.c: ... here.
14023         * tree-loop-distribution.c: Include gimple-pretty-print.h.
14024         (struct partition_s): Add loops member.
14025         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
14026         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
14027         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
14029 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14030             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14031             Sergey Lega  <sergey.s.lega@intel.com>
14032             Anna Tikhonova  <anna.tikhonova@intel.com>
14033             Ilya Tocar  <ilya.tocar@intel.com>
14034             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14035             Ilya Verbin  <ilya.verbin@intel.com>
14036             Kirill Yukhin  <kirill.yukhin@intel.com>
14037             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14039         * config/i386/constraints.md (k): New.
14040         (Yk): Ditto.
14041         * config/i386/i386.c (const regclass_map): Add new mask registers.
14042         (dbx_register_map): Ditto.
14043         (dbx64_register_map): Ditto.
14044         (svr4_dbx_register_map): Ditto.
14045         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
14046         disabled.
14047         (ix86_preferred_reload_class): Disable constants for mask registers.
14048         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
14049         (ix86_hard_regno_mode_ok): Support new mask registers.
14050         (x86_order_regs_for_local_alloc): Ditto.
14051         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
14052         (FIXED_REGISTERS): Add new mask registers.
14053         (CALL_USED_REGISTERS): Ditto.
14054         (REG_ALLOC_ORDER): Ditto.
14055         (VALID_MASK_REG_MODE): New.
14056         (FIRST_MASK_REG): Ditto.
14057         (LAST_MASK_REG): Ditto.
14058         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
14059         (MAYBE_MASK_CLASS_P): New.
14060         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
14061         (REG_CLASS_CONTENTS): Ditto.
14062         (MASK_REGNO_P): New.
14063         (ANY_MASK_REG_P): Ditto.
14064         (HI_REGISTER_NAMES): Add new mask registers.
14065         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
14066         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
14067         mask registers.
14068         (attribute "type"): Add mskmov, msklog.
14069         (attribute "length_immediate"): Support them.
14070         (attribute "memory"): Ditto.
14071         (attribute "prefix_0f"): Ditto.
14072         (*movhi_internal): Support new mask registers.
14073         (*movqi_internal): Ditto.
14074         (define_split): Split out clobber pattern is a logic
14075         insn on mask registers.
14076         (*k<logic><mode>): New.
14077         (*andhi_1): Extend to support mask regs.
14078         (*andqi_1): Extend to support mask regs.
14079         (kandn<mode>): New.
14080         (define_split): Split and-not to and and not if operands
14081         are not mask regs.
14082         (*<code><mode>_1): Separate HI mode to new pattern...
14083         (*<code>hi_1): This.
14084         (*<code>qi_1): Extend to support mask regs.
14085         (kxnor<mode>): New.
14086         (kortestzhi): Ditto.
14087         (kortestchi): Ditto.
14088         (kunpckhi): Ditto.
14089         (*one_cmpl<mode>2_1): Remove HImode and handle it...
14090         (*one_cmplhi2_1): ...Here, now with mask registers support.
14091         (*one_cmplqi2_1): Support new mask registers.
14092         (HI/QImode arithmetics splitter): Don't split if mask registers
14093         are used.
14094         (HI/QImode not splitter): Ditto.
14095         * config/i386/predicated.md (mask_reg_operand): New.
14096         (general_reg_operand): Ditto.
14098 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14100         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
14101         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
14103 2013-09-10  Jeff Law  <law@redhat.com>
14105         PR tree-optimization/58380
14106         * tree-ssa-threadupdate.c (thread_block): Recognize another case
14107         of threading through a buried loop header.
14109         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
14110         return value for single successor case.
14112 2013-09-10  Jan Hubicka  <jh@suse.cz>
14114         * ipa-devirt.c (ipa_devirt): Enable with LTO.
14116 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
14118         PR target/58361
14119         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
14120         support conditional execution.
14121         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
14123 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
14125         * lra.c (lra): Clear lra_optional_reload_pseudos before every
14126         constraint pass.
14127         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
14128         Check destination too to check move insn.
14129         (undo_optional_reloads): Add check that the original peudo did not
14130         changed its allocation and the optional reload was inherited on last
14131         inheritance pass.  Break loop after deciding to keep optional reload.
14132         (lra_undo_inheritance): Add check that inherited pseudo still in
14133         memory.
14135 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
14137         * config/aarch64/aarch64.md (generic_sched): New.
14138         * config/aarch64/aarch64-generic.md (load): Make conditional
14139         on generic_sched attribute.
14140         (nonload): Likewise.
14142 2013-09-10  Jan Hubicka  <jh@suse.cz>
14144         * lto-cgraph.c: Include ipa-utils.h.
14145         (compute_ltrans_boundary): Also add possible targets into the boundary.
14147 2013-09-10  Jan Hubicka  <jh@suse.cz>
14149         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
14150         VAR_DECL of vtable rather than full expression.
14152 2013-09-10  Jan Hubicka  <jh@suse.cz>
14153             Paolo Carlini  <paolo.carlini@oracle.com>
14155         * cgraphunit.c (analyze_functions): Save input_location, set it
14156         to UNKNOWN_LOCATION and restore it at the end.
14158 2013-09-10  Martin Jambor  <mjambor@suse.cz>
14160         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
14161         represented by a thunk.
14163 2013-09-10  Jeff Law  <law@redhat.com>
14165         PR tree-optimization/58343
14166         * tree-ssa-threadupdate.c (thread_block): Identify and disable
14167         jump threading requests through loop headers buried in the middle
14168         of a jump threading path.
14170         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
14171         in return value/type.
14173 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
14175         PR rtl-optimization/58365
14176         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
14177         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
14178         it differs.
14180 2013-09-10  Richard Biener  <rguenther@suse.de>
14182         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
14183         * tree-data-ref.c (create_rdg_vertices): Collect all data
14184         references, signal failure to the caller, use data-ref API.
14185         (build_rdg): Compute data references only once.  Maintain lifetime
14186         of data references and data dependences from within RDG.
14187         (free_rdg): Free dependence relations.
14188         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
14189         inventing extra dependences.
14190         (distribute_loop): Update for RDG API changes.
14192 2013-09-10  Kai Tietz  <ktietz@redhat.com>
14194         * doc/invoke.texi (fms-extensions): Document changed
14195         behavior for ms-abi targets.
14196         * config/i386/i386.c (ix86_option_override_internal):
14197         Set default value of option -fms-extension for ms-abi targets.
14199 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14201         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
14203 2013-09-10  Alan Modra  <amodra@gmail.com>
14205         PR target/58330
14206         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
14208 2013-09-10  Alan Modra  <amodra@gmail.com>
14210         * config/rs6000/predicates.md (add_cint_operand): New.
14211         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
14212         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
14213         using add_cint_operand.
14214         (largetoc_high_plus_aix): Likewise.
14216 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
14218         PR tree-optimization/58364
14219         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
14220         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
14221         the current range can't be an unconditional true or false.
14223 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
14225         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
14227 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
14229         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
14231 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
14233         PR c++/43452
14234         * doc/invoke.texi (-Wdelete-incomplete): Document it.
14236 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
14238         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
14239         NO_REGS for immediate that can't be moved directly into FP_REGS.
14241 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14243         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
14244         comparison with negated operand.
14245         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
14246         RTL form.
14248 2013-09-09  Richard Biener  <rguenther@suse.de>
14250         PR middle-end/58326
14251         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
14252         of a subloop record all its block as affecting loop-closed SSA form.
14254 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14256         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
14257         of an rtx/bitpos pair.
14258         (store_fixed_bit_field): Update accordingly.
14260 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14262         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
14263         GEN_INT.
14264         * builtins.c (expand_errno_check): Likewise.
14265         * dwarf2cfi.c (init_return_column_size): Likewise.
14266         * except.c (sjlj_mark_call_sites): Likewise.
14267         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14268         * lra-constraints.c (emit_inc): Likewise.
14269         * ree.c (combine_set_extension): Likewise.
14270         * regmove.c (fixup_match_2): Likewise.
14271         * reload1.c (inc_for_reload): Likewise.
14273 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14275         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
14276         (force_to_mode, simplify_shift_const_1, simplify_comparison):
14277         Use gen_int_mode with the mode of the associated simplify_* call.
14278         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
14279         * expmed.c (expand_shift_1): Likewise.
14280         * function.c (instantiate_virtual_regs_in_insn): Likewise.
14281         * loop-iv.c (iv_number_of_iterations): Likewise.
14282         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14283         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14285 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14287         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
14288         of the associated expand_* call.
14289         (asan_emit_stack_protection): Likewise.
14290         * builtins.c (round_trampoline_addr): Likewise.
14291         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
14292         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
14293         (emit_store_flag): Likewise.
14294         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
14295         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
14296         Likewise.
14297         * function.c (instantiate_virtual_regs_in_insn): Likewise.
14298         * ifcvt.c (noce_try_store_flag_constants): Likewise.
14299         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14300         * modulo-sched.c (generate_prolog_epilog): Likewise.
14301         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
14302         (expand_ctz, expand_ffs, expand_unop): Likewise.
14304 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14306         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
14307         of the associated gen_rtx_* call.
14308         * caller-save.c (init_caller_save): Likewise.
14309         * combine.c (find_split_point, make_extraction): Likewise.
14310         (make_compound_operation): Likewise.
14311         * dwarf2out.c (mem_loc_descriptor): Likewise.
14312         * explow.c (plus_constant, probe_stack_range): Likewise.
14313         * expmed.c (expand_mult_const): Likewise.
14314         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
14315         * reload1.c (init_reload): Likewise.
14316         * valtrack.c (cleanup_auto_inc_dec): Likewise.
14317         * var-tracking.c (adjust_mems): Likewise.
14318         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
14319         rather than gen_rtx_fmt_ee.
14321 2013-09-09  Jan Hubicka  <jh@suse.cz>
14323         PR middle-end/58294
14324         * value-prof.c (gimple_ic): Copy also abnormal edges.
14326 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14328         * asan.c (asan_shadow_cst): Use gen_int_mode.
14330 2013-09-08  Jan Hubicka  <jh@suse.cz>
14332         * ipa-profile.c: Add toplevel comment.
14333         (ipa_propagate_frequency_1): Be more conservative when profile is read.
14334         (contains_hot_call_p): New function.
14335         (ipa_propagate_frequency): Set frequencies based on counts when
14336         profile is read.
14337         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
14338         profile; do not tamper with profile after inlining if it is read.
14340 2013-09-08  Jan Hubicka  <jh@suse.cz>
14342         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
14343         speculative edges.
14345 2013-09-08  Jan Hubicka  <jh@suse.cz>
14347         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
14348         summary generation.
14350 2013-09-08  Jeff Law  <law@redhat.com>
14352         PR bootstrap/58340
14353         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
14354         of 'found'.
14356 2013-09-08  Andi Kleen  <ak@linux.intel.com>
14358         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
14360 2013-09-08  Jan Hubicka  <jh@suse.cz>
14362         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
14364 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
14366         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
14367         for non-debug insns.
14368         * lra.c (new_insn_reg): Take the containing insn as a parameter.
14369         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
14370         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
14371         accordingly.
14373 2013-09-08  Jan Hubicka  <jh@suse.cz>
14375         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
14376         targets and devirtualize to BUILT_IN_UNREACHABLE.
14377         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
14378         * ipa.c (walk_polymorphic_call_targets): New function.
14379         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
14380         functions; use the new timevar.
14381         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
14382         was removed from the program.
14383         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
14384         not consider it in the walk when its vtable is dead.
14385         (possible_polymorphic_call_targets_1): Pass anonymous flag to
14386         record_binfo.
14387         (devirt_variable_node_removal_hook): New function.
14388         (possible_polymorphic_call_targets): Also register
14389         devirt_variable_node_removal_hook.
14390         (ipa_devirt): Do not do non-speculative devirtualization.
14391         (gate_ipa_devirt): One execute if devirtualizing speculatively.
14393 2013-09-08  Jan Hubicka  <jh@suse.cz>
14395         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
14396         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
14397         varpool_remove_variable_insertion_hook): Declare.
14398         * varpool.c (varpool_node_hook_list): New structure.
14399         (first_varpool_node_removal_hook,
14400         first_varpool_variable_insertion_hook): New variables.
14401         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
14402         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
14403         varpool_remove_variable_insertion_hook,
14404         varpool_call_variable_insertion_hooks): New functions.
14405         (varpool_remove_node): Use it.
14407 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
14409         PR c++/54941
14410         * diagnostic.c (diagnostic_build_prefix): When s.file is
14411         "<built-in>" don't output line and column numbers.
14413 2013-09-06  Jan Hubicka  <jh@suse.cz>
14415         * cgraphunit.c (expand_thunk): Get body before touching arguments.
14416         * lto-streamer-out.c: Stream thunks, too.
14417         * lto-streamer-in.c (input_function): Pop cfun here
14418         (lto_read_body): Instead of here.
14420 2013-09-06  Caroline Tice  <cmtice@google.com>
14422         * doc/install.texi: Add documentation for the --enable-vtable-verify
14423         and the --disable-libvtv configure options.
14425 2013-09-06  Jeff Law  <law@redhat.com>
14427         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14428         edge implied equivalences into successor phis.
14430 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
14432         * resource.c (mark_referenced_resources): Handle COND_EXEC.
14434 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
14436         * resource.c (mark_target_live_regs): Compute resources taking
14437         into account if a call is predicated or not.
14439 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
14441         * toplev.c (output_stack_usage): Be prepared for suffixes created by
14442         the compiler in the function names.
14444 2013-09-06  Jan Hubicka  <jh@suse.cz>
14446         PR middle-end/58094
14447         * ipa-inline.c (has_caller_p): New function.
14448         (want_inline_function_to_all_callers_p): Use it.
14449         (sum_callers, inline_to_all_callers): Break out from ...
14450         (ipa_inline): ... here.
14452 2013-09-06  Jan Hubicka  <jh@suse.cz>
14454         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
14455         only when AVX is enabled.
14457 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14459         * config/aarch64/aarch64.md
14460         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
14461         is fpsimd_<load/store>2.
14462         (load_pair<mode>): Likewise.
14463         (store_pair<mode>): Likewise.
14465 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14467         * config/arm/types.md (type): Add "mrs" type.
14468         * config/aarch64/aarch64.md
14469         (aarch64_load_tp_hard): Make type "mrs".
14470         * config/arm/arm.md
14471         (load_tp_hard): Make type "mrs".
14472         * config/arm/cortex-a15.md: Update with new attributes.
14473         * config/arm/cortex-a5.md: Update with new attributes.
14474         * config/arm/cortex-a53.md: Update with new attributes.
14475         * config/arm/cortex-a7.md: Update with new attributes.
14476         * config/arm/cortex-a8.md: Update with new attributes.
14477         * config/arm/cortex-a9.md: Update with new attributes.
14478         * config/arm/cortex-m4.md: Update with new attributes.
14479         * config/arm/cortex-r4.md: Update with new attributes.
14480         * config/arm/fa526.md: Update with new attributes.
14481         * config/arm/fa606te.md: Update with new attributes.
14482         * config/arm/fa626te.md: Update with new attributes.
14483         * config/arm/fa726te.md: Update with new attributes.
14485 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14487         * config/aarch64/aarch64.md
14488         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
14489         (*movtf_aarch64): Likewise.
14490         * config/arm/arm.md
14491         (thumb1_movdi_insn): Use "multiple" for type where more than one
14492         instruction is used for a move.
14493         (*arm32_movhf): Likewise.
14494         (*thumb_movdf_insn): Likewise.
14496 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14498         * config/arm/types.md (type): Rename fcpys to fmov.
14499         * config/arm/vfp.md
14500         (*arm_movsi_vfp): Rename type fcpys as fmov.
14501         (*thumb2_movsi_vfp): Likewise
14502         (*movhf_vfp_neon): Likewise
14503         (*movhf_vfp): Likewise
14504         (*movsf_vfp): Likewise
14505         (*thumb2_movsf_vfp): Likewise
14506         (*movsfcc_vfp): Likewise
14507         (*thumb2_movsfcc_vfp): Likewise
14508         * config/aarch64/aarch64-simd.md
14509         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
14510         * config/aarch64/aarch64.md
14511         (*movsi_aarch64): Replace type mov_reg with fmovs.
14512         (*movdi_aarch64): Likewise
14513         (*movsf_aarch64): Likewise
14514         (*movdf_aarch64): Likewise
14515         * config/arm/arm.c
14516         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
14517         * config/arm/iwmmxt.md
14518         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
14519         * config/arm/arm1020e.md: Update with new attributes.
14520         * config/arm/cortex-a15-neon.md: Update with new attributes.
14521         * config/arm/cortex-a5.md: Update with new attributes.
14522         * config/arm/cortex-a53.md: Update with new attributes.
14523         * config/arm/cortex-a7.md: Update with new attributes.
14524         * config/arm/cortex-a8-neon.md: Update with new attributes.
14525         * config/arm/cortex-a9.md: Update with new attributes.
14526         * config/arm/cortex-m4-fpu.md: Update with new attributes.
14527         * config/arm/cortex-r4f.md: Update with new attributes.
14528         * config/arm/marvell-pj4.md: Update with new attributes.
14529         * config/arm/vfp11.md: Update with new attributes.
14531 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14533         * config/aarch64/aarch64.md
14534         (*madd<mode>): Fix type attribute.
14535         (*maddsi_uxtw): Likewise.
14536         (*msub<mode>): Likewise.
14537         (*msubsi_uxtw): Likewise.
14538         (<su_optab>maddsidi4): Likewise.
14539         (<su_optab>msubsidi4): Likewise.
14541 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14543         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
14544         * config/arm/arm.md (core_cycles): Remove fdiv.
14545         * config/arm/vfp.md:
14546         (*sqrtsf2_vfp): Update for attribute changes.
14547         (*sqrtdf2_vfp): Likewise.
14548         * config/aarch64/aarch64.md:
14549         (sqrt<mode>2): Update for attribute changes.
14550         * config/arm/arm1020e.md: Update with new attributes.
14551         * config/arm/cortex-a15-neon.md: Update with new attributes.
14552         * config/arm/cortex-a5.md: Update with new attributes.
14553         * config/arm/cortex-a53.md: Update with new attributes.
14554         * config/arm/cortex-a7.md: Update with new attributes.
14555         * config/arm/cortex-a8-neon.md: Update with new attributes.
14556         * config/arm/cortex-a9.md: Update with new attributes.
14557         * config/arm/cortex-m4-fpu.md: Update with new attributes.
14558         * config/arm/cortex-r4f.md: Update with new attributes.
14559         * config/arm/marvell-pj4.md: Update with new attributes.
14560         * config/arm/vfp11.md: Update with new attributes.
14562 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14564         * config/arm/types.md
14565         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
14566         * config/aarch64/aarch64.md
14567         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
14568         new attributes.
14569         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
14570         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
14571         (float<GPI:mode><GPF:mode>2): Likewise.
14572         * config/arm/vfp.md
14573         (*truncsisf2_vfp): Update with new attributes.
14574         (*truncsidf2_vfp): Likewise.
14575         (fixuns_truncsfsi2): Likewise.
14576         (fixuns_truncdfsi2): Likewise.
14577         (*floatsisf2_vfp): Likewise.
14578         (*floatsidf2_vfp): Likewise.
14579         (floatunssisf2): Likewise.
14580         (floatunssidf2): Likewise.
14581         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
14582         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
14583         * config/arm/arm1020e.md: Update with new attributes.
14584         * config/arm/cortex-a15-neon.md: Update with new attributes.
14585         * config/arm/cortex-a5.md: Update with new attributes.
14586         * config/arm/cortex-a53.md: Update with new attributes.
14587         * config/arm/cortex-a7.md: Update with new attributes.
14588         * config/arm/cortex-a8-neon.md: Update with new attributes.
14589         * config/arm/cortex-a9.md: Update with new attributes.
14590         * config/arm/cortex-m4-fpu.md: Update with new attributes.
14591         * config/arm/cortex-r4f.md: Update with new attributes.
14592         * config/arm/marvell-pj4.md: Update with new attributes.
14593         * config/arm/vfp11.md: Update with new attributes.
14595 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14597         * config/aarch64/arm_neon.h
14598         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
14599         (vqtbx<1,2,3,4><q>_s8): Likewise.
14601 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14603         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
14604         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
14605         (add<mode>3): Add type attribute.
14606         (add<mode>3): Likewise.
14607         (usadd<mode>3): Likewise.
14608         (ssadd<mode>3): Likewise.
14609         (sub<mode>3): Likewise.
14610         (sub<mode>3): Likewise.
14611         (ussub<mode>3): Likewise.
14612         (sssub<mode>3): Likewise.
14613         (ssmulsa3): Likewise.
14614         (usmulusa3): Likewise.
14615         (arm_usatsihi): Likewise.
14616         * config/arm/vfp.md
14617         (*movdi_vfp): Add types for all instructions.
14618         (*movdi_vfp_cortexa8): Likewise.
14619         (*movhf_vfp_neon): Likewise.
14620         (*movhf_vfp): Likewise.
14621         (*movdf_vfp): Likewise.
14622         (*thumb2_movdf_vfp): Likewise.
14623         (*thumb2_movdfcc_vfp): Likewise.
14624         * config/arm/arm.md: Add type attribute to all insn patterns.
14625         (*thumb1_adddi3): Add type attribute.
14626         (*arm_adddi3): Likewise.
14627         (*adddi_sesidi_di): Likewise.
14628         (*adddi_zesidi_di): Likewise.
14629         (*thumb1_addsi3): Likewise.
14630         (addsi3_compare0): Likewise.
14631         (*addsi3_compare0_scratch): Likewise.
14632         (*compare_negsi_si): Likewise.
14633         (cmpsi2_addneg): Likewise.
14634         (*addsi3_carryin_<optab>): Likewise.
14635         (*addsi3_carryin_alt2_<optab>): Likewise.
14636         (*addsi3_carryin_clobercc_<optab>): Likewise.
14637         (*subsi3_carryin): Likewise.
14638         (*subsi3_carryin_const): Likewise.
14639         (*subsi3_carryin_compare): Likewise.
14640         (*subsi3_carryin_compare_const): Likewise.
14641         (*arm_subdi3): Likewise.
14642         (*thumb_subdi3): Likewise.
14643         (*subdi_di_zesidi): Likewise.
14644         (*subdi_di_sesidi): Likewise.
14645         (*subdi_zesidi_di): Likewise.
14646         (*subdi_sesidi_di): Likewise.
14647         (*subdi_zesidi_ze): Likewise.
14648         (thumb1_subsi3_insn): Likewise.
14649         (*arm_subsi3_insn): Likewise.
14650         (*anddi3_insn): Likewise.
14651         (*anddi_zesidi_di): Likewise.
14652         (*anddi_sesdi_di): Likewise.
14653         (*ne_zeroextracts): Likewise.
14654         (*ne_zeroextracts): Likewise.
14655         (*ite_ne_zeroextr): Likewise.
14656         (*ite_ne_zeroextr): Likewise.
14657         (*anddi_notdi_di): Likewise.
14658         (*anddi_notzesidi): Likewise.
14659         (*anddi_notsesidi): Likewise.
14660         (andsi_notsi_si): Likewise.
14661         (thumb1_bicsi3): Likewise.
14662         (*iordi3_insn): Likewise.
14663         (*iordi_zesidi_di): Likewise.
14664         (*iordi_sesidi_di): Likewise.
14665         (*thumb1_iorsi3_insn): Likewise.
14666         (*xordi3_insn): Likewise.
14667         (*xordi_zesidi_di): Likewise.
14668         (*xordi_sesidi_di): Likewise.
14669         (*arm_xorsi3): Likewise.
14670         (*andsi_iorsi3_no): Likewise.
14671         (*smax_0): Likewise.
14672         (*smax_m1): Likewise.
14673         (*arm_smax_insn): Likewise.
14674         (*smin_0): Likewise.
14675         (*arm_smin_insn): Likewise.
14676         (*arm_umaxsi3): Likewise.
14677         (*arm_uminsi3): Likewise.
14678         (*minmax_arithsi): Likewise.
14679         (*minmax_arithsi_): Likewise.
14680         (*satsi_<SAT:code>): Likewise.
14681         (arm_ashldi3_1bit): Likewise.
14682         (arm_ashrdi3_1bit): Likewise.
14683         (arm_lshrdi3_1bit): Likewise.
14684         (*arm_negdi2): Likewise.
14685         (*thumb1_negdi2): Likewise.
14686         (*arm_negsi2): Likewise.
14687         (*thumb1_negsi2): Likewise.
14688         (*negdi_extendsid): Likewise.
14689         (*negdi_zero_extend): Likewise.
14690         (*arm_abssi2): Likewise.
14691         (*thumb1_abssi2): Likewise.
14692         (*arm_neg_abssi2): Likewise.
14693         (*thumb1_neg_abss): Likewise.
14694         (one_cmpldi2): Likewise.
14695         (extend<mode>di2): Likewise.
14696         (*compareqi_eq0): Likewise.
14697         (*arm_extendhisi2addsi): Likewise.
14698         (*arm_movdi): Likewise.
14699         (*thumb1_movdi_insn): Likewise.
14700         (*arm_movt): Likewise.
14701         (*thumb1_movsi_insn): Likewise.
14702         (pic_add_dot_plus_four): Likewise.
14703         (pic_add_dot_plus_eight): Likewise.
14704         (tls_load_dot_plus_eight): Likewise.
14705         (*thumb1_movhi_insn): Likewise.
14706         (*thumb1_movsf_insn): Likewise.
14707         (*movdf_soft_insn): Likewise.
14708         (*thumb_movdf_insn): Likewise.
14709         (cbranchsi4_insn): Likewise.
14710         (cbranchsi4_scratch): Likewise.
14711         (*negated_cbranchsi4): Likewise.
14712         (*tbit_cbranch): Likewise.
14713         (*tlobits_cbranch): Likewise.
14714         (*tstsi3_cbranch): Likewise.
14715         (*cbranchne_decr1): Likewise.
14716         (*addsi3_cbranch): Likewise.
14717         (*addsi3_cbranch_scratch): Likewise.
14718         (*arm_cmpdi_insn): Likewise.
14719         (*arm_cmpdi_unsig): Likewise.
14720         (*arm_cmpdi_zero): Likewise.
14721         (*thumb_cmpdi_zero): Likewise.
14722         (*deleted_compare): Likewise.
14723         (*mov_scc): Likewise.
14724         (*mov_negscc): Likewise.
14725         (*mov_notscc): Likewise.
14726         (*cstoresi_eq0_thumb1_insn): Likewise.
14727         (cstoresi_nltu_thumb1): Likewise.
14728         (cstoresi_ltu_thu): Likewise.
14729         (thumb1_addsi3_addgeu): Likewise.
14730         (*arm_jump): Likewise.
14731         (*thumb_jump): Likewise.
14732         (*check_arch2): Likewise.
14733         (arm_casesi_internal): Likewise.
14734         (thumb1_casesi_dispatch): Likewise.
14735         (*arm_indirect_jump): Likewise.
14736         (*thumb1_indirect_jump): Likewise.
14737         (nop): Likewise.
14738         (*and_scc): Likewise.
14739         (*ior_scc): Likewise.
14740         (*compare_scc): Likewise.
14741         (*cond_move): Likewise.
14742         (*cond_arith): Likewise.
14743         (*cond_sub): Likewise.
14744         (*cmp_ite0): Likewise.
14745         (*cmp_ite1): Likewise.
14746         (*cmp_and): Likewise.
14747         (*cmp_ior): Likewise.
14748         (*ior_scc_scc): Likewise.
14749         (*ior_scc_scc_cmp): Likewise.
14750         (*and_scc_scc): Likewise.
14751         (*and_scc_scc_cmp): Likewise.
14752         (*and_scc_scc_nod): Likewise.
14753         (*negscc): Likewise.
14754         (movcond_addsi): Likewise.
14755         (movcond): Likewise.
14756         (*ifcompare_plus_move): Likewise.
14757         (*if_plus_move): Likewise.
14758         (*ifcompare_move_plus): Likewise.
14759         (*if_move_plus): Likewise.
14760         (*ifcompare_arith_arith): Likewise.
14761         (*if_arith_arith): Likewise.
14762         (*ifcompare_arith_move): Likewise.
14763         (*if_arith_move): Likewise.
14764         (*ifcompare_move_arith): Likewise.
14765         (*if_move_arith): Likewise.
14766         (*ifcompare_move_not): Likewise.
14767         (*if_move_not): Likewise.
14768         (*ifcompare_not_move): Likewise.
14769         (*if_not_move): Likewise.
14770         (*ifcompare_shift_move): Likewise.
14771         (*if_shift_move): Likewise.
14772         (*ifcompare_move_shift): Likewise.
14773         (*if_move_shift): Likewise.
14774         (*ifcompare_shift_shift): Likewise.
14775         (*ifcompare_not_arith): Likewise.
14776         (*ifcompare_arith_not): Likewise.
14777         (*if_arith_not): Likewise.
14778         (*ifcompare_neg_move): Likewise.
14779         (*if_neg_move): Likewise.
14780         (*ifcompare_move_neg): Likewise.
14781         (*if_move_neg): Likewise.
14782         (prologue_thumb1_interwork): Likewise.
14783         (*cond_move_not): Likewise.
14784         (*sign_extract_onebit): Likewise.
14785         (*not_signextract_onebit): Likewise.
14786         (stack_tie): Likewise.
14787         (align_4): Likewise.
14788         (align_8): Likewise.
14789         (consttable_end): Likewise.
14790         (consttable_1): Likewise.
14791         (consttable_2): Likewise.
14792         (consttable_4): Likewise.
14793         (consttable_8): Likewise.
14794         (consttable_16): Likewise.
14795         (*thumb1_tablejump): Likewise.
14796         (prefetch): Likewise.
14797         (force_register_use): Likewise.
14798         (thumb_eh_return): Likewise.
14799         (load_tp_hard): Likewise.
14800         (load_tp_soft): Likewise.
14801         (tlscall): Likewise.
14802         (*arm_movtas_ze): Likewise.
14803         (*arm_rev): Likewise.
14804         (*arm_revsh): Likewise.
14805         (*arm_rev16): Likewise.
14806         * config/arm/thumb2.md
14807         (*thumb2_smaxsi3): Likewise.
14808         (*thumb2_sminsi3): Likewise.
14809         (*thumb32_umaxsi3): Likewise.
14810         (*thumb2_uminsi3): Likewise.
14811         (*thumb2_negdi2): Likewise.
14812         (*thumb2_abssi2): Likewise.
14813         (*thumb2_neg_abss): Likewise.
14814         (*thumb2_movsi_insn): Likewise.
14815         (tls_load_dot_plus_four): Likewise.
14816         (*thumb2_movhi_insn): Likewise.
14817         (*thumb2_mov_scc): Likewise.
14818         (*thumb2_mov_negs): Likewise.
14819         (*thumb2_mov_negs): Likewise.
14820         (*thumb2_mov_nots): Likewise.
14821         (*thumb2_mov_nots): Likewise.
14822         (*thumb2_movsicc_): Likewise.
14823         (*thumb2_movsfcc_soft_insn): Likewise.
14824         (*thumb2_indirect_jump): Likewise.
14825         (*thumb2_and_scc): Likewise.
14826         (*thumb2_ior_scc): Likewise.
14827         (*thumb2_ior_scc_strict_it): Likewise.
14828         (*thumb2_cond_move): Likewise.
14829         (*thumb2_cond_arith): Likewise.
14830         (*thumb2_cond_ari): Likewise.
14831         (*thumb2_cond_sub): Likewise.
14832         (*thumb2_negscc): Likewise.
14833         (*thumb2_movcond): Likewise.
14834         (thumb2_casesi_internal): Likewise.
14835         (thumb2_casesi_internal_pic): Likewise.
14836         (*thumb2_alusi3_short): Likewise.
14837         (*thumb2_mov<mode>_shortim): Likewise.
14838         (*thumb2_addsi_short): Likewise.
14839         (*thumb2_subsi_short): Likewise.
14840         (thumb2_addsi3_compare0): Likewise.
14841         (*thumb2_cbz): Likewise.
14842         (*thumb2_cbnz): Likewise.
14843         (*thumb2_one_cmplsi2_short): Likewise.
14844         (*thumb2_negsi2_short): Likewise.
14845         (*orsi_notsi_si): Likewise.
14846         * config/arm/arm1020e.md: Update with new attributes.
14847         * config/arm/arm1026ejs.md: Update with new attributes.
14848         * config/arm/arm1136jfs.md: Update with new attributes.
14849         * config/arm/arm926ejs.md: Update with new attributes.
14850         * config/arm/cortex-a15.md: Update with new attributes.
14851         * config/arm/cortex-a5.md: Update with new attributes.
14852         * config/arm/cortex-a53.md: Update with new attributes.
14853         * config/arm/cortex-a7.md: Update with new attributes.
14854         * config/arm/cortex-a8.md: Update with new attributes.
14855         * config/arm/cortex-a9.md: Update with new attributes.
14856         * config/arm/cortex-m4.md: Update with new attributes.
14857         * config/arm/cortex-r4.md: Update with new attributes.
14858         * config/arm/fa526.md: Update with new attributes.
14859         * config/arm/fa606te.md: Update with new attributes.
14860         * config/arm/fa626te.md: Update with new attributes.
14861         * config/arm/fa726te.md: Update with new attributes.
14863 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14865         * config/aarch64/aarch64-simd.md
14866         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
14867         <vwx> iterator to ensure correct register choice.
14868         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
14869         (aarch64_sqdmull_n<mode>): Likewise.
14870         (aarch64_sqdmull2_n<mode>_internal): Likewise.
14871         * config/aarch64/arm_neon.h
14872         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
14873         (vml<as><q>_n_<su>16): Likewise.
14874         (vml<as>l_high_lane<q>_<su>16): Likewise.
14875         (vml<as>l_high_n_<su>16): Likewise.
14876         (vml<as>l_lane<q>_<su>16): Likewise.
14877         (vml<as>l_n_<su>16): Likewise.
14878         (vmul<q>_lane<q>_<su>16): Likewise.
14879         (vmul<q>_n_<su>16): Likewise.
14880         (vmull_lane<q>_<su>16): Likewise.
14881         (vmull_n_<su>16): Likewise.
14882         (vmull_high_lane<q>_<su>16): Likewise.
14883         (vmull_high_n_<su>16): Likewise.
14884         (vqrdmulh<q>_n_s16): Likewise.
14886 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
14888         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
14889         have the correct lane parameter.
14891 2013-09-06  Richard Biener <rguenther@suse.de>
14893         * cfganal.c (control_dependences::~control_dependences):
14894         Properly free all of the vector.
14896 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
14898         PR target/58269
14899         * config/i386/i386.c (ix86_conditional_register_usage):
14900         Proper initialize extended SSE registers.
14902 2013-09-06  Jan Hubicka  <jh@suse.cz>
14904         PR tree-optimization/58311
14905         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
14907 2013-09-06  Jan Hubicka  <jh@suse.cz>
14909         * Makefile.in (tree-sra.o): Update dependencies.
14910         * tree-sra.c: Include ipa-utils.h
14911         (scan_function): Use recursive_call_p.
14912         (has_caller_p): New function.
14913         (cgraph_for_node_and_aliases): Count also callers of aliases.
14915 2013-09-06  Jan Hubicka  <jh@suse.cz>
14917         PR middle-end/58094
14918         * cgraph.h (symtab_semantically_equivalent_p): Declare.
14919         * tree-tailcall.c: Include ipa-utils.h.
14920         (find_tail_calls): Use it.
14921         * ipa-pure-const.c (check_call): Likewise.
14922         * ipa-utils.c (recursive_call_p): New function.
14923         * ipa-utils.h (recursive_call_p): Dclare.
14924         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
14925         (symtab_semantically_equivalent_p): New function.
14926         * Makefile.in (tree-tailcall.o): Update dependencies.
14928 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
14930         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
14931         non-inlinable part.
14933 2013-09-06  Richard Biener  <rguenther@suse.de>
14935         * lto-streamer.h (lto_global_var_decls): Remove.
14936         * Makefile.in (OBJS): Remove lto-symtab.o.
14937         (lto-symtab.o): Remove.
14938         (GTFILES): Remove lto-symtab.c
14939         * lto-symtab.c: Move to lto/
14941 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14943         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
14944         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
14945         (UNSPEC_FPINT_RINT): New constant definitions.
14946         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
14947         definition with 2 attributes.
14948         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
14949         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
14950         definitions.
14952 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14954         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
14955         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
14956         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
14957         attribute to "z196_alone".
14958         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
14959         "zEC12_simple".
14961 2013-09-06  Richard Biener  <rguenther@suse.de>
14963         * basic-block.h (class control_dependences): New.
14964         * tree-ssa-dce.c (control_dependence_map): Remove.
14965         (cd): New global.
14966         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
14967         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
14968         find_pdom, find_control_dependence, find_all_control_dependences):
14969         Move to cfganal.c.
14970         (mark_control_dependent_edges_necessary,
14971         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
14972         tree_dce_done, perform_tree_ssa_dce): Adjust.
14973         * cfganal.c (set_control_dependence_map_bit,
14974         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
14975         find_all_control_dependences): Move from tree-ssa-dce.c and
14976         implement as methods of control_dependences class.
14977         (control_dependences::control_dependences): New.
14978         (control_dependences::~control_dependences): Likewise.
14979         (control_dependences::get_edges_dependent_on): Likewise.
14980         (control_dependences::get_edge): Likewise.
14982 2013-09-04  Jan Hubicka  <jh@suse.cz>
14984         * tree.c (types_same_for_odr): Drop overactive check.
14985         * ipa-devirt.c (hash_type_name): Likewise.
14987 2013-09-04  Jan Hubicka  <jh@suse.cz>
14989         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
14990         (analyze_functions): ... here.
14992 2013-09-04  Jan Hubicka  <jh@suse.cz>
14994         PR middle-end/58201
14995         * cgraphunit.c (analyze_functions): Clear AUX fields
14996         after processing; initialize assembler name has.
14998 2013-09-05  Jeff Law  <law@redhat.com>
15000         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
15001         from thread_around_empty_block.  Record threading path into PATH.
15002         Recurse if threading through the initial block is successful.
15003         (thread_across_edge): Corresponding changes to slightly simplify.
15005 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15007         * config/aarch64/aarch64.md
15008         (type): Remove frecpe, frecps, frecpx.
15009         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
15010         fix to be a TARGET_SIMD instruction.
15011         (aarch64_frecps): Remove.
15012         * config/aarch64/aarch64-simd.md
15013         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
15014         (aarch64_frecps<mode>): Handle all float/vector of float modes.
15016 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15017             Sofiane Naci  <sofiane.naci@arm.com>
15019         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
15020         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
15021         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
15022         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
15023         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
15024         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
15025         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
15026         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
15027         into "clz, "rbit".  Rename "shift" to "shift_imm".
15028         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
15029         changes.  Update for attribute changes all occurrences of arlo_* and
15030         shift* types.
15031         * config/arm/arm-fixed.md: Update for attribute changes
15032         all occurrences of arlo_* types.
15033         * config/arm/thumb2.md: Update for attribute changes all occurrences
15034         of arlo_* types.
15035         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
15036         (cortexa7_older_only): Likewise.
15037         (cortexa7_younger):  Likewise.
15038         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
15039         (1020alu_shift_op): Likewise.
15040         (1020alu_shift_reg_op): Likewise.
15041         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
15042         (alu_shift_op): Likewise.
15043         (alu_shift_reg_op): Likewise.
15044         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
15045         (11_alu_shift_op): Likewise.
15046         (11_alu_shift_reg_op): Likewise.
15047         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
15048         (9_alu_shift_reg_op): Likewise.
15049         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
15050         attribute changes.
15051         (cortex_a15_alu_shift): Likewise.
15052         (cortex_a15_alu_shift_reg): Likewise.
15053         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
15054         attribute changes.
15055         (cortex_a5_alu_shift): Likewise.
15056         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
15057         attribute changes.
15058         (cortex_a53_alu_shift): Likewise.
15059         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
15060         attribute changes.
15061         (cortex_a7_alu_reg): Likewise.
15062         (cortex_a7_alu_shift): Likewise.
15063         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
15064         attribute changes.
15065         (cortex_a8_alu_shift): Likewise.
15066         (cortex_a8_alu_shift_reg): Likewise.
15067         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
15068         (cortex_a9_dp_shift): Likewise.
15069         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
15070         attribute changes.
15071         * config/arm/cortex-r4.md
15072         (cortex_r4_alu): Update for attribute changes.
15073         (cortex_r4_mov): Likewise.
15074         (cortex_r4_alu_shift_reg): Likewise.
15075         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
15076         (526_alu_shift_op): Likewise.
15077         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
15078         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
15079         (626te_alu_shift_op): Likewise.
15080         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
15081         (726te_alu_shift_op): Likewise.
15082         (726te_alu_shift_reg_op): Likewise.
15083         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
15084         (mp626_alu_shift_op): Likewise.
15085         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
15086         (pj4_alu_conds): Likewise.
15087         (pj4_shift): Likewise.
15088         (pj4_shift_conds): Likewise.
15089         (pj4_alu_shift): Likewise.
15090         (pj4_alu_shift_conds): Likewise.
15091         * config/aarch64/aarch64.md: Update for attribute change
15092         all occurrences of arlo_* and shift* types.
15094 2013-09-05  Mike Stump  <mikestump@comcast.net>
15096         * tree.h: Move documentation for tree_function_decl to tree-core.h
15097         with the declaration.
15099 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
15101         PR target/58139
15102         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
15103         looking for widest mode.
15105 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
15107         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
15109 2013-09-05  Richard Biener  <rguenther@suse.de>
15111         PR tree-optimization/58137
15112         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
15113         Do not create vectors of pointers.
15114         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
15115         types for the components of the vector initializer.
15116         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
15117         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
15119 2013-09-05  Martin Jambor  <mjambor@suse.cz>
15121         * ipa-prop.c (remove_described_reference): Accept missing references,
15122         return false if that hppens, otherwise return true.
15123         (cgraph_node_for_jfunc): New function.
15124         (try_decrement_rdesc_refcount): Likewise.
15125         (try_make_edge_direct_simple_call): Use them.
15126         (ipa_edge_removal_hook): Remove references from rdescs.
15127         (ipa_edge_duplication_hook): Clone rdescs and their references
15128         when the new edge has the same caller as the old one.
15129         * cgraph.c (cgraph_resolve_speculation): Remove speculative
15130         reference before removing any edges.
15132 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
15134         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
15135         initial store.
15136         * thumb2.md (thumb2_storewb_parisi): New pattern.
15138 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
15140         * config/aarch64/aarch64-option-extensions.def: Add
15141         AARCH64_OPT_EXTENSION of 'crc'.
15142         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
15143         (AARCH64_ISA_CRC): Ditto.
15144         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
15145         description of the CRC extension.
15147 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15149         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
15150         * config/rs6000/linux.h: Ditto.
15151         * alpha/linux.h: Ditto.
15152         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
15153         no_c99_libc_has_function.
15154         * config/c6x/uclinux-elf.h: Ditto.
15155         * config/lm32/uclinux-elf.h: Ditto.
15156         * config/m68k/uclinux.h: Ditto.
15157         * config/moxie/uclinux.h: Ditto.
15158         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
15159         (crisv32-*-linux*, cris-*-linux*): Ditto.
15160         * config/bfin/bfin.c: Include "tm_p.h".
15162 2013-09-05  Richard Biener  <rguenther@suse.de>
15164         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
15165         check for a definition without a basic-block.
15167 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15168             Sofiane Naci <sofiane.naci@arm.com>
15170         * config/aarch64/aarch64.md
15171         (*movti_aarch64): Rename r_2_f and f_2_r.
15172         (*movsf_aarch64): Likewise.
15173         (*movdf_aarch64): Likewise.
15174         (*movtf_aarch64): Likewise.
15175         (aarch64_movdi_<mode>low): Likewise.
15176         (aarch64_movdi_<mode>high): Likewise.
15177         (aarch64_mov<mode>high_di): Likewise.
15178         (aarch64_mov<mode>low_di): Likewise.
15179         (aarch64_movtilow_tilow): Likewise.
15180         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
15181         values to config/arm/types.md
15182         (attribute "conds"): Update for attribute change.
15183         (anddi3_insn): Likewise.
15184         (iordi3_insn): Likewise.
15185         (xordi3_insn): Likewise.
15186         (one_cmpldi2): Likewise.
15187         * config/arm/types.md (type): Add Neon types.
15188         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
15189         use "type" attribute.
15190         (movmisalign<mode>_neon_store): Likewise.
15191         (movmisalign<mode>_neon_load): Likewise.
15192         (vec_set<mode>_internal): Likewise.
15193         (vec_setv2di_internal): Likewise.
15194         (vec_extract<mode>): Likewise.
15195         (vec_extractv2di): Likewise.
15196         (add<mode>3_neon): Likewise.
15197         (adddi3_neon): Likewise.
15198         (sub<mode>3_neon): Likewise.
15199         (subdi3_neon): Likewise.
15200         (mul<mode>3_neon): Likewise.
15201         (mul<mode>3add<mode>_neon): Likewise.
15202         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
15203         (fma<VCVTF:mode>4)): Likewise.
15204         (fma<VCVTF:mode>4_intrinsic): Likewise.
15205         (fmsub<VCVTF:mode>4)): Likewise.
15206         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
15207         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
15208         (ior<mode>3): Likewise.
15209         (and<mode>3): Likewise.
15210         (anddi3_neon): Likewise.
15211         (orn<mode>3_neon): Likewise.
15212         (orndi3_neon): Likewise.
15213         (bic<mode>3_neon): Likewise.
15214         (bicdi3_neon): Likewise.
15215         (xor<mode>3): Likewise.
15216         (one_cmpl<mode>2): Likewise.
15217         (abs<mode>2): Likewise.
15218         (neg<mode>2): Likewise.
15219         (umin<mode>3_neon): Likewise.
15220         (umax<mode>3_neon): Likewise.
15221         (smin<mode>3_neon): Likewise.
15222         (smax<mode>3_neon): Likewise.
15223         (vashl<mode>3): Likewise.
15224         (vashr<mode>3_imm): Likewise.
15225         (vlshr<mode>3_imm): Likewise.
15226         (ashl<mode>3_signed): Likewise.
15227         (ashl<mode>3_unsigned): Likewise.
15228         (neon_load_count): Likewise.
15229         (ashldi3_neon_noclobber): Likewise.
15230         (signed_shift_di3_neon): Likewise.
15231         (unsigned_shift_di3_neon): Likewise.
15232         (ashrdi3_neon_imm_noclobber): Likewise.
15233         (lshrdi3_neon_imm_noclobber): Likewise.
15234         (widen_ssum<mode>3): Likewise.
15235         (widen_usum<mode>3): Likewise.
15236         (quad_halves_<code>v4si): Likewise.
15237         (quad_halves_<code>v4sf): Likewise.
15238         (quad_halves_<code>v8hi): Likewise.
15239         (quad_halves_<code>v16qi): Likewise.
15240         (reduc_splus_v2di): Likewise.
15241         (neon_vpadd_internal<mode>): Likewise.
15242         (neon_vpsmin<mode>): Likewise.
15243         (neon_vpsmax<mode>): Likewise.
15244         (neon_vpumin<mode>): Likewise.
15245         (neon_vpumax<mode>): Likewise.
15246         (ss_add<mode>_neon): Likewise.
15247         (us_add<mode>_neon): Likewise.
15248         (ss_sub<mode>_neon): Likewise.
15249         (us_sub<mode>_neon): Likewise.
15250         (neon_vadd<mode>_unspec): Likewise.
15251         (neon_vaddl<mode>): Likewise.
15252         (neon_vaddw<mode>): Likewise.
15253         (neon_vhadd<mode>): Likewise.
15254         (neon_vqadd<mode>): Likewise.
15255         (neon_vaddhn<mode>): Likewise.
15256         (neon_vmul<mode>): Likewise.
15257         (neon_vmla<mode>): Likewise.
15258         (neon_vmlal<mode>): Likewise.
15259         (neon_vmls<mode>): Likewise.
15260         (neon_vmlsl<mode>): Likewise.
15261         (neon_vqdmulh<mode>): Likewise.
15262         (neon_vqdmlal<mode>): Likewise.
15263         (neon_vqdmlsl<mode>): Likewise.
15264         (neon_vmull<mode>): Likewise.
15265         (neon_vqdmull<mode>): Likewise.
15266         (neon_vsub<mode>_unspec): Likewise.
15267         (neon_vsubl<mode>): Likewise.
15268         (neon_vsubw<mode>): Likewise.
15269         (neon_vqsub<mode>): Likewise.
15270         (neon_vhsub<mode>): Likewise.
15271         (neon_vsubhn<mode>): Likewise.
15272         (neon_vceq<mode>): Likewise.
15273         (neon_vcge<mode>): Likewise.
15274         (neon_vcgeu<mode>): Likewise.
15275         (neon_vcgt<mode>): Likewise.
15276         (neon_vcgtu<mode>): Likewise.
15277         (neon_vcle<mode>): Likewise.
15278         (neon_vclt<mode>): Likewise.
15279         (neon_vcage<mode>): Likewise.
15280         (neon_vcagt<mode>): Likewise.
15281         (neon_vtst<mode>): Likewise.
15282         (neon_vabd<mode>): Likewise.
15283         (neon_vabdl<mode>): Likewise.
15284         (neon_vaba<mode>): Likewise.
15285         (neon_vabal<mode>): Likewise.
15286         (neon_vmax<mode>): Likewise.
15287         (neon_vmin<mode>): Likewise.
15288         (neon_vpaddl<mode>): Likewise.
15289         (neon_vpadal<mode>): Likewise.
15290         (neon_vpmax<mode>): Likewise.
15291         (neon_vpmin<mode>): Likewise.
15292         (neon_vrecps<mode>): Likewise.
15293         (neon_vrsqrts<mode>): Likewise.
15294         (neon_vqabs<mode>): Likewise.
15295         (neon_vqneg<mode>): Likewise.
15296         (neon_vcls<mode>): Likewise.
15297         (clz<mode>2): Likewise.
15298         (popcount<mode>2): Likewise.
15299         (neon_vrecpe): Likewise.
15300         (neon_vrsqrte): Likewise.
15301         (neon_vget_lane<mode>_sext_internal): Likewise.
15302         (neon_vget_lane<mode>_zext_internal): Likewise.
15303         (neon_vdup_n<mode>): Likewise.
15304         (neon_vdup_nv2di): Likewise.
15305         (neon_vdpu_lane<mode>_internal): Likewise.
15306         (neon_vswp<mode>): Likewise.
15307         (float<mode><V_cvtto>2): Likewise.
15308         (floatuns<mode><V_cvtto>2): Likewise.
15309         (fix_trunc<mode><V_cvtto>)2): Likewise
15310         (fixuns_trunc<mode><V_cvtto)2): Likewise.
15311         (neon_vcvt<mode>): Likewise.
15312         (neon_vcvtv4sfv4hf): Likewise.
15313         (neon_vcvtv4hfv4sf): Likewise.
15314         (neon_vcvt_n<mode>): Likewise.
15315         (neon_vmovn<mode>): Likewise.
15316         (neon_vqmovn<mode>): Likewise.
15317         (neon_vqmovun<mode>): Likewise.
15318         (neon_vmovl<mode>): Likewise.
15319         (neon_vmul_lane<mode>): Likewise.
15320         (neon_vmull_lane<mode>): Likewise.
15321         (neon_vqdmull_lane<mode>): Likewise.
15322         (neon_vqdmulh_lane<mode>): Likewise.
15323         (neon_vmla_lane<mode>): Likewise.
15324         (neon_vmlal_lane<mode>): Likewise.
15325         (neon_vqdmlal_lane<mode>): Likewise.
15326         (neon_vmls_lane<mode>): Likewise.
15327         (neon_vmlsl_lane<mode>): Likewise.
15328         (neon_vqdmlsl_lane<mode>): Likewise.
15329         (neon_vext<mode>): Likewise.
15330         (neon_vrev64<mode>): Likewise.
15331         (neon_vrev32<mode>): Likewise.
15332         (neon_vrev16<mode>): Likewise.
15333         (neon_vbsl<mode>_internal): Likewise.
15334         (neon_vshl<mode>): Likewise.
15335         (neon_vqshl<mode>): Likewise.
15336         (neon_vshr_n<mode>): Likewise.
15337         (neon_vshrn_n<mode>): Likewise.
15338         (neon_vqshrn_n<mode>): Likewise.
15339         (neon_vqshrun_n<mode>): Likewise.
15340         (neon_vshl_n<mode>): Likewise.
15341         (neon_vqshl_n<mode>): Likewise.
15342         (neon_vqshlu_n<mode>): Likewise.
15343         (neon_vshll_n<mode>): Likewise.
15344         (neon_vsra_n<mode>): Likewise.
15345         (neon_vsri_n<mode>): Likewise.
15346         (neon_vsli_n<mode>): Likewise.
15347         (neon_vtbl1v8qi): Likewise.
15348         (neon_vtbl2v8qi): Likewise.
15349         (neon_vtbl3v8qi): Likewise.
15350         (neon_vtbl4v8qi): Likewise.
15351         (neon_vtbx1v8qi): Likewise.
15352         (neon_vtbx2v8qi): Likewise.
15353         (neon_vtbx3v8qi): Likewise.
15354         (neon_vtbx4v8qi): Likewise.
15355         (neon_vtrn<mode>_internal): Likewise.
15356         (neon_vzip<mode>_internal): Likewise.
15357         (neon_vuzp<mode>_internal): Likewise.
15358         (neon_vld1<mode>): Likewise.
15359         (neon_vld1_lane<mode>): Likewise.
15360         (neon_vld1_dup<mode>): Likewise.
15361         (neon_vld1_dupv2di): Likewise.
15362         (neon_vst1<mode>): Likewise.
15363         (neon_vst1_lane<mode>): Likewise.
15364         (neon_vld2<mode>): Likewise.
15365         (neon_vld2_lane<mode>): Likewise.
15366         (neon_vld2_dup<mode>): Likewise.
15367         (neon_vst2<mode>): Likewise.
15368         (neon_vst2_lane<mode>): Likewise.
15369         (neon_vld3<mode>): Likewise.
15370         (neon_vld3qa<mode>): Likewise.
15371         (neon_vld3qb<mode>): Likewise.
15372         (neon_vld3_lane<mode>): Likewise.
15373         (neon_vld3_dup<mode>): Likewise.
15374         (neon_vst3<mode>): Likewise.
15375         (neon_vst3qa<mode>): Likewise.
15376         (neon_vst3qb<mode>): Likewise.
15377         (neon_vst3_lane<mode>): Likewise.
15378         (neon_vld4<mode>): Likewise.
15379         (neon_vld4qa<mode>): Likewise.
15380         (neon_vld4qb<mode>): Likewise.
15381         (neon_vld4_lane<mode>): Likewise.
15382         (neon_vld4_dup<mode>): Likewise.
15383         (neon_vst4<mode>): Likewise.
15384         (neon_vst4qa<mode>): Likewise.
15385         (neon_vst4qb<mode>): Likewise.
15386         (neon_vst4_lane<mode>): Likewise.
15387         (neon_vec_unpack<US>_lo_<mode>): Likewise.
15388         (neon_vec_unpack<US>_hi_<mode>): Likewise.
15389         (neon_vec_<US>mult_lo_<mode>): Likewise.
15390         (neon_vec_<US>mult_hi_<mode>): Likewise.
15391         (neon_vec_<US>shiftl_<mode>): Likewise.
15392         (neon_unpack<US>_<mode>): Likewise.
15393         (neon_vec_<US>mult_<mode>): Likewise.
15394         (vec_pack_trunc_<mode>): Likewise.
15395         (neon_vec_pack_trunk_<mode>): Likewise.
15396         (neon_vabd<mode>_2): Likewise.
15397         (neon_vabd<mode>_3): Likewise.
15398         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
15399         (thumb2_movsi_vfp): Likewise.
15400         (movdi_vfp): Likewise.
15401         (movdi_vfp_cortexa8): Likewise.
15402         (movhf_vfp_neon): Likewise.
15403         (movhf_vfp): Likewiwse.
15404         (movsf_vfp): Likewiwse.
15405         (thumb2_movsf_vfp): Likewiwse.
15406         (movdf_vfp): Likewise.
15407         (thumb2_movdf_vfp): Likewise.
15408         (movsfcc_vfp): Likewise.
15409         (thumb2_movsfcc_vfp): Likewise.
15410         (movdfcc_vfp): Likewise.
15411         (thumb2_movdfcc_vfp): Likewise.
15412         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
15413         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
15414         (v10_v2c): Likewise.
15415         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
15416         attribute change.
15417         (cortex_a15_neon_int_2): Likewise.
15418         (cortex_a15_neon_int_3): Likewise.
15419         (cortex_a15_neon_int_4): Likewise.
15420         (cortex_a15_neon_int_5): Likewise.
15421         (cortex_a15_neon_vqneg_vqabs): Likewise.
15422         (cortex_a15_neon_vmov): Likewise.
15423         (cortex_a15_neon_vaba): Likewise.
15424         (cortex_a15_neon_vaba_qqq): Likewise.
15425         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15426         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15427         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
15428         scalar_64_32_long_scalar): Likewise.
15429         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15430         (cortex_a15_neon_mla_qqq_8_16): Likewise.
15431         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15432         lotype_qdd_64_32_long): Likewise.
15433         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15434         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15435         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
15436         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15437         (cortex_a15_neon_shift_1): Likewise.
15438         (cortex_a15_neon_shift_2): Likewise.
15439         (cortex_a15_neon_shift_3): Likewise.
15440         (cortex_a15_neon_vshl_ddd): Likewise.
15441         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15442         (cortex_a15_neon_vsra_vrsra): Likewise.
15443         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
15444         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
15445         (cortex_a15_neon_fp_vmul_ddd): Likewise.
15446         (cortex_a15_neon_fp_vmul_qqd): Likewise.
15447         (cortex_a15_neon_fp_vmla_ddd): Likewise.
15448         (cortex_a15_neon_fp_vmla_qqq): Likewise.
15449         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
15450         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
15451         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15452         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15453         (cortex_a15_neon_bp_simple): Likewise.
15454         (cortex_a15_neon_bp_2cycle): Likewise.
15455         (cortex_a15_neon_bp_3cycle): Likewise.
15456         (cortex_a15_neon_vld1_1_2_regs): Likewise.
15457         (cortex_a15_neon_vld1_3_4_regs): Likewise.
15458         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15459         (cortex_a15_neon_vld2_4_regs): Likewise.
15460         (cortex_a15_neon_vld3_vld4): Likewise.
15461         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15462         (cortex_a15_neon_vst1_3_4_regs): Likewise.
15463         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
15464         (cortex_a15_neon_vst3_vst4): Likewise.
15465         (cortex_a15_neon_vld1_vld2_lane): Likewise.
15466         (cortex_a15_neon_vld3_vld4_lane" 10
15467         (cortex_a15_neon_vst1_vst2_lane): Likewise.
15468         (cortex_a15_neon_vst3_vst4_lane): Likewise.
15469         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
15470         (cortex_a15_neon_ldm_2): Likewise.0
15471         (cortex_a15_neon_stm_2): Likewise.
15472         (cortex_a15_neon_mcr): Likewise.
15473         (cortex_a15_neon_mcr_2_mcrr): Likewise.
15474         (cortex_a15_neon_mrc): Likewise.
15475         (cortex_a15_neon_mrrc): Likewise.
15476         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
15477         change.
15478         (cortex_a15_alu_shift): Likewise.
15479         (cortex_a15_alu_shift_reg): Likewise.
15480         (cortex_a15_mult32): Likewise.
15481         (cortex_a15_mult64): Likewise.
15482         (cortex_a15_block): Likewise.
15483         (cortex_a15_branch): Likewise.
15484         (cortex_a15_load1): Likewise.
15485         (cortex_a15_load3): Likewise.
15486         (cortex_a15_store1): Likewise.
15487         (cortex_a15_store3): Likewise.
15488         (cortex_a15_call): Likewise.
15489         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
15490         (cortex_a5_f2r): Likewise.
15491         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
15492         change.
15493         (cortex_a53_f2r): Likewise.
15494         * config/arm/cortex-a7.md
15495         (cortex_a7_branch): Update for attribute change.
15496         (cortex_a7_call): Likewise.
15497         (cortex_a7_alu_imm): Likewise.
15498         (cortex_a7_alu_reg): Likewise.
15499         (cortex_a7_alu_shift): Likewise.
15500         (cortex_a7_mul): Likewise.
15501         (cortex_a7_load1): Likewise.
15502         (cortex_a7_store1): Likewise.
15503         (cortex_a7_load2): Likewise.
15504         (cortex_a7_store2): Likewise.
15505         (cortex_a7_load3): Likewise.
15506         (cortex_a7_store3): Likewise.
15507         (cortex_a7_load4): Likewise.
15508         (cortex_a7_store4): Likewise.
15509         (cortex_a7_fpalu): Likewise.
15510         (cortex_a7_fconst): Likewise.
15511         (cortex_a7_fpmuls): Likewise.
15512         (cortex_a7_neon_mul): Likewise.
15513         (cortex_a7_fpmacs): Likewise.
15514         (cortex_a7_neon_mla: Likewise.
15515         (cortex_a7_fpmuld: Likewise.
15516         (cortex_a7_fpmacd: Likewise.
15517         (cortex_a7_fpfmad: Likewise.
15518         (cortex_a7_fdivs: Likewise.
15519         (cortex_a7_fdivd: Likewise.
15520         (cortex_a7_r2f: Likewise.
15521         (cortex_a7_f2r: Likewise.
15522         (cortex_a7_f_flags: Likewise.
15523         (cortex_a7_f_loads: Likewise.
15524         (cortex_a7_f_loadd: Likewise.
15525         (cortex_a7_f_stores: Likewise.
15526         (cortex_a7_f_stored: Likewise.
15527         (cortex_a7_neon): Likewise.
15528         * config/arm/cortex-a8-neon.md
15529         (cortex_a8_neon_mrc): Update for attribute change.
15530         (cortex_a8_neon_mrrc): Likewise.
15531         (cortex_a8_neon_int_1): Likewise.
15532         (cortex_a8_neon_int_2): Likewise.
15533         (cortex_a8_neon_int_3): Likewise.
15534         (cortex_a8_neon_int_4): Likewise.
15535         (cortex_a8_neon_int_5): Likewise.
15536         (cortex_a8_neon_vqneg_vqabs): Likewise.
15537         (cortex_a8_neon_vmov): Likewise.
15538         (cortex_a8_neon_vaba): Likewise.
15539         (cortex_a8_neon_vaba_qqq): Likewise.
15540         (cortex_a8_neon_vsma): Likewise.
15541         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15542         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15543         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
15544         long_scalar): Likewise.
15545         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15546         (cortex_a8_neon_mla_qqq_8_16): Likewise.
15547         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15548         long_scalar_qdd_64_32_long): Likewise.
15549         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15550         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15551         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
15552         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15553         (cortex_a8_neon_shift_1): Likewise.
15554         (cortex_a8_neon_shift_2): Likewise.
15555         (cortex_a8_neon_shift_3): Likewise.
15556         (cortex_a8_neon_vshl_ddd): Likewise.
15557         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15558         (cortex_a8_neon_vsra_vrsra): Likewise.
15559         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
15560         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
15561         (cortex_a8_neon_fp_vsum): Likewise.
15562         (cortex_a8_neon_fp_vmul_ddd): Likewise.
15563         (cortex_a8_neon_fp_vmul_qqd): Likewise.
15564         (cortex_a8_neon_fp_vmla_ddd): Likewise.
15565         (cortex_a8_neon_fp_vmla_qqq): Likewise.
15566         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
15567         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
15568         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15569         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15570         (cortex_a8_neon_bp_simple): Likewise.
15571         (cortex_a8_neon_bp_2cycle): Likewise.
15572         (cortex_a8_neon_bp_3cycle): Likewise.
15573         (cortex_a8_neon_ldr): Likewise.
15574         (cortex_a8_neon_str): Likewise.
15575         (cortex_a8_neon_vld1_1_2_regs): Likewise.
15576         (cortex_a8_neon_vld1_3_4_regs): Likewise.
15577         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15578         (cortex_a8_neon_vld2_4_regs): Likewise.
15579         (cortex_a8_neon_vld3_vld4): Likewise.
15580         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15581         (cortex_a8_neon_vst1_3_4_regs): Likewise.
15582         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
15583         (cortex_a8_neon_vst3_vst4): Likewise.
15584         (cortex_a8_neon_vld1_vld2_lane): Likewise.
15585         (cortex_a8_neon_vld3_vld4_lane): Likewise.
15586         (cortex_a8_neon_vst1_vst2_lane): Likewise.
15587         (cortex_a8_neon_vst3_vst4_lane): Likewise.
15588         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
15589         (cortex_a8_neon_mcr): Likewise.
15590         (cortex_a8_neon_mcr_2_mcrr): Likewise.
15591         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
15592         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
15593         change.
15594         (ca9_neon_mrrc): Likewise.
15595         (cortex_a9_neon_int_1): Likewise.
15596         (cortex_a9_neon_int_2): Likewise.
15597         (cortex_a9_neon_int_3): Likewise.
15598         (cortex_a9_neon_int_4): Likewise.
15599         (cortex_a9_neon_int_5): Likewise.
15600         (cortex_a9_neon_vqneg_vqabs): Likewise.
15601         (cortex_a9_neon_vmov): Likewise.
15602         (cortex_a9_neon_vaba): Likewise.
15603         (cortex_a9_neon_vaba_qqq): Likewise.
15604         (cortex_a9_neon_vsma): Likewise.
15605         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15606         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15607         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
15608         long_scalar): Likewise.
15609         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15610         (cortex_a9_neon_mla_qqq_8_16): Likewise.
15611         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15612         long_scalar_qdd_64_32_long): Likewise.
15613         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15614         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15615         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
15616         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15617         (cortex_a9_neon_shift_1): Likewise.
15618         (cortex_a9_neon_shift_2): Likewise.
15619         (cortex_a9_neon_shift_3): Likewise.
15620         (cortex_a9_neon_vshl_ddd): Likewise.
15621         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15622         (cortex_a9_neon_vsra_vrsra): Likewise.
15623         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
15624         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
15625         (cortex_a9_neon_fp_vsum): Likewise.
15626         (cortex_a9_neon_fp_vmul_ddd): Likewise.
15627         (cortex_a9_neon_fp_vmul_qqd): Likewise.
15628         (cortex_a9_neon_fp_vmla_ddd): Likewise.
15629         (cortex_a9_neon_fp_vmla_qqq): Likewise.
15630         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
15631         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
15632         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15633         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15634         (cortex_a9_neon_bp_simple): Likewise.
15635         (cortex_a9_neon_bp_2cycle): Likewise.
15636         (cortex_a9_neon_bp_3cycle): Likewise.
15637         (cortex_a9_neon_ldr): Likewise.
15638         (cortex_a9_neon_str): Likewise.
15639         (cortex_a9_neon_vld1_1_2_regs): Likewise.
15640         (cortex_a9_neon_vld1_3_4_regs): Likewise.
15641         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15642         (cortex_a9_neon_vld2_4_regs): Likewise.
15643         (cortex_a9_neon_vld3_vld4): Likewise.
15644         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15645         (cortex_a9_neon_vst1_3_4_regs): Likewise.
15646         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
15647         (cortex_a9_neon_vst3_vst4): Likewise.
15648         (cortex_a9_neon_vld1_vld2_lane): Likewise.
15649         (cortex_a9_neon_vld3_vld4_lane): Likewise.
15650         (cortex_a9_neon_vst1_vst2_lane): Likewise.
15651         (cortex_a9_neon_vst3_vst4_lane): Likewise.
15652         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
15653         (cortex_a9_neon_mcr): Likewise.
15654         (cortex_a9_neon_mcr_2_mcrr): Likewise.
15655         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
15656         (cortex_a9_fps): Likewise.
15657         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
15658         change.
15659         (cortex_m4_fmuls): Likewise.
15660         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
15661         change.
15662         (cortex_r4_mrc): Likewise.
15663         * config/arm/iterators.md: Update comment referring to neon_type.
15664         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
15665         (iwmmxt_movsi_insn): Likewise.
15666         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
15667         attribute change.
15668         (pj4_core_to_vfp): Likewise.
15669         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
15670         attribute change.
15671         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
15672         (vfp_fstore): Likewise.
15673         * doc/md.texi: Change references to neon_type to refer to type.
15675 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
15677         * tree.h (DECL_BUILT_IN): Fix typo in comment.
15679 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
15681         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
15682         lglobl if not weak.
15684 2013-09-04  Easwaran Raman  <eraman@google.com>
15686         PR middle-end/57370
15687         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
15688         (build_and_add_sum): Use it.
15689         (appears_later_in_bb): Simplify code.
15691 2013-09-04  Teresa Johnson  <tejohnson@google.com>
15693         * dumpfile.c (dump_finish): Don't close stderr/stdout.
15695 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
15697         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
15699 2013-09-04  Jan Hubicka  <jh@suse.cz>
15701         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
15702         * ipa-devirt.c: Include diganostic.h
15703         (odr_type_d): Add types and types_set.
15704         (hash_type_name): Work for types with vtables during LTO.
15705         (odr_hasher::remove): Fix comment; destroy types_set.
15706         (add_type_duplicate): New function,
15707         (get_odr_type): Use it.
15708         (dump_type_inheritance_graph): Dump type duplicates.
15709         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
15710         graph.
15711         * tree.c (types_same_for_odr): Give exact answers on types with
15712         virtual tables.
15714 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
15716         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
15717         explaining their differences.
15719 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
15721         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
15723 2013-09-03  Jeff Law  <law@redhat.com>
15725         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
15726         when not threading through a joiner block.  Pass joiner/no joiner
15727         state to register_jump_thread.
15728         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
15729         state from argument rather than implying on path length.
15730         Dump the entire jump thread path into debugging dump.
15731         * tree-flow.h (register_jump_thread): Update prototype.
15733 2013-08-29  Xinliang David Li  <davidxl@google.com>
15735         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15736         Remove a trivial gcc_assert.
15738 2013-08-29  Xinliang David Li  <davidxl@google.com>
15740         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
15741         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
15742         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15743         Delay base decl alignment adjustment.
15744         * tree-vectorizer.c (vect_destroy_datarefs): New function.
15745         * tree-vectorizer.h: New data structure.
15746         (set_dr_misalignment): New function.
15747         (dr_misalignment): Ditto.
15748         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
15749         (vectorizable_load): Ditto.
15750         (ensure_base_align): New function.
15751         (vectorize_loops): Add dbg_cnt support.
15752         (execute_vect_slp): Ditto.
15753         * dbgcnt.def: New debug counter.
15754         * Makefile: New dependency.
15756 2013-09-03  Meador Inge  <meadori@codesourcery.com>
15758         Revert:
15760         2013-08-30  Meador Inge  <meadori@codesourcery.com>
15762         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15764 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
15766         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
15767         function descriptor.
15769 2013-09-03  Richard Biener  <rguenther@suse.de>
15771         * tree-affine.c (add_elt_to_tree): Fix association issue,
15772         avoid useless converts and make sure to always return a
15773         properly typed result.
15775 2013-09-03  Richard Biener  <rguenther@suse.de>
15777         PR middle-end/57656
15778         * fold-const.c (negate_expr_p): Fix division case.
15779         (negate_expr): Likewise.
15781 2013-09-03  Richard Biener  <rguenther@suse.de>
15783         PR lto/58285
15784         * tree-streamer-out.c: Include tm.h.
15785         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
15787 2013-09-03  Jan Hubicka  <jh@suse.cz>
15789         * tree-profile.c (tree_profiling): Cleanup CFG when done.
15791 2013-09-03  Alan Modra  <amodra@gmail.com>
15793         * config.gcc (powerpc*-*-linux*): Add support for little-endian
15794         multilibs to big-endian target and vice versa.
15795         * config/rs6000/t-linux64: Use := assignment on all vars.
15796         (MULTILIB_EXTRA_OPTS): Remove fPIC.
15797         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
15798         * config/rs6000/t-linux64le: New file.
15799         * config/rs6000/t-linux64bele: New file.
15800         * config/rs6000/t-linux64lebe: New file.
15802 2013-09-02  Jan Hubicka  <jh@suse.cz>
15804         * ipa-inline-transform.c (inline_transform): Do not
15805         optimize_inline_calls when not optimizing.
15807 2013-09-02  Jan Hubicka  <jh@suse.cz>
15809         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
15810         duplicated nodes for assembler names.
15811         * symtab.c (symtab_unregister_node): Do not attempt to unlink
15812         hard registers from assembler name hash.
15814 2013-09-02  Jan Hubicka  <jh@suse.cz>
15816         * ipa-split.c (execute_split_functions): Split externally visible
15817         functions called once.
15819 2013-09-02  Martin Jambor  <mjambor@suse.cz>
15821         PR ipa/58106
15822         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
15823         linked list.  When finding the correct duplicate, also consider also
15824         the caller in additon to its inlined_to node.
15826 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
15828         * config/aarch64/aarch64-simd-builtins.def
15829         (dup_lane_scalar): Remove.
15830         * config/aarch64/aarch64-simd.md
15831         (aarch64_simd_dup): Add 'w->w' alternative.
15832         (aarch64_dup_lane<mode>): Allow for VALL.
15833         (aarch64_dup_lane_scalar<mode>): Remove.
15834         (aarch64_dup_lane_<vswap_width_name><mode>): New.
15835         (aarch64_get_lane_signed<mode>): Add w->w altenative.
15836         (aarch64_get_lane_unsigned<mode>): Likewise.
15837         (aarch64_get_lane<mode>): Likewise.
15838         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
15839         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
15840         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
15841         (VCON): Change container of V2SF.
15842         (vswap_width_name): Likewise.
15843         * config/aarch64/arm_neon.h
15844         (__aarch64_vdup_lane_any): New.
15845         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15846         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
15847         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15849 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
15851         PR middle-end/56382
15852         * expr.c (emit_move_complex): Do not move complex FP values as parts if
15853         the source or the destination is a single hard register.
15855 2013-09-02  Richard Biener  <rguenther@suse.de>
15857         PR middle-end/57511
15858         * tree-scalar-evolution.c (instantiate_scev_name): Allow
15859         non-linear SCEVs.
15861 2013-09-02  Richard Biener  <rguenther@suse.de>
15863         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
15864         arithmetic to sizetype.
15866 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
15868         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
15869         Find auto-increment use both before and after candidate.
15871 2013-09-02  Marek Polacek  <polacek@redhat.com>
15873         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
15875 2013-09-01  Jan Hubicka  <jh@suse.cz>
15877         * Makefile.in: Add ipa-profile.o
15878         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
15879         * cgraph.c (struct cgraph_propagate_frequency_data,
15880         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
15881         ipa-profile.c; replace cgraph_ by ipa_ prefix.
15882         * cgraph.h (cgraph_propagate_frequency): Remove.
15883         * ipa-inline-analysis.c: Include ipa-utils.h;
15884         drop duplicated cfgloop.h.
15885         (inline_update_callee_summaries): Update.
15886         * ipa-profile.c: New file.
15887         * ipa-utils.h (ipa_propagate_frequency): Declare.
15888         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
15889         data-streamer.h, value-prof.h.
15890         (symtab_remove_unreachable_nodes): Update profile.
15891         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
15892         account_time_size, cmp_counts, dump_histogram,
15893         ipa_profile_generate_summary, ipa_profile_write_summary,
15894         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
15895         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
15896         Move to ipa-profile.c.
15898 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
15900         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
15902 2013-09-01  Jan Hubicka  <jh@suse.cz>
15904         * common.opt (fdevirtualize-speculatively): New function.
15905         * invoke.texi (fdevirtualize-speculatively): Document.
15906         * ipa-devirt.c: Include ipa-inline.h
15907         (likely_target_p): New function.
15908         (ipa_devirt): New function.
15909         (gate_ipa_devirt): New function.
15910         (pass_data_ipa_devirt): New static var.
15911         (pass_ipa_devirt): Likewise.
15912         (make_pass_ipa_devirt): New function.
15913         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
15914         (common_handle_option): Disable devirtualization when
15915         value range profiling is available.
15916         * passes.def (pass_ipa_devirt): Add.
15917         * timever.def (TV_IPA_DEVIRT): New timevar.
15918         * tree-pass.h (make_pass_ipa_devirt):
15920 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
15922         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
15923         include sanitize(undefined).
15925 2013-08-31  Diego Novillo  <dnovillo@google.com>
15927         * Makefile.in (TREE_CORE_H): Define.
15928         (TREE_H): Use.
15929         (GTFILES): Add tree-core.h.
15930         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
15931         size the array.
15932         * tree-core.h: New file.
15933         Move all data structures, enum, typedefs, global
15934         declarations and constants from ...
15935         * tree.h: ... here.
15937 2013-08-31  Jan Hubicka  <jh@suse.cz>
15939         * bulitins.c (expand_builtin): Do not early exit for gcov
15940         instrumented functions.
15942 2013-08-31  Marek Polacek  <polacek@redhat.com>
15944         * ubsan.c: Include tm_p.h.
15946 2013-08-31  Jan Hubicka  <jh@suse.cz>
15948         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
15949         warning.
15951         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
15952         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
15953         * tree-cfg.c (verify_gimple_label): ... here.
15954         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
15955         (ipa_merge_profiles): New function.
15956         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
15957         (lto_input_function_body): Likewise.
15958         * ipa-utils.h (ipa_merge_profiles): Declare.
15959         * lto-streamer.h (lto_input_function_body): Update prototype.
15960         (emit_label_in_global_context_p): Remove.
15961         * lto-symtab.c: Include ipa-utils.h
15962         (lto_cgraph_replace_node): Use ipa_merge_profiles.
15964 2013-08-31  Jan Hubicka  <jh@suse.cz>
15966         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
15968 2013-08-31  Jan Hubicka  <jh@suse.cz>
15970         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
15972 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
15974         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
15975         "cmp" RTX before signed_comparison_operator check to account
15976         for "code" changes.
15978 2013-08-30  Jan Hubicka  <jh@suse.cz>
15980         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
15981         (detect_type_change_1): Rename to ...
15982         (detect_type_change): ... this one; early return on non-polymorphic
15983         types.
15984         (detect_type_change_ssa): Add comp_type parameter; update
15985         use of detect_type_change.
15986         (compute_complex_assign_jump_func): Add param_type parameter;
15987         update use of detect_type_change_ssa.
15988         (compute_complex_ancestor_jump_func): Likewise.
15989         (ipa_get_callee_param_type): New function.
15990         (ipa_compute_jump_functions_for_edge): Compute parameter type;
15991         update calls to the jump function computation functions.
15993 2013-08-30  Teresa Johnson  <tejohnson@google.com>
15994             Steven Bosscher  <steven@gcc.gnu.org>
15996         * cfgrtl.c (fixup_new_cold_bb): New routine.
15997         (commit_edge_insertions): Invoke fixup_partitions.
15998         (find_partition_fixes): New routine.
15999         (fixup_partitions): Ditto.
16000         (verify_hot_cold_block_grouping): Update comments.
16001         (rtl_verify_edges): Invoke find_partition_fixes.
16002         (rtl_verify_bb_pointers): Update comments.
16003         (rtl_verify_bb_layout): Ditto.
16004         * basic-block.h (probably_never_executed_edge_p): Declare.
16005         (fixup_partitions): Ditto.
16006         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
16007         * bb-reorder.c (sanitize_hot_paths): New function.
16008         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
16009         sanitize_hot_paths.
16010         * predict.c (probably_never_executed_edge_p): New routine.
16011         * cfg.c (check_bb_profile): Add partition insanity warnings.
16013 2013-08-30  Meador Inge  <meadori@codesourcery.com>
16015         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16017 2013-08-30  Marek Polacek  <polacek@redhat.com>
16019         * Makefile.in (ubsan.o): Add.
16020         (c-family/c-ubsan.o): Add.
16021         (builtins.o): Add ubsan.h dependency.
16022         * ubsan.h: New file.
16023         * ubsan.c: New file.
16024         * common.opt: Add -fsanitize=undefined option.
16025         (flag_sanitize): Add variable.
16026         (fsanitize=): Add option.  Add Driver.
16027         (fsanitize=thread): Remove option.
16028         (fsanitize=address): Likewise.
16029         (static-libubsan): New option.
16030         * doc/invoke.texi: Document the new flag and -static-libubsan.
16031         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
16032         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
16033         * builtin-attrs.def (ATTR_COLD): Define.
16034         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16035         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
16036         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
16037         * flag-types.h (sanitize_code): New enum.
16038         * opts.c (common_handle_option): Parse command line arguments
16039         of -fsanitize=.  Add -fsanitize=unreachable option.
16040         * varasm.c (get_variable_section): Adjust.
16041         (assemble_noswitch_variable): Likewise.
16042         (assemble_variable): Likewise.
16043         (output_constant_def_contents): Likewise.
16044         (categorize_decl_for_section): Likewise.
16045         (place_block_symbol): Likewise.
16046         (output_object_block): Likewise.
16047         * builtins.def: Likewise.
16048         * toplev.c (compile_file): Likewise.
16049         (process_options): Likewise.
16050         * cppbuiltin.c: Likewise.
16051         * tsan.c (tsan_pass): Likewise.
16052         (tsan_gate): Likewise.
16053         (tsan_gate_O0): Likewise.
16054         * cfgexpand.c (partition_stack_vars): Likewise.
16055         (expand_stack_vars): Likewise.
16056         (defer_stack_allocation): Likewise.
16057         (expand_used_vars): Likewise.
16058         * cfgcleanup.c (old_insns_match_p): Likewise.
16059         * asan.c (asan_finish_file): Likewise.
16060         (asan_instrument): Likewise.
16061         (gate_asan): Likewise.
16062         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
16063         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16064         (asan_global_struct): Use pointer_sized_int_node instead
16065         calling build_nonstandard_integer_type.
16066         (initialize_sanitizer_builtins): Likewise.
16067         (asan_finish_file): Likewise.
16068         * gcc.c: Document %{%:function(args):X}.
16069         (static_spec_functions): Add sanitize.
16070         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
16071         store funcval != NULL there.
16072         (do_spec_1): Adjust handle_spec_function caller.
16073         (handle_braces): Allow %:function(args) as condition.
16074         (sanitize_spec_function): New function.
16075         (ADD_STATIC_LIBUBSAN_LIBS): Define.
16076         (LIBUBSAN_SPEC): Likewise.
16077         (LIBUBSAN_EARLY_SPEC): Likewise.
16078         (SANITIZER_SPEC): Handle libubsan.
16079         (SANITIZER_EARLY_SPEC): Likewise.
16080         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
16081         instead of fsanitize=address.
16082         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
16083         instead of fsanitize=address*.
16084         * builtins.c: Include ubsan.h.
16085         (fold_builtin_0): Instrument __builtin_unreachable.
16086         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
16087         instead of flag_asan.
16088         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
16089         (pointer_sized_int_node): Define.
16090         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
16092 2013-08-30  Mike Stump  <mikestump@comcast.net>
16094         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
16095         with RE patterns.
16097 2013-08-29  Jan Hubicka  <jh@suse.cz>
16099         * cgraph.c (cgraph_function_body_availability): Handle weakref
16100         correctly.
16101         * passes.def: Remove pass_fixup_cfg.
16102         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
16103         track when we need to remove functions.
16104         (gate_ipa_inline): Execute inlining always; add comment why.
16105         (pass_data_ipa_inline): Remove TODO_remove_functions.
16106         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
16107         do not produce summaries.
16108         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
16109         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
16110         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
16111         constant pool and vtable.
16113 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
16115         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
16116         New arm_neon.h's internal macros to specify 64-bit constants.
16117         Avoid using stdint.h's macros.
16119 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
16121         * recog.c (verify_changes): Verify that changes[i].old is non-zero
16122         before applying REG_P.
16124 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
16126         PR tree-optimization/58277
16127         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
16128         after seeing too many stmts with vdef in between dombb and current
16129         bb, invalidate everything.
16131 2013-08-30  Richard Biener  <rguenther@suse.de>
16133         * fold-const.c (fold_single_bit_test): Fix overflow test.
16135 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
16137         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
16138         and which can live in a register, always retrieve the value on entry.
16139         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
16140         passed by invisible reference specially.
16141         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
16142         (vt_add_function_parameter): Correctly deal with a parameter passed by
16143         invisible reference.
16145 2013-08-30  Jan Hubicka  <jh@suse.cz>
16147         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
16149 2013-08-30  Richard Biener  <rguenther@suse.de>
16151         PR tree-optimization/58228
16152         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
16153         allow invariant loads in nested loop vectorization.
16155 2013-08-30  Richard Biener  <rguenther@suse.de>
16157         PR tree-optimization/58223
16158         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
16159         (has_anti_or_output_dependence): ... this and adjust to also
16160         look for output dependences.
16161         (mark_nodes_having_upstream_mem_writes): Adjust.
16162         (rdg_flag_uses): Likewise.
16164 2013-08-30  Richard Biener  <rguenther@suse.de>
16166         PR tree-optimization/58010
16167         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16168         assert that we have a loop-closed PHI.
16170 2013-08-29  Jan Hubicka  <jh@suse.cz>
16172         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
16173         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
16174         * lto-section-in.c (lto_free_function_in_decl_state): New function.
16175         (lto_free_function_in_decl_state_for_node): New function.
16177 2013-08-29  Xinliang David Li  <davidxl@google.com>
16179         * loop-unroll.c (report_unroll_peel): Minor message change.
16180         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
16181         Emit alignment peeling message with default -fopt-info.
16182         (vect_loop_versioning): Emit loop version info message.
16183         * tree-vectorizer.c (vectorize_loops): Minor message change.
16184         (execute_vect_slp): Ditto.
16186 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
16188         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
16189         of the clone from the DECL_NAME of the original function.
16191 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
16193         * passes.c (register_pass): Add overload.
16194         * tree-pass.h (register_pass): Forward declare it.  Add comment.
16196 2013-08-29  Jan Hubicka  <jh@suse.cz>
16198         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
16199         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
16200         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
16201         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16202         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
16203         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
16204         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16205         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
16207 2013-08-29  Teresa Johnson  <tejohnson@google.com>
16209         * dumpfile.c (dump_loc): Output column number.
16210         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
16211         * doc/invoke.texi: Document optall -fopt-info flag.
16212         * profile.c (read_profile_edge_counts): Use new dump framework.
16213         (compute_branch_probabilities): Ditto.
16214         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
16215         when pass not in any opt group.
16216         * pass_manager.h (pass_manager::get_pass_profile): New method.
16217         * value-prof.c (check_counter): Use new dump framework.
16218         (check_ic_target): Ditto.
16219         * coverage.c (get_coverage_counts): Ditto.
16220         (coverage_init): Setup new dump framework.
16222 2013-08-29  Richard Biener  <rguenther@suse.de>
16224         PR tree-optimization/58246
16225         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
16226         handle the dominance check inside a basic-block.
16228 2013-08-29  Richard Biener  <rguenther@suse.de>
16230         PR middle-end/57287
16231         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
16232         of default defs that appear in abnormal PHI nodes.
16234 2013-08-29  Richard Biener  <rguenther@suse.de>
16236         PR tree-optimization/57685
16237         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
16238         single-use operands to avoid exponential complexity.
16240 2013-08-28  Dehao Chen  <dehao@google.com>
16242         * ipa-inline.c (edge_badness): Fix integer underflow.
16244 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
16246         * gtm-builtins.def (_ITM_free): Declare leaf.
16248 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
16250         PR target/58067
16251         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
16252         (*tls_local_dynamic_base_64_largepic): Likewise.
16253         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
16254         Remove predicate from call operand.
16255         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
16256         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
16258 2013-08-28  Jeff Law  <law@redhat.com>
16260         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
16261         checks for the number of predecessors and successors allowed.
16262         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
16263         which require copying a joiner block if there is a request which
16264         is a subpath that requires no joiner block copying.
16266 2013-08-28  Jan Hubicka  <jh@suse.cz>
16268         * lto-streamer-out.c (DFS_write_tree_body): Drop
16269         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
16270         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
16271         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
16272         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
16273         Do not read DECL_ERROR_ISSUED.
16274         (unpack_ts_decl_with_vis_value_fields): Do not read
16275         DECL_DEFER_OUTPUT.
16276         (lto_input_ts_binfo_tree_pointers): Do not read
16277         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
16278         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
16279         write DECL_ERROR_ISSUED..
16280         (pack_ts_decl_with_vis_value_fields): Do not write
16281         DECL_DEFER_OUTPUT.
16282         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
16283         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
16284         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
16285         * tree.h (tree_decl_common): Update comment.
16286         (DECL_ERROR_ISSUED): Remove.
16288 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
16290         PR middle-end/58257
16291         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
16293 2013-08-28  Jan Hubicka  <jh@suse.cz>
16295         * builtins.def (free): Declare leaf.
16297 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
16299         * gdbhooks.py: New.
16300         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
16301         * configure: Regenerate.
16303 2013-08-27  Martin Jambor  <mjambor@suse.cz>
16305         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
16306         (ipa_ancestor_jf_data): Likewise.
16307         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
16308         (ipa_get_jf_pass_through_type_preserved): New function.
16309         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
16310         (ipa_get_jf_ancestor_type_preserved): New function.
16311         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
16312         (ipa_get_jf_ancestor_result): Likewise.
16313         (propagate_vals_accross_pass_through): Use
16314         ipa_get_jf_pass_through_result to do all the value mappings.
16315         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
16316         type_preserved flag.
16317         (ipa_set_jf_cst_copy): New function.
16318         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
16319         (ipa_set_jf_arith_pass_through): Likewise.
16320         (ipa_set_ancestor_jf): Likewise.
16321         (compute_complex_assign_jump_func): Set type_preserved instead of
16322         punting.
16323         (ipa_compute_jump_functions_for_edge): Likewise.
16324         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
16325         (update_jump_functions_after_inlining): Update type_preserved.
16326         Explicitely create jump functions when combining one with pass_through.
16327         (ipa_write_jump_function): Stream the type_preserved flags.
16328         (ipa_read_jump_function): Likewise.
16330 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
16331             Aldy Hernandez  <aldyh@redhat.com>
16333         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
16334         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
16335         * function.h (struct function): Add has_force_vect_loops and
16336         has_simduid_loops.
16337         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
16338         * gimple.c (gimple_build_omp_critical): Add KIND argument and
16339         handle it.
16340         * gimple.def: Update CLAUSES comments.
16341         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
16342         (gimple_build_omp_for): Add argument to prototype.
16343         (gimple_omp_for_kind): New.
16344         (gimple_omp_for_set_kind): New.
16345         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
16346         GOVD_DATA_SHARE_CLASS.
16347         (enum omp_region_type): Add ORT_SIMD.
16348         (gimple_add_tmp_var): Handle ORT_SIMD.
16349         (gimplify_var_or_parm_decl): Same.
16350         (is_gimple_stmt): Same.
16351         (omp_firstprivatize_variable): Same.
16352         (omp_add_variable): Only use splay_tree_insert if lookup failed.
16353         (omp_notice_variable): Handle ORT_SIMD.
16354         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
16355         (omp_check_private): Handle ORT_SIMD.
16356         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16357         OMP_CLAUSE_SAFELEN.
16358         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
16359         Handle OMP_CLAUSE_LASTPRIVATE.
16360         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16361         OMP_CLAUSE_SAFELEN.
16362         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
16363         (gimplify_expr): Handle OMP_SIMD.
16364         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
16365         (expand_GOMP_SIMD_VF): New.
16366         (expand_GOMP_SIMD_LAST_LANE): New.
16367         * internal-fn.def (GOMP_SIMD_LANE): New.
16368         (GOMP_SIMD_VF): New.
16369         (GOMP_SIMD_LAST_LANE): New.
16370         * omp-low.c: Include target.h.
16371         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
16372         OMP_CLAUSE_SAFELEN.
16373         (check_omp_nesting_restrictions): Same.
16374         (omp_max_vf): New.
16375         (lower_rec_simd_input_clauses): New.
16376         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
16377         OMP_CLAUSE_LINEAR.
16378         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
16379         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
16380         (expand_omp_build_assign): New.
16381         (expand_omp_for_init_counts): New.
16382         (expand_omp_for_init_vars): New.
16383         (extract_omp_for_update_vars): New.
16384         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
16385         and rewrite accordingly.
16386         (expand_omp_simd): New.
16387         (expand_omp_for): Use expand_omp_simd.
16388         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
16389         (lower_omp_for): Do not lower the body.
16390         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
16391         in their own loops.
16392         * tree-flow.h (find_omp_clause): Remove prototype.
16393         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
16394         forcing vectorization of the loop, or if flag_tree_vectorize.
16395         (gate_tree_if_conversion): Similarly.
16396         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
16397         gimple_build_omp_for.
16398         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
16399         * tree-parloops (create_parallel_loop): Pass kind argument to
16400         gimple_build_omp_for.
16401         * tree-pretty-print.c (dump_omp_clause): Add cases for
16402         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
16403         OMP_CLAUSE__SIMDUID_.
16404         (dump_generic_node): Handle OMP_SIMD.
16405         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
16406         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
16407         unroll OMP_SIMD loops here.
16408         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
16409         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
16410         loop->safelen.
16411         (vect_analyze_data_refs): Handle simd loops.
16412         * tree-vect-loop.c (vectorizable_live_operation): Handle
16413         IFN_GOMP_SIMD*.
16414         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
16415         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
16416         (vectorizable_load): Same.
16417         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
16418         (struct simduid_to_vf): New.
16419         (simduid_to_vf::hash): New.
16420         (simduid_to-vf::equal): New.
16421         (struct simd_array_to_simduid): New.
16422         (simd_array_to_simduid::hash): New.
16423         (simd_array_to_simduid::equal): New.
16424         (adjust_simduid_builtins): New.
16425         (struct note_simd_array_uses_struct): New.
16426         (note_simd_array_uses_cb): New.
16427         (note_simd_array_uses): New.
16428         (vectorize_loops): Handle simd hints and adjust simd builtins
16429         accordingly.
16430         * tree-vectorizer.h (struct _stmt_vec_info): Add
16431         simd_lane_access_p field.
16432         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
16433         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
16434         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
16435         (omp_clause_code_name): Same.
16436         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
16437         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
16438         * tree.def (OMP_SIMD): New entry.
16439         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
16440         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
16441         (OMP_CLAUSE_DECL): Adjust range for new clauses.
16442         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
16443         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
16444         (OMP_CLAUSE_LINEAR_STEP): New.
16445         (OMP_CLAUSE_SAFELEN_EXPR): New.
16446         (OMP_CLAUSE__SIMDUID__DECL): New.
16447         (find_omp_clause): New prototype.
16449 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
16451         * config/i386/driver-i386.c (host_detect_local_cpu): Update
16452         Haswell processor detection.
16454 2013-08-27  Christian Widmer  <shadow@umbrox.de>
16456         PR target/57927
16457         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
16458         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
16459         AVX2 capable processors.
16461 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
16463         * config/aarch64/arm_neon.h: Replace all inline asm implementations
16464         of vget_low_* with implementations in terms of other intrinsics.
16466 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
16468         PR middle-end/57219
16469         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
16470         values to -1, 0 and 1.
16472 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
16474         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
16475         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
16476         (<optab><mode>3_insn): Remove.
16477         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
16478         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
16479         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16480         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
16481         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
16482         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
16483         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
16484         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
16485         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
16486         (ror<mode>3_insn): Likewise.
16487         * config/aarch64/predicates.md (aarch64_simd_register): New.
16489 2013-08-27  Richard Biener  <rguenther@suse.de>
16491         PR tree-optimization/57521
16492         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
16493         one edge is non-critical.
16494         (find_phi_replacement_condition): Make sure to use a non-critical
16495         edge.  Cleanup and remove old bug workarounds.
16496         (bb_postdominates_preds): Remove.
16497         (if_convertible_loop_p_1): Do not compute post-dominators.
16498         (combine_blocks): Do not free post-dominators.
16499         (main_tree_if_conversion): Likewise.
16500         (pass_data_if_conversion): Add TODO_verify_ssa.
16502 2013-08-27  DJ Delorie  <dj@redhat.com>
16504         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
16506 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
16508         * function.c (assign_parm_find_data_types): Set passed_mode and
16509         nominal_mode to the TYPE_MODE of nominal_type for the built
16510         pointer type in case of the struct-pass-by-reference.
16512 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
16514         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
16515         (UINT16_TYPE): Change default to "unsigned int".
16517         * config/avr/avr.opt (mfract-convert-truncate): New option.
16518         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
16519         is set, round negative fractional integers according to n1169
16520         when converting to integer types.
16522 2013-08-26  Jan Hubicka  <jh@suse.cz>
16524         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
16525         methods can not be called indirectly when their address is not taken.
16527 2013-08-26  Jan Hubicka  <jh@suse.cz>
16529         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
16530         ctor_for_folding.
16532 2013-08-26  Jan Hubicka  <jh@suse.cz>
16534         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
16535         can be unshared.
16537 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
16539         * reload.c (find_valid_class): Allow classes that do not include
16540         FIRST_PSEUDO_REGISTER - 1.
16542 2013-08-26  Jan Hubicka  <jh@suse.cz>
16544         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
16545         fix edge count/frequency when speculation failed; fix type check
16546         for the direct call.
16548 2013-08-26  Jan Hubicka  <jh@suse.cz>
16550         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
16552 2013-08-26  Jan Hubicka  <jh@suse.cz>
16554         * ipa-inline-transform.c (inline_transform): Be ready for basic block
16555         to be changed by edge redirection.
16557 2013-08-26  Jan Hubicka  <jh@suse.cz>
16559         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
16560         formating; add sanity check.
16561         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
16562         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
16563         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
16564         (resolve_noninline_speculation): Update callee keys, too.
16566 2013-08-26  Jan Hubicka  <jh@suse.cz>
16568         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
16569         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
16571 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
16573         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
16574         into proper place.
16576 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
16578         * config/i386/i386.c (ix86_debug_options): Remove prototype.
16579         (x86_64_elf_select_section): Ditto.
16580         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
16581         arguments.
16582         (ix86_pass_by_reference): Ditto.
16583         (output_set_got): Ditto.
16584         (ix86_unary_operator_ok): Ditto.
16585         (ix86_expand_builtin): Ditto.
16587 2013-08-23  Jan Hubicka  <jh@suse.cz>
16589         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
16591 2013-08-23  Jan Hubicka  <jh@suse.cz>
16593         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
16594         (tree_decl_with_vis): Add FINAL field.
16596 2013-08-23  Jeff Law  <law@redhat.com>
16598         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
16599         the debugging dump when the expression is fully redundant.
16601 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16603         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
16604         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
16605         * pretty-print.c (pp_formatted_text_data): Likewise.
16606         (pp_write_text_to_stream): Likewise.
16607         (pp_write_text_as_dot_label_to_stream): Likewise.
16608         (pp_append_r): Likewise.
16609         (pp_format): Likewise.
16610         (pp_flush): Likewise.
16611         (pp_clear_output_area): Likewise.
16612         (pp_append_text): Likewise.
16613         (pp_formatted_text): Likewise.
16614         (pp_remaining_character_count_for_line): Likewise.
16615         (pp_newline): Likewise.
16616         (pp_character): Likewise.
16617         (output_buffer::~output_buffer): Define.
16618         (pretty_printer::~pretty_printer): Destruct output buffer.
16619         * pretty-print.h (output_buffer::~output_buffer): Declare.
16620         (pretty_printer::~pretty_printer): Declare virtual.
16622 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
16624         PR other/57324
16625         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
16626         HOST_WIDE_INT_M1U): New macros.
16627         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
16628         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
16629         unsigned -1 for lshift.
16630         * cse.c (cse_insn): Likewise.
16631         * double-int.c (rshift_double, lshift_double): Likewise.
16632         * builtins.c (fold_builtin_bitop): Likewise.
16633         * combine.c (force_to_mode): Likewise.
16634         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
16635         * simplify-rtx.c (simplify_const_unary_operation,
16636         simplify_const_binary_operation): Likewise.
16637         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
16638         check_va_list_escapes): Likewise.
16639         * rtlanal.c (nonzero_bits1): Likewise.
16640         * expmed.c (expand_smod_pow2): Likewise.
16641         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
16643 2013-08-23  Jan Hubicka  <jh@suse.cz>
16645         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
16646         as having address taken.
16648 2013-08-23  Jan Hubicka  <jh@suse.cz>
16650         * ipa-utils.h (method_class_type): Declare.
16651         * ipa-devirt.c (method_class_type): Export.
16653         * cgraphunit.c (analyze_functions): Do basic devirtualization;
16654         do not walk base classes of anonymous types.
16656 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
16658         PR rtl-optimization/58220
16659         PR regression/58221
16660         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
16661         handle SEQUENCE insns properly.
16663 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16665         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
16666         definition.
16667         (pp_newline_and_indent): Likewise.
16668         (pp_separate_with): Likewise.
16669         * pretty-print.c (pp_newline_and_flush): Define.
16670         (pp_newline_and_indent): Likewise.
16671         (pp_separate_with): Likewise.
16673 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
16675         PR target/58218
16676         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
16677         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
16679 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
16681         * config/i386/predicates.md (ext_sse_reg_operand): New.
16682         * config/i386/i386.md (*movti_internal): Use
16683         predicate to determine if EVEX is needed.
16684         (*movsi_internal): Ditto.
16685         (*movdf_internal): Ditto.
16686         (*movsf_internal): Ditto.
16687         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
16689 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
16691         PR tree-optimization/58209
16692         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
16693         (find_tail_calls): Give up for pointer result types if m is non-NULL.
16694         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
16695         emit POINTER_PLUS_EXPR.
16696         (create_tailcall_accumulator): For pointer result type accumulate in
16697         sizetype type.
16699 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
16701         * configure.ac: Add backslashes missing from the last change.
16702         * configure: Regenerate.
16704 2013-08-22  Jan Hubicka  <jh@susue.cz>
16706         * ipa.c (function_and_variable_visibility): First remember function
16707         was global and then make it local.
16709 2013-08-22  Julian Brown  <julian@codesourcery.com>
16711         * configure.ac: Add aarch64 to list of arches which use "nop" in
16712         debug_line test.
16713         * configure: Regenerate.
16715 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16717         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
16718         gnu_libc_has_function.
16719         * config/s390/tpf.h: Likewise.
16721 2013-08-22  Jan Hubicka  <jh@susue.cz>
16723         * timevar.c (validate_phases): Add cast.
16725 2013-08-22  Jan Hubicka  <jh@susue.cz>
16727         * timevar.c (validate_phases): Use size_t for memory.
16728         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
16730 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16732         * pretty-print.h (output_buffer::output_buffer): Declare.
16733         (pretty_printer::pretty_printer): Likewise.
16734         (pp_construct): Remove.
16735         * pretty-print.c (output_buffer::output_buffer): Define.
16736         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
16737         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
16738         (print_gimple_expr): Likewise.
16739         (print_gimple_seq): Likewise.
16740         (gimple_dump_bb): Likewise.
16741         * sched-vis.c (dump_value_slim): Likewise.
16742         (dump_insn_slim): Likewise.
16743         (dump_rtl_slim): Likewise.
16744         (str_pattern_slim): Likewise.
16745         * tree-mudflap.c (mf_varname_tree): Likewise.
16746         * graph.c (print_graph_cfg): Likewise.
16747         (start_graph_dump): Likewise.
16748         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
16749         placement-new.
16750         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
16751         pretty printer initialization.
16752         * coretypes.h (diagnostic_context): Remove superflous type alias
16753         declaration.
16754         (pretty_printer): Likewise.  Declare directly as a class.
16755         (pretty_print_info): Remove declaration as class.
16756         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
16757         and pp_clear_output_area.
16758         (asan_add_global): Likewise.
16760 2013-08-22  Jan Hubicka  <jh@suse.cz>
16762         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
16763         * ipa-utils.h (update_type_inheritance_graph): Declare.
16764         (possible_polymorphic_call_target_p): Declare.
16765         (possible_polymorphic_call_target_p): New.
16766         * ipa-devirt.c: Update toplevel comments.
16767         (cached_polymorphic_call_targets): Move up.
16768         (odr_type_d): Move ID down.
16769         (polymorphic_type_binfo_p): Update comment.
16770         (odr_hasher::remove): Likewise;
16771         (get_odr_type): Set anonymous_namespace.
16772         (dump_odr_type): Dump it.
16773         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
16774         (maybe_record_node): Record node in cached_polymorphic_call_targets.
16775         (record_binfo): Add comment.
16776         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
16777         built.
16778         (devirt_node_removal_hook): Do not iCE when cache is freed.
16779         (possible_polymorphic_call_target_p): New predicate.
16780         (update_type_inheritance_graph): New function.
16782 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16783             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16784             Sergey Lega  <sergey.s.lega@intel.com>
16785             Anna Tikhonova  <anna.tikhonova@intel.com>
16786             Ilya Tocar  <ilya.tocar@intel.com>
16787             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16788             Ilya Verbin  <ilya.verbin@intel.com>
16789             Kirill Yukhin  <kirill.yukhin@intel.com>
16790             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16792         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
16793         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
16794         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
16795         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
16796         (OPTION_MASK_ISA_AVX2_UNSET): Update.
16797         (OPTION_MASK_ISA_AVX512F_UNSET): New.
16798         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
16799         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
16800         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
16801         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
16802         OPT_mavx512pf, OPT_mavx512er cases.
16803         * config/i386/constraints.md (v): New constraint.
16804         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
16805         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
16806         (bit_AVX512CD): New.
16807         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16808         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
16809         * config/i386/i386-c.c (ix86_target_macros_internal):
16810         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
16811         __AVX512PF__.
16812         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
16813         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
16814         * config/i386/i386.c (regclass_map, dbx_register_map)
16815         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
16816         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
16817         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
16818         -mavx512pf options.
16819         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
16820         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
16821         -mavx512pf options.  Fix formatting.
16822         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
16823         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
16824         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
16825         -mavx512cd, -mavx512pf options.
16826         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
16827         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
16828         (ix86_preferred_output_reload_class): Replace SSE_REGS with
16829         ALL_SSE_REGS.
16830         (ix86_hard_regno_mode_ok): Support 512-bit registers.
16831         (ix86_set_reg_reg_cost): Ditto.
16832         (x86_order_regs_for_local_alloc): Ditto.
16833         (MAX_VECT_LEN): Extend to 64-byte.
16834         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
16835         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
16836         (TARGET_AVX512ER, TARGET_AVX512CD): New.
16837         (BIGGEST_ALIGNMENT): Extend to 512-bits.
16838         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
16839         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
16840         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
16841         (SSE_REG_MODE_P): Support new modes.
16842         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
16843         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
16844         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
16845         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
16846         (REG_CLASS_CONTENTS): Add new registers.
16847         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
16848         (EXT_REX_SSE_REGNO_P): New.
16849         (HI_REGISTER_NAMES): Add new registers.
16850         * config/i386/i386.md: Define constants for new registers.
16851         (mode): Add new 512-bit modes.
16852         (prefix): Support evex prefix.
16853         (isa): Support avx512f, noavx512f, fma_avx512f.
16854         (ssemodesuffix): Add new 512-bit modes.
16855         (movxi): New.
16856         (*movxi_internal_avx512f): Ditto.
16857         (*movdi_internal): Replace constraint "x" with the new constraint "v".
16858         Support MODE_XI.
16859         (*movsi_internal): Likewise.
16860         (*movdf_internal): Likewise.
16861         (*movsf_internal): Likewise.
16862         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
16863         (<code><mode>3): Likewise.
16864         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
16865         New.
16866         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
16867         with the new constraint "v".
16868         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
16869         modes.
16870         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
16871         with the new constraint "v".
16872         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
16873         (<sse2>_storedqu<avxsizesuffix>): Likewise.
16874         (*<plusminus_insn><mode>3): Likewise.
16875         (<sse>_vm<plusminus_insn><mode>3): Likewise.
16876         (*mul<mode>3): Likewise.
16877         (<sse>_vmmul<mode>3): Likewise.
16878         (<sse>_div<mode>3): Likewise.
16879         (<sse>_vmdiv<mode>3): Likewise.
16880         (<sse>_sqrt<mode>2): Likewise.
16881         (<sse>_vmsqrt<mode>2): Likewise.
16882         (*<code><mode>3_finite): Likewise.
16883         (*<code><mode>3) <smaxmin>: Likewise.
16884         (<sse>_vm<code><mode>3): Likewise.
16885         (*<code><mode>3) <any_logic>: Likewise.
16886         (*fma_fmadd_<mode>): Likewise.
16887         (*fma_fmsub_<mode>): Likewise.
16888         (*fma_fnmadd_<mode>): Likewise.
16889         (*fma_fnmsub_<mode>): Likewise.
16890         (*fma_fmaddsub_<mode>): Likewise.
16891         (*fma_fmsubadd_<mode>): Likewise.
16892         (*fmai_fmadd_<mode>): Likewise.
16893         (*fmai_fmsub_<mode>): Likewise.
16894         (*fmai_fnmadd_<mode>): Likewise.
16895         (*fmai_fnmsub_<mode>): Likewise.
16896         (sse_cvtsi2ss): Likewise.
16897         (sse_cvtsi2ssq): Likewise.
16898         (sse_cvtss2si): Likewise.
16899         (sse_cvtss2si_2): Likewise.
16900         (sse_cvtss2siq): Likewise.
16901         (sse_cvtss2siq_2): Likewise.
16902         (sse_cvttss2si): Likewise.
16903         (sse_cvtss2siq_2): Likewise.
16904         (float<sseintvecmodelower><mode>2): Likewise.
16905         (sse2_cvtsd2si_2): Likewise.
16906         (sse2_cvtsd2siq_2): Likewise.
16907         (*<plusminus_insn><mode>3): Likewise.
16908         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
16909         (*<sse4_1_avx2>_mul<mode>3): Likewise.
16910         (ashr<mode>3): Likewise.
16911         (<shift_insn><mode>3): Likewise.
16912         (avx2_<code><mode>3): Likewise.
16913         (*avx2_<code><mode>3): Likewise.
16914         (*andnot<mode>3): Likewise.
16915         (*<code><mode>3) <any_logic>: Likewise.
16916         (abs<mode>2): Likewise.
16917         (avx2_permvar<mode>): Likewise.
16918         (avx2_perm<mode>_1): Likewise.
16919         (*avx_vpermilp<mode>): Likewise.
16920         (avx_vpermilvar<mode>3): Likewise.
16921         (avx2_ashrv<mode>): Likewise.
16922         (avx2_<shift_insn>v<mode>): Likewise.
16923         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
16924         -mavx512cd.
16925         * doc/rtl.texi: Document XImode.
16927 2013-08-21  Jeff Law  <law@redhat.com>
16929         * tree-flow.h (register_jump_thread): Pass vector of edges
16930         instead of each important edge.
16931         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
16932         thread path into a vector and pass that to register_jump_thread.
16933         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
16934         passed in edge vector to the current 3-edge form.
16936         Revert:
16937         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
16939         * dce.c (fini_dce): Call df_analyze again just in case
16940         delete_unmarked_insns removed anything.
16942 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
16944         * reload.h (struct reg_equivs): Rename to ..
16945         (struct reg_equivs_s): .. this.
16947 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
16949         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
16951 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16953         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
16955 2013-08-21  Jeff Law  <law@redhat.com>
16957         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
16958         simplify assignments too.  If the RHS collapses to a singleton
16959         range, then return the value for the range.
16961 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
16963         * config/i386/sse.md (V16): Rename to...
16964         (VMOVE): this.
16965         (mov<mode>): Update iterator name.
16966         (*mov<mode>_internal): Ditto.
16967         (push<mode>1): Ditto.
16968         (movmisalign<mode>): Ditto.
16970 2013-08-20  Jan Hubicka  <jh@suse.cz>
16972         PR bootstrap/58186
16973         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
16974         entry for direct edges.
16975         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
16977 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16979         Revert my last two changes, r201865 and r201864:
16981         Revert r201865:
16982         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16984         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16985         instances can own GC refs.
16987         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16988         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16989         (gcc::context::gt_pch_nx): Likewise.
16990         (gcc::context::gt_pch_nx):  Likewise.
16991         * ggc.h (gt_ggc_mx <T>): New.
16992         (gt_pch_nx_with_op <T>): New.
16993         (gt_pch_nx <T>): New.
16994         * passes.c (opt_pass::gt_ggc_mx): New.
16995         (opt_pass::gt_pch_nx): New.
16996         (opt_pass::gt_pch_nx_with_op): New.
16997         (pass_manager::gt_ggc_mx): New.
16998         (pass_manager::gt_pch_nx): New.
16999         (pass_manager::gt_pch_nx_with_op): New.
17000         (pass_manager::operator new): Use
17001         ggc_internal_cleared_alloc_stat rather than xcalloc.
17002         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17003         (pass_manager::gt_ggc_mx): New.
17004         (pass_manager::gt_pch_nx): New.
17005         (pass_manager::gt_pch_nx_with_op): New.
17006         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17007         (opt_pass::operator new): New.
17008         (opt_pass::gt_ggc_mx): New.
17009         (opt_pass::gt_pch_nx): New.
17010         (opt_pass::gt_pch_nx_with_op): New.
17012         Revert r201864:
17013         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17015         * Makefile.in (GTFILES): Add context.h.
17016         * context.c (gcc::context::operator new): New.
17017         (gcc::context::gt_ggc_mx): New.
17018         (gcc::context::gt_pch_nx): New.
17019         (gcc::context::gt_pch_nx): New.
17020         * context.h (gcc::context): Add GTY((user)) marking.
17021         (gcc::context::operator new): New.
17022         (gcc::context::gt_ggc_mx): New.
17023         (gcc::context::gt_pch_nx): New.
17024         (gcc::context::gt_pch_nx): New.
17025         (g): Add GTY marking.
17026         (gt_ggc_mx (gcc::context *)): New.
17027         (gt_pch_nx (gcc::context *)): New.
17028         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17029         void *cookie)): New.
17030         * gengtype.c (open_base_files) <ifiles>: Add context.h.
17032 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
17034         * dce.c (fini_dce): Call df_analyze again just in case
17035         delete_unmarked_insns removed anything.
17037 2013-08-20  Teresa Johnson  <tejohnson@google.com>
17039         PR rtl-optimizations/57451
17040         * final.c (reemit_insn_block_notes): Prevent lexical blocks
17041         from crossing split section boundaries.
17043 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
17045         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
17046         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
17047         with MULTLIB_DEFAULTS.
17049 2013-08-20  Nick Clifton  <nickc@redhat.com>
17051         * target.def (narrow_volatile_bitfield): Note that the default
17052         value is false, not !TARGET_STRICT_ALIGN.
17053         * doc/tm.texi: Regenerate.
17055 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
17057         Fix LIB_SPEC for systems without libpthread.
17059         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
17060         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
17061         for Android.
17062         * config/i386/linux-common.h: Likewise.
17063         * config/mips/linux-common.h: Likewise.
17065 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
17067         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
17068         checks.
17070 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17072         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17073         instances can own GC refs.
17075         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17076         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17077         (gcc::context::gt_pch_nx): Likewise.
17078         (gcc::context::gt_pch_nx):  Likewise.
17079         * ggc.h (gt_ggc_mx <T>): New.
17080         (gt_pch_nx_with_op <T>): New.
17081         (gt_pch_nx <T>): New.
17082         * passes.c (opt_pass::gt_ggc_mx): New.
17083         (opt_pass::gt_pch_nx): New.
17084         (opt_pass::gt_pch_nx_with_op): New.
17085         (pass_manager::gt_ggc_mx): New.
17086         (pass_manager::gt_pch_nx): New.
17087         (pass_manager::gt_pch_nx_with_op): New.
17088         (pass_manager::operator new): Use
17089         ggc_internal_cleared_alloc_stat rather than xcalloc.
17090         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17091         (pass_manager::gt_ggc_mx): New.
17092         (pass_manager::gt_pch_nx): New.
17093         (pass_manager::gt_pch_nx_with_op): New.
17094         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17095         (opt_pass::operator new): New.
17096         (opt_pass::gt_ggc_mx): New.
17097         (opt_pass::gt_pch_nx): New.
17098         (opt_pass::gt_pch_nx_with_op): New.
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  Alan Modra  <amodra@gmail.com>
17121         PR target/57865
17122         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
17123         (rs6000_emit_epilogue): Likewise.
17125 2013-08-19  Dehao Chen  <dehao@google.com>
17127         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
17129 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
17130             Jakub Jelinek  <jakub@redhat.com>
17132         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
17133         (BUILT_IN_FABSD64): Likewise.
17134         (BUILT_IN_FABSD128): Likewise.
17135         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
17136         (fold_builtin_1): Likewise.
17137         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
17138         destination and source operands.
17139         (*abstd2_fpr): Likewise.
17140         (*nabstd2_fpr): Likewise.
17142 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
17144         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
17145         JUMP_P and INSN_P.
17147 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
17149         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
17150         incomplete.
17152 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17154         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
17155         * builtins.c (default_libc_has_function): New.
17156         (gnu_libc_has_function): Ditto.
17157         (no_c99_libc_has_function): Ditto.
17158         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
17159         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
17160         (fold_builtin_sincos): Likewise.
17161         (fold_builtin_cexp): Likewise.
17162         * builtins.def (DEF_C94_BUILTIN): Likewise.
17163         (DEF_C99_BUILTIN): Likewise.
17164         (DEF_C99_C90RES_BUILTIN): Likewise.
17165         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
17166         definitions to using this define.
17167         * config/darwin-protos.h (darwin_libc_has_function): New.
17168         * config/darwin.c (darwin_libc_has_function): Ditto.
17169         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
17170         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
17171         * config/darwin.h: Ditto.
17172         * config/elfos.h: Ditto.
17173         * config/freebsd.h: Ditto.
17174         * config/i386/cygming.h: Ditto.
17175         * config/i386/djgpp.h: Ditto.
17176         * config/i386/i386-interix.h: Ditto.
17177         * config/microblaze/microblaze.h: Ditto.
17178         * config/mmix/mmix.h: Ditto.
17179         * config/gnu-user.h: Ditto.
17180         * config/ia64/hpux.h: Ditto.
17181         * config/pa/pa-hpux.h: Ditto.
17182         * config/pdp11/pdp11.h: Ditto.
17183         * config/picochip/picochip.h: Ditto.
17184         * config/linux.h: Ditto.
17185         * config/netbsd.h: Ditto.
17186         * config/openbsd.h: Ditto.
17187         * config/rs6000/aix43.h: Ditto.
17188         * config/rs6000/aix51.h: Ditto.
17189         * config/rs6000/aix52.h: Ditto.
17190         * config/rs6000/aix53.h: Ditto.
17191         * config/rs6000/aix61.h: Ditto.
17192         * config/rs6000/darwin.h: Ditto.
17193         * config/rs6000/linux.h: Ditto.
17194         * config/rs6000/linux64.h: Ditto.
17195         * config/s390/tpf.h: Ditto.
17196         * config/sol2-10.h: Ditto.
17197         * config/sol2.h: Ditto.
17198         * config/vms/vms.h: Ditto.
17199         * config/vxworks.h: Ditto.
17200         * config/linux-android.c (linux_android_libc_has_function):
17201         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
17202         * config/linux-protos.h (linux_android_libc_has_function):
17203         New declaration.
17204         * config/i386/i386.c (ix86_libc_has_function): New.
17205         * config/i386/i386-protos.h
17206         (ix86_libc_has_function): New declaration.
17207         * config/i386/i386.md
17208         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
17209         ("isinf<mode>2): Likewise.
17210         * convert.c (convert_to_integer): Using new target hook
17211         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
17212         TARGET_C99_FUNCTIONS.
17213         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
17214         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
17215         * coretypes.h (function_class): New enum for different
17216         classes of functions.
17217         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
17218         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
17219         (TARGET_HAS_SINCOS): Likewise.
17220         (TARGET_LIBC_HAS_FUNCTION): New.
17221         * doc/tm.texi: Regenerated.
17222         * targhooks.h (default_libc_has_function): New declaration.
17223         (no_c99_libc_has_function): Ditto.
17224         (gnu_libc_has_function): Ditto.
17225         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
17226         and TARGET_HAS_SINCOS.
17228 2013-08-18  Jan Hubicka  <jh@suse.cz>
17230         * Makeifle-in (ipa-devirt.o): New.
17231         (GTFILES): Add ipa-utils.h and ipa-devirt.c
17232         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
17233         (analyze_functions): Look into possible targets of polymorphic call.
17234         * dumpfile.c (dump_files): Add type-inheritance dump.
17235         * dumpfile.h (TDI_inheritance): New.
17236         * ipa-devirt.c: New file.
17237         * ipa-utils.h (odr_type_d): Forward declare.
17238         (odr_type): New type.
17239         (build_type_inheritance_graph): Declare.
17240         (possible_polymorphic_call_targets): Declare and introduce inline
17241         variant when only edge is pased.
17242         (dump_possible_polymorphic_call_targets): Likewise.
17243         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
17244         * tree.c (type_in_anonymous_namespace_p): Break out from ...
17245         (types_same_for_odr): ... here.
17246         * tree.h (type_in_anonymous_namespace_p): Declare.
17248 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
17250         PR tree-optimization/58006
17251         * tree-parloops.c (take_address_of): Don't ICE if get_name
17252         returns NULL.
17253         (eliminate_local_variables_stmt): Remove clobber stmts.
17255 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
17257         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
17258         error message is issued for an alias to undefined symbol.
17260 2013-08-18  Jan Hubicka  <jh@suse.cz>
17262         * cgraph.c (cgraph_create_indirect_edge): Discover
17263         polymorphic calls and record basic info into indirect_info.
17264         * gimple-fold.c (gimple_fold_call): When doing BINFO based
17265         devirtualization, ignore objc function calls.
17266         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
17267         call with no parm index info.
17268         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
17269         * tree.c (virtual_method_call_p): New function.
17270         * tree.h (virtual_method_call_p): Declare.
17272 2013-08-16  Jan Hubicka  <jh@suse.cz>
17274         PR middle-end/58179
17275         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
17277 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
17279         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
17280         attribute.
17282 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
17284         * gengtype.c (type_for_name): Add special-case support for
17285         locating types within the "gcc::" namespace.
17286         (open_base_files): Emit a "using namespace gcc" directive.
17288 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
17290         PR target/58160
17291         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
17292         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
17294         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
17295         array instead of each individual operand as a separate argument.
17296         (emit_fusion_gpr_load): Likewise.
17297         (expand_fusion_gpr_load): Add new function declaration.
17299         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
17300         signature to have the operands passed as an array, instead of as
17301         separate arguments.  Allow ZERO_EXTEND to be in the memory
17302         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
17303         depend on the register live/dead flags when peepholes are run.
17304         (expand_fusion_gpr_load): New function to be called from the
17305         peephole2 pass, to change the register that addis sets to be the
17306         target register.
17307         (emit_fusion_gpr_load): Change the calling signature to have the
17308         operands passed as an array, instead of as separate arguments.
17309         Allow ZERO_EXTEND to be in the memory address, and also
17310         SIGN_EXTEND if -mpower8-fusion-sign.
17312         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
17313         unspec enumeration.
17314         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
17315         adjust the register addis loads up in the peephole2 pass.  Do not
17316         depend on the register live/dead state when the peephole pass is done.
17318 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
17320         * gengtype.c (create_user_defined_type): Ensure that the kind
17321         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
17322         declaration is seen before the GTY((user)) marking.
17324 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17326         PR target/58105
17327         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
17329 2013-08-16  Jan Hubicka  <jh@suse.cz>
17331         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
17332         arugment expected_type.
17333         (gimple_fold_call): Use it.
17334         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
17335         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
17336         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
17337         (try_make_edge_direct_virtual_call): Likewise.
17338         * tree.c (obj_type_ref_class): New.
17339         * tree.h (obj_type_ref_class): Use it.
17341 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17343         * sched-vis.c (rtl_slim_pp_initialized): Remove.
17344         (rtl_slim_pp): Likewise.
17345         (init_rtl_slim_pretty_print): Likewise.
17346         (dump_value_slim):  Don't call it.  Use local pretty printer.
17347         (dump_insn_slim): Likewise.
17348         (dump_rtl_slim): Likewise.
17349         (str_pattern_slim): Likewise.
17350         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
17351         Simplify.
17353 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
17355         PR tree-optimization/58164
17356         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
17357         walk gimple_goto_dest of GIMPLE_GOTO.
17359         PR tree-optimization/58165
17360         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
17361         bi_call must be the last stmt in a bb, don't split_block, instead
17362         use fallthru edge from it and give up if there is none.
17363         Release conds vector when returning early.
17365 2013-08-14  Xinliang David Li  <davidxl@google.com>
17367         * config/i386/i386.c (ix86_option_override_internal):
17368         Remove unused variable and field.
17370 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17372         PR target/57949
17373         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
17374         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
17375         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
17376         and Linux, correct BLKmode alignment when 128-bit alignment is
17377         required and compatibility flag is not set.
17378         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
17379         for zero-size arguments when compatibility flag is not set.
17381 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
17383         PR tree-optimization/58145
17384         * tree-sra.c (build_ref_for_offset): If prev_base has
17385         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
17387 2013-08-14  Xinliang David Li  <davidxl@google.com>
17389         * config/i386/i386.c (ix86_option_override_internal):
17390         Fix uninitialized variable error.
17392 2013-08-14  Xinliang David Li  <davidxl@google.com>
17394         * config/i386/i386.opt: Define two new options.
17395         * config/i386/x86-tune.def: Add arch selector field in macros.
17396         * config/i386/i386.h: Adjust macro definition.
17397         * config/i386/i386.c (ix86_option_override_internal):
17398         Refactor the code.
17399         (parse_mtune_ctrl_str): New function.
17400         (set_ix86_tune_features): New function.
17401         (ix86_function_specific_restore): Call the new helper function.
17403 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
17405         PR rtl-optimization/57662
17406         * sel-sched.c (code_motion_process_successors): When the current insn
17407         is removed after the recursive traversal, break from the loop.
17408         Add comments and debug printouts.
17410 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
17411             Alexandre Oliva  <aoliva@redhat.com>
17413         PR target/58067
17414         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
17415         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
17416         there also UNSPEC_PLTOFF.
17418 2013-08-14  Marek Polacek  <polacek@redhat.com>
17420         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
17421         NUM_CONDITIONS bit positions.
17423 2013-08-13  Cary Coutant  <ccoutant@google.com>
17425         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
17426         (attr_checksum): Hash vector contents instead of pointer.
17427         (attr_checksum_ordered): Likewise.
17429 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
17431         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
17432         when Pmode != word_mode.  Add length_address attribute.
17433         (sse3_monitor_<mode>): Merge from sse3_monitor and
17434         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
17435         Pmode != word_mode.  Update insn length attribute.
17436         * config/i386/i386.c (ix86_option_override_internal): Update
17437         ix86_gen_monitor selection for merged sse3_monitor insn.
17439 2013-08-13  Julian Brown  <julian@codesourcery.com>
17441         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17442         perform invalid legitimization on greater-than-word-size modes for
17443         TARGET_E500_DOUBLE.
17445 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
17447         * ira.c (setup_class_translate_array): Use aclass instead of cl
17448         for classes not fully covered by allocno classes.
17450 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
17452         PR tree-optimization/57661
17453         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
17454         * tree-inline.c (tree_function_versioning): Initialize it.
17455         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
17456         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
17457         that is not being copied.
17459         PR sanitizer/56417
17460         * asan.c (instrument_strlen_call): Fix typo in comment.
17461         Use char * type even for the lhs of POINTER_PLUS_EXPR.
17463 2013-08-13  Steve Ellcey  <sellcey@mips.com>
17465         * config/mips/mips.md (prefetch): Use lw instead of ld on
17466         loongson in 32bit mode.
17468 2013-08-13  Nick Clifton  <nickc@redhat.com>
17470         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
17472 2013-08-13  Jan Hubicka  <jh@suse.cz>
17474         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
17475         introduced edge; fix typo in sanity check.
17476         (cgraph_resolve_speculation): Export; improve diagnostic.
17477         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
17478         speculation at type mismatch.
17479         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
17480         (cgraph_resolve_speculation): Declare.
17481         (symtab_can_be_discarded): New function.
17482         * value-prof.c (gimple_ic_transform): Remove actual transform code.
17483         * ipa-inline-transform.c (speculation_removed): New global var.
17484         (clone_inlined_nodes): See if speculation can be removed.
17485         (inline_call): If speculations was removed, we growths may not match.
17486         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
17487         (speculation_useful_p): New function.
17488         (resolve_noninline_speculation): New function.
17489         (inline_small_functions): Resolve useless speculations.
17490         * ipa-inline.h (speculation_useful_p): Declare
17491         * ipa.c (can_replace_by_local_alias): Simplify.
17492         (ipa_profile): Produce speculative calls in non-lto, too;
17493         add simple cost model; produce local aliases.
17495 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
17497         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
17498         PASS_MANAGER_H.
17500 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
17502         * config/i386/i386.c (ix86_function_versions): Use error + inform.
17504 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
17506         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
17507         iterator instead of X87MODEF.
17509 2013-08-12  Perez Read  <netfirewall@gmail.com>
17511         PR target/58132
17512         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
17513         operand 0 for intel asm alternative.
17514         (*movabs<mode>_2): Ditto for operand 1.
17516 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
17518         * config/aarch64/arm_none.h
17519         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
17521 2013-08-12  Nick Clifton  <nickc@redhat.com>
17523         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
17525 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
17527         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
17528         expand for QI/HImode operand to produce more effictive code for
17529         unsigned char(short) --> float(double) conversion.
17531 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
17533         * doc/invoke.texi: Mention that -ftls-model does not force the final
17534         model.
17536 2013-08-12  Marek Polacek  <polacek@redhat.com>
17537             Marc Glisse  <marc.glisse@inria.fr>
17539         PR tree-optimization/57980
17540         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
17541         when creating -1 constant.
17543 2013-08-10  Jan Hubicka  <jh@suse.cz>
17545         Workaround binutils PR14342.
17546         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
17547         (gimple_init_edge_profiler): Likewise.
17548         (gimple_gen_ic_func_profiler): Likewise.
17550 2013-08-09  Jan Hubicka  <jh@suse.cz>
17552         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
17554 2013-08-09  Xinliang David Li  <davidxl@google.com>
17556         * config/i386/stringop.def: New file.
17557         * config/i386/stringop.opt: New file.
17558         * config/i386/i386-opts.h: Include stringopt.def.
17559         * config/i386/i386.opt: Include stringopt.opt.
17560         * config/i386/i386.c (ix86_option_override_internal):
17561         Override default size based stringop inline strategies with options.
17562         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
17563         New function.
17565 2013-08-09  Jan Hubicka  <jh@suse.cz>
17567         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
17569 2013-08-09  Jan Hubicka  <jh@suse.cz>
17571         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
17572         CGRAPH_FREQ_MAX.
17573         (dump_cgraph_node): Dump profile-id.
17574         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
17575         and common_target_probability.
17576         * lto-cgraph.c (lto_output_edge): Stream common targets.
17577         (lto_output_node): Stream profile ids.
17578         (input_node): Stream profile ids.
17579         (input_edge): Stream common targets.
17580         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
17581         * ipa.c: Include value-prof.h
17582         (ipa_profile_generate_summary): Turn indirect call statement histograms
17583         into common targets.
17584         (ipa_profile): Turn common targets into speculative edges.
17586 2013-08-09  Jan Hubicka  <jh@suse.cz>
17588         * cgraph.h (cgraph_node): Add profile_id.
17589         * value-prof.c (cgraph_node_map): Turn into pointer_map.
17590         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
17591         (del_node_map): Update.
17592         (find_func_by_funcdef_no): Replace by ...
17593         (find_func_by_profile_id): ... this one.
17594         (gimple_ic_transform): Do not remove useful histograms when
17595         speculation is not done; dump info when indirect call removal
17596         can happen at LTO.
17597         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
17598         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
17599         (__gcov_indirect_call_profiler_v2): .. this one.
17600         * profile.h (init_node_map): Update.
17601         * coverage.c (coverage_compute_profile_id): New function.
17602         * coverage.h (coverage_compute_profile_id): Declare.
17603         * tree-profile.c (init_ic_make_global_vars): Make
17604         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
17605         (gimple_init_edge_profiler): Update prototype of
17606         __gcov_indirect_call_profiler.
17607         (gimple_gen_ic_func_profiler): Simplify.
17608         (tree_profiling): Use init_node_map
17610 2013-08-09  Jan Hubicka  <jh@suse.cz>
17612         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
17613         non-speculative refs.
17614         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
17615         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
17616         (cgraph_set_call_stmt): Likewise.
17617         (cgraph_create_edge_1): Fix release checking compilatoin;
17618         clear lto_stmt_uid.
17619         (cgraph_free_edge): Free indirect info.
17620         (cgraph_turn_edge_to_speculative): New function.
17621         (cgraph_speculative_call_info): New function.
17622         (cgraph_make_edge_direct): Return direct edge; handle speculation.
17623         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
17624         (dump_cgraph_node): Dump speculation.
17625         (verify_edge_count_and_frequency): Accept speculative edges.
17626         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
17627         (verify_cgraph_node): Handle speculation.
17628         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
17629         (cgraph_set_call_stmt): Update prototype.
17630         (cgraph_make_edge_direct): Update prototype.
17631         (cgraph_speculative_call_info): Declare.
17632         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
17633         to change; update call of ipa_find_references.
17634         * ipa-ref.c (ipa_record_reference): Fix return value; clear
17635         lto_stmt_uid and speculative flags.
17636         (ipa_dump_references): Dump speculation.
17637         (ipa_clone_references): Clone speculative flag.
17638         (ipa_clone_referring): Likewise.
17639         (ipa_clone_ref): New function.
17640         (ipa_find_reference): Look into lto_stmt_uids
17641         (ipa_clear_stmts_in_references): Do not clear speculative calls.
17642         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
17643         (ipa_find_reference): Update declaration.
17644         (ipa_clone_ref): Declare.
17645         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
17646         stream speculative flag.
17647         (lto_output_ref): Stream statements uids and speculation.
17648         (input_ref): Likewise.
17649         (input_edge): Stream speuclation.
17650         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
17651         (cgraph_set_call_stmt_including_clones): Handle speculation.
17652         * ipa-inline.c (heap_edge_removal_hook): New function.
17653         (inline_small_functions): Register it.
17654         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
17655         also initialize refs.
17656         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
17657         edge to change.
17658         (try_make_edge_direct_simple_call): Likewise.
17659         (try_make_edge_direct_simple_call): Likewise.
17660         (update_indirect_edges_after_inlining): Likewise.
17661         (remove_described_reference): Look proper lto_stmt_uid.
17662         (propagate_controlled_uses): Likewise.
17663         (propagate_controlled_uses): Liekwise.
17664         * tree-inline.c (copy_bb): Copy speculative edges.
17665         (redirect_all_calls): New function.
17666         (copy_cfg_body): Do redirection after loop info is updated.
17667         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
17669 2013-08-09  Jan Hubicka  <jh@suse.cz>
17671         * lto-streamer-out.c (output_function): Renumber PHIs.
17672         * lto-streamer-in.c (input_function): Likewise.
17674 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
17676         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
17677         (get_lane_unsigned): Likewise.
17678         (dup_lane_scalar): Likewise.
17679         (get_lane): enable for VALL.
17680         * config/aarch64/aarch64-simd.md
17681         (aarch64_dup_lane_scalar<mode>): Remove.
17682         (aarch64_get_lane_signed<mode>): Likewise.
17683         (aarch64_get_lane_unsigned<mode>): Likewise.
17684         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
17685         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
17686         (aarch64_get_lane<mode>): Enable for all vector modes.
17687         (aarch64_get_lanedi): Remove misleading constraints.
17688         * config/aarch64/arm_neon.h
17689         (__aarch64_vget_lane_any): Define.
17690         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
17691         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
17692         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
17693         * config/aarch64/iterators.md (VDQQH): New.
17694         (VDQQHS): Likewise.
17695         (vwcore): Likewise.
17697 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
17699         * configure.ac: Add GAS check for LEON instructions on SPARC.
17700         * configure: Regenerate.
17701         * config.in: Likewise.
17702         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
17703         sparc*-*-* block.
17704         * config/sparc/sparc.opt (LEON, LEON3): New masks.
17705         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
17706         for LEON or LEON3.
17707         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
17708         (AS_LEON_FLAG): New macro.
17709         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
17710         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
17711         Deal with LEON and LEON3 for the memory model.
17712         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
17713         (atomic_compare_and_swap<mode>_1): Likewise.
17714         (*atomic_compare_and_swap<mode>_1): Likewise.
17716 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17718         * config/arm/neon.md (vcond): Fix floating-point vector
17719         comparisons against 0.
17721 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
17723         * lra-constraints.c (emit_spill_move): Remove assert.
17724         (process_alt_operands): Add more debugging
17725         output.  Increase reject for spilling into memory.  Decrease
17726         reject for reloading scratch.
17727         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
17729 2013-08-08  Steve Ellcey  <sellcey@mips.com>
17731         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
17732         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
17733         micromips incompatible.  Add nan2008.
17734         (MULTILIB_DIRNAMES): Add nan2008.
17735         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17736         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
17737         and micromips incompatible.  Add nan2008.
17738         (MULTILIB_DIRNAMES): Add nan2008.
17739         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17741 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
17743         PR rtl-optimization/58079
17744         * combine.c (combine_simplify_rtx): Avoid using SUBST if
17745         simplify_comparison has widened a comparison with an integer.
17747 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17749         * config/arm/neon.md (movmisalign<mode>): Disable when we
17750         don't allow unaligned accesses.
17751         (*movmisalign<mode>_neon_store): Likewise.
17752         (*movmisalign<mode>_neon_load): Likewise.
17753         (*movmisalign<mode>_neon_store): Likewise.
17754         (*movmisalign<mode>_neon_load): Likewise.
17756 2013-08-08  Jan Hubicka  <jh@suse.cz>
17758         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
17759         (make_pass_rebuild_cgraph_edges): Also clear references.
17760         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
17761         * ipa-inline-transform.c (inline_transform): Remove all references
17762         after inlining.
17763         * cgraphunit.c (expand_function): Remove all references after
17764         expansion.
17765         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
17766         (ipa_find_reference): Rewrite to iterator.
17767         (remove_stmt_references): Likewise.
17768         (ipa_clear_stmts_in_references): New function.
17769         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
17770         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
17771         clear references.
17772         * ipa-split.c (split_function): Remove references in split function.
17774 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
17776         PR target/57431
17777         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
17778         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
17780 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
17782         PR target/56979
17783         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
17784         suggested mode for the assignment isn't compatible with the
17785         registers required.
17787 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17789         PR target/58065
17790         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
17792 2013-08-07  Xinliang David Li  <davidxl@google.com>
17794         * config/i386/i386.opt: New option -mtune-ctrl=.
17795         * config/i386/x86-tune.def: New file.
17796         * config/i386/i386.h: include x86-tune.def.
17797         * config/i386/i386.c (ix86_option_override_internal):
17798         Parsing -mtune-ctrl= option and set tune features.
17800 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
17802         PR other/12081
17803         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
17804         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
17805         to gen_2arg_fn_t.
17807 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
17809         * rtl.h (update_alignments): Declare.
17810         * final.c (grow_label_align): New function extracted from...
17811         (shorten_branches): ...here.  Call it.
17812         (update_alignments): New function.
17813         * reorg.c (sibling_labels): New variable.
17814         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
17815         the new label along with it onto the sibling_labels vector.
17816         (fill_simple_delay_slots): Adjust call to get_label_before.
17817         (fill_slots_from_thread): Likewise.
17818         (relax_delay_slots): Likewise.
17819         (make_return_insns): Likewise.
17820         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
17822 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
17824         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
17825         document its semantics.
17826         (diagnostic_report_diagnostic): Adjust accordingly.
17828 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17830         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
17831         (sparc_option_override): ...and port to new C++ pass API.
17832         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
17834 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
17836         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
17838 2013-08-06  Caroline Tice  <cmtice@google.com>
17840         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
17841         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
17842         * tree-pass.h: Add pass_vtable_verify.
17843         * varasm.c (assemble_variable): Add code to properly set the comdat
17844         section and name for the .vtable_map_vars section.
17845         (assemble_vtyv_preinit_initializer): New function.
17846         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
17847         LINK_ONCE flag.
17848         * output.h: Add function decl for assemble_vtv_preinit_initializer.
17849         * vtable-verify.c: New file.
17850         * vtable-verify.h: New file.
17851         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
17852         initialiation levels.
17853         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
17854         * passes.def: Insert pass_vtable_verify.
17855         * aclocal.m4: Reorder includes.
17856         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
17857         -fvtv-counts options.
17858         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
17859         as appropriate, if -fvtable-verify=... is used.
17860         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
17861         -fvtable-verify=... is used.
17862         * Makefile.in (OBJS):  Add vtable-verify.o to list.
17863         (vtable-verify.o): Add new build rule.
17864         (GTFILES): Add vtable-verify.c to list.
17865         * common.opt (fvtable-verify=): New flag.
17866         (vtv_priority): Values for fvtable-verify= flag.
17867         (fvtv-counts): New flag.
17868         (fvtv-debug): New flag.
17869         * tree.h (save_vtable_map_decl): New extern function decl.
17871 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17873         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
17874         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
17875         (pass_data_rl78_devirt): ...new pass_data instance and...
17876         (make_pass_rl78_devirt): ...new function.
17877         (rl78_asm_file_start): Port pass registration to new C++ API.
17879 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17881         * coretypes.h (rtl_opt_pass): Add.
17882         (gcc::context): Add.
17883         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
17884         (epiphany_init): Port to new C++ pass API.
17885         (epiphany_optimize_mode_switching): Likewise.
17886         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
17887         (pass_manager::get_pass_mode_switching): New.
17888         (pass_manager::get_pass_peephole2): New.
17889         * mode-switching.c (pass_mode_switching): Add clone method.
17890         * recog.c (pass_peephole2): Add clone method.
17891         (pass_split_all_insns): Add clone method.
17893 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
17895         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
17896         (mips_option_override): ...here, porting to new C++ API for passes.
17898 2013-08-06  Jan Hubicka  <jh@suse.cz>
17900         * cgraph.c (cgraph_get_body): New function based on lto.c
17901         implementation.
17902         * cgraph.h (cgraph_get_body): Declare.
17903         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
17904         LTO paths.
17905         * cgraphunit.c (expand_function): Get body prior expanding.
17906         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
17907         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
17908         really need.
17909         * passes.c (do_per_function_toporder): Get body.
17910         * tree-inline.c (expand_call_inline): Get body prior inlining it.
17911         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
17913 2013-08-06  Martin Jambor  <mjambor@suse.cz>
17915         PR fortran/57987
17916         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
17917         is not re-finalized.  Rename second parameter to no_collect.
17919 2013-08-06  Martin Jambor  <mjambor@suse.cz>
17921         PR middle-end/58041
17922         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
17923         MEM_REF has proper alignment information.
17925 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
17927         PR other/12081
17928         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
17929         class insn_gen_fn.
17930         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
17931         rtx (*) (rtx, ...) with insn_gen_fn.
17932         * genoutput.c (output_insn_data): Cast gen_? function pointers to
17933         insn_gen_fn::stored_funcptr.  Add initializer braces.
17935 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
17937         Rewrite how instances of passes are cloned to remove assumptions
17938         about their sizes (thus allowing pass subclasses to have
17939         additional data fields, albeit non-GC-managed ones at this point).
17941         * passes.c (make_pass_instance): Now that passes have clone
17942         methods, rewrite this function to eliminate XNEW and memcpy
17943         calls that used hardcoded sizes.  Since this function no longer
17944         creates pass instances, rename it to...
17945         (add_pass_instance): ...this.  Document the old way that passes were
17946         numbered and flagged, and rework this function to continue using it.
17947         (next_pass_1): Add an initial_pass argument for use by
17948         add_pass_instance.
17949         (position_pass): When adding multiple instances of a pass, use
17950         the pass's clone method, rather than relying on the XNEW/memcpy
17951         within the former make_pass_instance (now add_pass_instance).
17952         (pass_manager::pass_manager): When invoking next_pass_1, also supply
17953         the initial instance of the current pass within the pass manager.
17955 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
17957         This is the automated part of the conversion of passes from C
17958         structs to C++ classes.
17960         Patch autogenerated by refactor_passes.py from
17961         https://github.com/davidmalcolm/gcc-refactoring-scripts
17962         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
17964         * asan.c (pass_asan): Convert from a global struct to a subclass of
17965         gimple_opt_pass along with...
17966         (pass_data_asan): ...new pass_data instance and...
17967         (make_pass_asan): ...new function.
17968         (pass_asan_O0): Convert from a global struct to a subclass of
17969         gimple_opt_pass along with...
17970         (pass_data_asan_O0): ...new pass_data instance and...
17971         (make_pass_asan_O0): ...new function.
17972         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
17973         subclass of rtl_opt_pass along with...
17974         (pass_data_inc_dec): ...new pass_data instance and...
17975         (make_pass_inc_dec): ...new function.
17976         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
17977         a subclass of rtl_opt_pass along with...
17978         (pass_data_reorder_blocks): ...new pass_data instance and...
17979         (make_pass_reorder_blocks): ...new function.
17980         (pass_duplicate_computed_gotos): Convert from a global struct to a
17981         subclass of rtl_opt_pass along with...
17982         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
17983         (make_pass_duplicate_computed_gotos): ...new function.
17984         (pass_partition_blocks): Convert from a global struct to a subclass of
17985         rtl_opt_pass along with...
17986         (pass_data_partition_blocks): ...new pass_data instance and...
17987         (make_pass_partition_blocks): ...new function.
17988         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
17989         struct to a subclass of rtl_opt_pass along with...
17990         (pass_data_branch_target_load_optimize1): ...new pass_data instance
17991         and...
17992         (make_pass_branch_target_load_optimize1): ...new function.
17993         (pass_branch_target_load_optimize2): Convert from a global struct to a
17994         subclass of rtl_opt_pass along with...
17995         (pass_data_branch_target_load_optimize2): ...new pass_data instance
17996         and...
17997         (make_pass_branch_target_load_optimize2): ...new function.
17998         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
17999         of rtl_opt_pass along with...
18000         (pass_data_jump): ...new pass_data instance and...
18001         (make_pass_jump): ...new function.
18002         (pass_jump2): Convert from a global struct to a subclass of
18003         rtl_opt_pass along with...
18004         (pass_data_jump2): ...new pass_data instance and...
18005         (make_pass_jump2): ...new function.
18006         * cfgexpand.c (pass_expand): Convert from a global struct to a
18007         subclass of rtl_opt_pass along with...
18008         (pass_data_expand): ...new pass_data instance and...
18009         (make_pass_expand): ...new function.
18010         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
18011         of rtl_opt_pass along with...
18012         (pass_data_free_cfg): ...new pass_data instance and...
18013         (make_pass_free_cfg): ...new function.
18014         (pass_into_cfg_layout_mode): Convert from a global struct to a
18015         subclass of rtl_opt_pass along with...
18016         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
18017         (make_pass_into_cfg_layout_mode): ...new function.
18018         (pass_outof_cfg_layout_mode): Convert from a global struct to a
18019         subclass of rtl_opt_pass along with...
18020         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
18021         (make_pass_outof_cfg_layout_mode): ...new function.
18022         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
18023         struct to a subclass of gimple_opt_pass along with...
18024         (pass_data_build_cgraph_edges): ...new pass_data instance and...
18025         (make_pass_build_cgraph_edges): ...new function.
18026         (pass_rebuild_cgraph_edges): Convert from a global struct to a
18027         subclass of gimple_opt_pass along with...
18028         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
18029         (make_pass_rebuild_cgraph_edges): ...new function.
18030         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
18031         subclass of gimple_opt_pass along with...
18032         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
18033         and...
18034         (make_pass_remove_cgraph_callee_edges): ...new function.
18035         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
18036         struct to a subclass of rtl_opt_pass along with...
18037         (pass_data_stack_adjustments): ...new pass_data instance and...
18038         (make_pass_stack_adjustments): ...new function.
18039         * combine.c (pass_combine): Convert from a global struct to a subclass
18040         of rtl_opt_pass along with...
18041         (pass_data_combine): ...new pass_data instance and...
18042         (make_pass_combine): ...new function.
18043         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
18044         global struct to a subclass of rtl_opt_pass along with...
18045         (pass_data_compare_elim_after_reload): ...new pass_data instance
18046         and...
18047         (make_pass_compare_elim_after_reload): ...new function.
18048         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
18049         of rtl_opt_pass along with...
18050         (pass_data_rtl_cprop): ...new pass_data instance and...
18051         (make_pass_rtl_cprop): ...new function.
18052         * cse.c (pass_cse): Convert from a global struct to a subclass of
18053         rtl_opt_pass along with...
18054         (pass_data_cse): ...new pass_data instance and...
18055         (make_pass_cse): ...new function.
18056         (pass_cse2): Convert from a global struct to a subclass of
18057         rtl_opt_pass along with...
18058         (pass_data_cse2): ...new pass_data instance and...
18059         (make_pass_cse2): ...new function.
18060         (pass_cse_after_global_opts): Convert from a global struct to a
18061         subclass of rtl_opt_pass along with...
18062         (pass_data_cse_after_global_opts): ...new pass_data instance and...
18063         (make_pass_cse_after_global_opts): ...new function.
18064         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
18065         of rtl_opt_pass along with...
18066         (pass_data_ud_rtl_dce): ...new pass_data instance and...
18067         (make_pass_ud_rtl_dce): ...new function.
18068         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
18069         rtl_opt_pass along with...
18070         (pass_data_fast_rtl_dce): ...new pass_data instance and...
18071         (make_pass_fast_rtl_dce): ...new function.
18072         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
18073         a subclass of rtl_opt_pass along with...
18074         (pass_data_df_initialize_opt): ...new pass_data instance and...
18075         (make_pass_df_initialize_opt): ...new function.
18076         (pass_df_initialize_no_opt): Convert from a global struct to a
18077         subclass of rtl_opt_pass along with...
18078         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
18079         (make_pass_df_initialize_no_opt): ...new function.
18080         (pass_df_finish): Convert from a global struct to a subclass of
18081         rtl_opt_pass along with...
18082         (pass_data_df_finish): ...new pass_data instance and...
18083         (make_pass_df_finish): ...new function.
18084         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
18085         rtl_opt_pass along with...
18086         (pass_data_rtl_dse1): ...new pass_data instance and...
18087         (make_pass_rtl_dse1): ...new function.
18088         (pass_rtl_dse2): Convert from a global struct to a subclass of
18089         rtl_opt_pass along with...
18090         (pass_data_rtl_dse2): ...new pass_data instance and...
18091         (make_pass_rtl_dse2): ...new function.
18092         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
18093         subclass of rtl_opt_pass along with...
18094         (pass_data_dwarf2_frame): ...new pass_data instance and...
18095         (make_pass_dwarf2_frame): ...new function.
18096         * except.c (pass_set_nothrow_function_flags): Convert from a global
18097         struct to a subclass of rtl_opt_pass along with...
18098         (pass_data_set_nothrow_function_flags): ...new pass_data instance
18099         and...
18100         (make_pass_set_nothrow_function_flags): ...new function.
18101         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
18102         subclass of rtl_opt_pass along with...
18103         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
18104         and...
18105         (make_pass_convert_to_eh_region_ranges): ...new function.
18106         * final.c (pass_compute_alignments): Convert from a global struct to a
18107         subclass of rtl_opt_pass along with...
18108         (pass_data_compute_alignments): ...new pass_data instance and...
18109         (make_pass_compute_alignments): ...new function.
18110         (pass_final): Convert from a global struct to a subclass of
18111         rtl_opt_pass along with...
18112         (pass_data_final): ...new pass_data instance and...
18113         (make_pass_final): ...new function.
18114         (pass_shorten_branches): Convert from a global struct to a subclass of
18115         rtl_opt_pass along with...
18116         (pass_data_shorten_branches): ...new pass_data instance and...
18117         (make_pass_shorten_branches): ...new function.
18118         (pass_clean_state): Convert from a global struct to a subclass of
18119         rtl_opt_pass along with...
18120         (pass_data_clean_state): ...new pass_data instance and...
18121         (make_pass_clean_state): ...new function.
18122         * function.c (pass_instantiate_virtual_regs): Convert from a global
18123         struct to a subclass of rtl_opt_pass along with...
18124         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
18125         (make_pass_instantiate_virtual_regs): ...new function.
18126         (pass_leaf_regs): Convert from a global struct to a subclass of
18127         rtl_opt_pass along with...
18128         (pass_data_leaf_regs): ...new pass_data instance and...
18129         (make_pass_leaf_regs): ...new function.
18130         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
18131         subclass of rtl_opt_pass along with...
18132         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
18133         and...
18134         (make_pass_thread_prologue_and_epilogue): ...new function.
18135         (pass_match_asm_constraints): Convert from a global struct to a
18136         subclass of rtl_opt_pass along with...
18137         (pass_data_match_asm_constraints): ...new pass_data instance and...
18138         (make_pass_match_asm_constraints): ...new function.
18139         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
18140         subclass of rtl_opt_pass along with...
18141         (pass_data_rtl_fwprop): ...new pass_data instance and...
18142         (make_pass_rtl_fwprop): ...new function.
18143         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
18144         rtl_opt_pass along with...
18145         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
18146         (make_pass_rtl_fwprop_addr): ...new function.
18147         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
18148         rtl_opt_pass along with...
18149         (pass_data_rtl_pre): ...new pass_data instance and...
18150         (make_pass_rtl_pre): ...new function.
18151         (pass_rtl_hoist): Convert from a global struct to a subclass of
18152         rtl_opt_pass along with...
18153         (pass_data_rtl_hoist): ...new pass_data instance and...
18154         (make_pass_rtl_hoist): ...new function.
18155         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
18156         subclass of gimple_opt_pass along with...
18157         (pass_data_lower_cf): ...new pass_data instance and...
18158         (make_pass_lower_cf): ...new function.
18159         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
18160         from a global struct to a subclass of gimple_opt_pass along with...
18161         (pass_data_strength_reduction): ...new pass_data instance and...
18162         (make_pass_strength_reduction): ...new function.
18163         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
18164         of rtl_opt_pass along with...
18165         (pass_data_rtl_ifcvt): ...new pass_data instance and...
18166         (make_pass_rtl_ifcvt): ...new function.
18167         (pass_if_after_combine): Convert from a global struct to a subclass of
18168         rtl_opt_pass along with...
18169         (pass_data_if_after_combine): ...new pass_data instance and...
18170         (make_pass_if_after_combine): ...new function.
18171         (pass_if_after_reload): Convert from a global struct to a subclass of
18172         rtl_opt_pass along with...
18173         (pass_data_if_after_reload): ...new pass_data instance and...
18174         (make_pass_if_after_reload): ...new function.
18175         * init-regs.c (pass_initialize_regs): Convert from a global struct to
18176         a subclass of rtl_opt_pass along with...
18177         (pass_data_initialize_regs): ...new pass_data instance and...
18178         (make_pass_initialize_regs): ...new function.
18179         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
18180         of ipa_opt_pass_d along with...
18181         (pass_data_ipa_cp): ...new pass_data instance and...
18182         (make_pass_ipa_cp): ...new function.
18183         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
18184         global struct to a subclass of gimple_opt_pass along with...
18185         (pass_data_inline_parameters): ...new pass_data instance and...
18186         (make_pass_inline_parameters): ...new function.
18187         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
18188         subclass of gimple_opt_pass along with...
18189         (pass_data_early_inline): ...new pass_data instance and...
18190         (make_pass_early_inline): ...new function.
18191         (pass_ipa_inline): Convert from a global struct to a subclass of
18192         ipa_opt_pass_d along with...
18193         (pass_data_ipa_inline): ...new pass_data instance and...
18194         (make_pass_ipa_inline): ...new function.
18195         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
18196         struct to a subclass of gimple_opt_pass along with...
18197         (pass_data_local_pure_const): ...new pass_data instance and...
18198         (make_pass_local_pure_const): ...new function.
18199         (pass_ipa_pure_const): Convert from a global struct to a subclass of
18200         ipa_opt_pass_d along with...
18201         (pass_data_ipa_pure_const): ...new pass_data instance and...
18202         (make_pass_ipa_pure_const): ...new function.
18203         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
18204         to a subclass of ipa_opt_pass_d along with...
18205         (pass_data_ipa_reference): ...new pass_data instance and...
18206         (make_pass_ipa_reference): ...new function.
18207         * ipa-split.c (pass_split_functions): Convert from a global struct to
18208         a subclass of gimple_opt_pass along with...
18209         (pass_data_split_functions): ...new pass_data instance and...
18210         (make_pass_split_functions): ...new function.
18211         (pass_feedback_split_functions): Convert from a global struct to a
18212         subclass of gimple_opt_pass along with...
18213         (pass_data_feedback_split_functions): ...new pass_data instance and...
18214         (make_pass_feedback_split_functions): ...new function.
18215         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
18216         global struct to a subclass of simple_ipa_opt_pass along with...
18217         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
18218         instance and...
18219         (make_pass_ipa_function_and_variable_visibility): ...new function.
18220         (pass_ipa_free_inline_summary): Convert from a global struct to a
18221         subclass of simple_ipa_opt_pass along with...
18222         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
18223         (make_pass_ipa_free_inline_summary): ...new function.
18224         (pass_ipa_whole_program_visibility): Convert from a global struct to a
18225         subclass of ipa_opt_pass_d along with...
18226         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
18227         and...
18228         (make_pass_ipa_whole_program_visibility): ...new function.
18229         (pass_ipa_profile): Convert from a global struct to a subclass of
18230         ipa_opt_pass_d along with...
18231         (pass_data_ipa_profile): ...new pass_data instance and...
18232         (make_pass_ipa_profile): ...new function.
18233         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
18234         ipa_opt_pass_d along with...
18235         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
18236         (make_pass_ipa_cdtor_merge): ...new function.
18237         * ira.c (pass_ira): Convert from a global struct to a subclass of
18238         rtl_opt_pass along with...
18239         (pass_data_ira): ...new pass_data instance and...
18240         (make_pass_ira): ...new function.
18241         (pass_reload): Convert from a global struct to a subclass of
18242         rtl_opt_pass along with...
18243         (pass_data_reload): ...new pass_data instance and...
18244         (make_pass_reload): ...new function.
18245         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
18246         subclass of rtl_opt_pass along with...
18247         (pass_data_cleanup_barriers): ...new pass_data instance and...
18248         (make_pass_cleanup_barriers): ...new function.
18249         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
18250         of rtl_opt_pass along with...
18251         (pass_data_loop2): ...new pass_data instance and...
18252         (make_pass_loop2): ...new function.
18253         (pass_rtl_loop_init): Convert from a global struct to a subclass of
18254         rtl_opt_pass along with...
18255         (pass_data_rtl_loop_init): ...new pass_data instance and...
18256         (make_pass_rtl_loop_init): ...new function.
18257         (pass_rtl_loop_done): Convert from a global struct to a subclass of
18258         rtl_opt_pass along with...
18259         (pass_data_rtl_loop_done): ...new pass_data instance and...
18260         (make_pass_rtl_loop_done): ...new function.
18261         (pass_rtl_move_loop_invariants): Convert from a global struct to a
18262         subclass of rtl_opt_pass along with...
18263         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
18264         (make_pass_rtl_move_loop_invariants): ...new function.
18265         (pass_rtl_unswitch): Convert from a global struct to a subclass of
18266         rtl_opt_pass along with...
18267         (pass_data_rtl_unswitch): ...new pass_data instance and...
18268         (make_pass_rtl_unswitch): ...new function.
18269         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
18270         subclass of rtl_opt_pass along with...
18271         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
18272         and...
18273         (make_pass_rtl_unroll_and_peel_loops): ...new function.
18274         (pass_rtl_doloop): Convert from a global struct to a subclass of
18275         rtl_opt_pass along with...
18276         (pass_data_rtl_doloop): ...new pass_data instance and...
18277         (make_pass_rtl_doloop): ...new function.
18278         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
18279         a subclass of rtl_opt_pass along with...
18280         (pass_data_lower_subreg): ...new pass_data instance and...
18281         (make_pass_lower_subreg): ...new function.
18282         (pass_lower_subreg2): Convert from a global struct to a subclass of
18283         rtl_opt_pass along with...
18284         (pass_data_lower_subreg2): ...new pass_data instance and...
18285         (make_pass_lower_subreg2): ...new function.
18286         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
18287         struct to a subclass of ipa_opt_pass_d along with...
18288         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
18289         (make_pass_ipa_lto_gimple_out): ...new function.
18290         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
18291         of ipa_opt_pass_d along with...
18292         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
18293         (make_pass_ipa_lto_finish_out): ...new function.
18294         * mode-switching.c (pass_mode_switching): Convert from a global struct
18295         to a subclass of rtl_opt_pass along with...
18296         (pass_data_mode_switching): ...new pass_data instance and...
18297         (make_pass_mode_switching): ...new function.
18298         * modulo-sched.c (pass_sms): Convert from a global struct to a
18299         subclass of rtl_opt_pass along with...
18300         (pass_data_sms): ...new pass_data instance and...
18301         (make_pass_sms): ...new function.
18302         * omp-low.c (pass_expand_omp): Convert from a global struct to a
18303         subclass of gimple_opt_pass along with...
18304         (pass_data_expand_omp): ...new pass_data instance and...
18305         (make_pass_expand_omp): ...new function.
18306         (pass_lower_omp): Convert from a global struct to a subclass of
18307         gimple_opt_pass along with...
18308         (pass_data_lower_omp): ...new pass_data instance and...
18309         (make_pass_lower_omp): ...new function.
18310         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
18311         of gimple_opt_pass along with...
18312         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
18313         (make_pass_diagnose_omp_blocks): ...new function.
18314         * passes.c (pass_early_local_passes): Convert from a global struct to
18315         a subclass of simple_ipa_opt_pass along with...
18316         (pass_data_early_local_passes): ...new pass_data instance and...
18317         (make_pass_early_local_passes): ...new function.
18318         (pass_all_early_optimizations): Convert from a global struct to a
18319         subclass of gimple_opt_pass along with...
18320         (pass_data_all_early_optimizations): ...new pass_data instance and...
18321         (make_pass_all_early_optimizations): ...new function.
18322         (pass_all_optimizations): Convert from a global struct to a subclass
18323         of gimple_opt_pass along with...
18324         (pass_data_all_optimizations): ...new pass_data instance and...
18325         (make_pass_all_optimizations): ...new function.
18326         (pass_all_optimizations_g): Convert from a global struct to a subclass
18327         of gimple_opt_pass along with...
18328         (pass_data_all_optimizations_g): ...new pass_data instance and...
18329         (make_pass_all_optimizations_g): ...new function.
18330         (pass_rest_of_compilation): Convert from a global struct to a subclass
18331         of rtl_opt_pass along with...
18332         (pass_data_rest_of_compilation): ...new pass_data instance and...
18333         (make_pass_rest_of_compilation): ...new function.
18334         (pass_postreload): Convert from a global struct to a subclass of
18335         rtl_opt_pass along with...
18336         (pass_data_postreload): ...new pass_data instance and...
18337         (make_pass_postreload): ...new function.
18338         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
18339         subclass of rtl_opt_pass along with...
18340         (pass_data_gcse2): ...new pass_data instance and...
18341         (make_pass_gcse2): ...new function.
18342         * postreload.c (pass_postreload_cse): Convert from a global struct to
18343         a subclass of rtl_opt_pass along with...
18344         (pass_data_postreload_cse): ...new pass_data instance and...
18345         (make_pass_postreload_cse): ...new function.
18346         * predict.c (pass_profile): Convert from a global struct to a subclass
18347         of gimple_opt_pass along with...
18348         (pass_data_profile): ...new pass_data instance and...
18349         (make_pass_profile): ...new function.
18350         (pass_strip_predict_hints): Convert from a global struct to a subclass
18351         of gimple_opt_pass along with...
18352         (pass_data_strip_predict_hints): ...new pass_data instance and...
18353         (make_pass_strip_predict_hints): ...new function.
18354         * recog.c (pass_peephole2): Convert from a global struct to a subclass
18355         of rtl_opt_pass along with...
18356         (pass_data_peephole2): ...new pass_data instance and...
18357         (make_pass_peephole2): ...new function.
18358         (pass_split_all_insns): Convert from a global struct to a subclass of
18359         rtl_opt_pass along with...
18360         (pass_data_split_all_insns): ...new pass_data instance and...
18361         (make_pass_split_all_insns): ...new function.
18362         (pass_split_after_reload): Convert from a global struct to a subclass
18363         of rtl_opt_pass along with...
18364         (pass_data_split_after_reload): ...new pass_data instance and...
18365         (make_pass_split_after_reload): ...new function.
18366         (pass_split_before_regstack): Convert from a global struct to a
18367         subclass of rtl_opt_pass along with...
18368         (pass_data_split_before_regstack): ...new pass_data instance and...
18369         (make_pass_split_before_regstack): ...new function.
18370         (pass_split_before_sched2): Convert from a global struct to a subclass
18371         of rtl_opt_pass along with...
18372         (pass_data_split_before_sched2): ...new pass_data instance and...
18373         (make_pass_split_before_sched2): ...new function.
18374         (pass_split_for_shorten_branches): Convert from a global struct to a
18375         subclass of rtl_opt_pass along with...
18376         (pass_data_split_for_shorten_branches): ...new pass_data instance
18377         and...
18378         (make_pass_split_for_shorten_branches): ...new function.
18379         * ree.c (pass_ree): Convert from a global struct to a subclass of
18380         rtl_opt_pass along with...
18381         (pass_data_ree): ...new pass_data instance and...
18382         (make_pass_ree): ...new function.
18383         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
18384         subclass of rtl_opt_pass along with...
18385         (pass_data_stack_regs): ...new pass_data instance and...
18386         (make_pass_stack_regs): ...new function.
18387         (pass_stack_regs_run): Convert from a global struct to a subclass of
18388         rtl_opt_pass along with...
18389         (pass_data_stack_regs_run): ...new pass_data instance and...
18390         (make_pass_stack_regs_run): ...new function.
18391         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
18392         subclass of rtl_opt_pass along with...
18393         (pass_data_cprop_hardreg): ...new pass_data instance and...
18394         (make_pass_cprop_hardreg): ...new function.
18395         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
18396         subclass of rtl_opt_pass along with...
18397         (pass_data_reginfo_init): ...new pass_data instance and...
18398         (make_pass_reginfo_init): ...new function.
18399         * regmove.c (pass_regmove): Convert from a global struct to a subclass
18400         of rtl_opt_pass along with...
18401         (pass_data_regmove): ...new pass_data instance and...
18402         (make_pass_regmove): ...new function.
18403         * regrename.c (pass_regrename): Convert from a global struct to a
18404         subclass of rtl_opt_pass along with...
18405         (pass_data_regrename): ...new pass_data instance and...
18406         (make_pass_regrename): ...new function.
18407         * reorg.c (pass_delay_slots): Convert from a global struct to a
18408         subclass of rtl_opt_pass along with...
18409         (pass_data_delay_slots): ...new pass_data instance and...
18410         (make_pass_delay_slots): ...new function.
18411         (pass_machine_reorg): Convert from a global struct to a subclass of
18412         rtl_opt_pass along with...
18413         (pass_data_machine_reorg): ...new pass_data instance and...
18414         (make_pass_machine_reorg): ...new function.
18415         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
18416         of rtl_opt_pass along with...
18417         (pass_data_sched): ...new pass_data instance and...
18418         (make_pass_sched): ...new function.
18419         (pass_sched2): Convert from a global struct to a subclass of
18420         rtl_opt_pass along with...
18421         (pass_data_sched2): ...new pass_data instance and...
18422         (make_pass_sched2): ...new function.
18423         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
18424         to a subclass of rtl_opt_pass along with...
18425         (pass_data_stack_ptr_mod): ...new pass_data instance and...
18426         (make_pass_stack_ptr_mod): ...new function.
18427         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
18428         to a subclass of rtl_opt_pass along with...
18429         (pass_data_rtl_store_motion): ...new pass_data instance and...
18430         (make_pass_rtl_store_motion): ...new function.
18431         * tracer.c (pass_tracer): Convert from a global struct to a subclass
18432         of gimple_opt_pass along with...
18433         (pass_data_tracer): ...new pass_data instance and...
18434         (make_pass_tracer): ...new function.
18435         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
18436         to a subclass of gimple_opt_pass along with...
18437         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
18438         (make_pass_diagnose_tm_blocks): ...new function.
18439         (pass_lower_tm): Convert from a global struct to a subclass of
18440         gimple_opt_pass along with...
18441         (pass_data_lower_tm): ...new pass_data instance and...
18442         (make_pass_lower_tm): ...new function.
18443         (pass_tm_init): Convert from a global struct to a subclass of
18444         gimple_opt_pass along with...
18445         (pass_data_tm_init): ...new pass_data instance and...
18446         (make_pass_tm_init): ...new function.
18447         (pass_tm_mark): Convert from a global struct to a subclass of
18448         gimple_opt_pass along with...
18449         (pass_data_tm_mark): ...new pass_data instance and...
18450         (make_pass_tm_mark): ...new function.
18451         (pass_tm_edges): Convert from a global struct to a subclass of
18452         gimple_opt_pass along with...
18453         (pass_data_tm_edges): ...new pass_data instance and...
18454         (make_pass_tm_edges): ...new function.
18455         (pass_tm_memopt): Convert from a global struct to a subclass of
18456         gimple_opt_pass along with...
18457         (pass_data_tm_memopt): ...new pass_data instance and...
18458         (make_pass_tm_memopt): ...new function.
18459         (pass_ipa_tm): Convert from a global struct to a subclass of
18460         simple_ipa_opt_pass along with...
18461         (pass_data_ipa_tm): ...new pass_data instance and...
18462         (make_pass_ipa_tm): ...new function.
18463         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
18464         subclass of gimple_opt_pass along with...
18465         (pass_data_call_cdce): ...new pass_data instance and...
18466         (make_pass_call_cdce): ...new function.
18467         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
18468         subclass of gimple_opt_pass along with...
18469         (pass_data_build_cfg): ...new pass_data instance and...
18470         (make_pass_build_cfg): ...new function.
18471         (pass_split_crit_edges): Convert from a global struct to a subclass of
18472         gimple_opt_pass along with...
18473         (pass_data_split_crit_edges): ...new pass_data instance and...
18474         (make_pass_split_crit_edges): ...new function.
18475         (pass_warn_function_return): Convert from a global struct to a
18476         subclass of gimple_opt_pass along with...
18477         (pass_data_warn_function_return): ...new pass_data instance and...
18478         (make_pass_warn_function_return): ...new function.
18479         (pass_warn_function_noreturn): Convert from a global struct to a
18480         subclass of gimple_opt_pass along with...
18481         (pass_data_warn_function_noreturn): ...new pass_data instance and...
18482         (make_pass_warn_function_noreturn): ...new function.
18483         (pass_warn_unused_result): Convert from a global struct to a subclass
18484         of gimple_opt_pass along with...
18485         (pass_data_warn_unused_result): ...new pass_data instance and...
18486         (make_pass_warn_unused_result): ...new function.
18487         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
18488         a subclass of gimple_opt_pass along with...
18489         (pass_data_merge_phi): ...new pass_data instance and...
18490         (make_pass_merge_phi): ...new function.
18491         * tree-complex.c (pass_lower_complex): Convert from a global struct to
18492         a subclass of gimple_opt_pass along with...
18493         (pass_data_lower_complex): ...new pass_data instance and...
18494         (make_pass_lower_complex): ...new function.
18495         (pass_lower_complex_O0): Convert from a global struct to a subclass of
18496         gimple_opt_pass along with...
18497         (pass_data_lower_complex_O0): ...new pass_data instance and...
18498         (make_pass_lower_complex_O0): ...new function.
18499         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
18500         subclass of gimple_opt_pass along with...
18501         (pass_data_lower_eh): ...new pass_data instance and...
18502         (make_pass_lower_eh): ...new function.
18503         (pass_refactor_eh): Convert from a global struct to a subclass of
18504         gimple_opt_pass along with...
18505         (pass_data_refactor_eh): ...new pass_data instance and...
18506         (make_pass_refactor_eh): ...new function.
18507         (pass_lower_resx): Convert from a global struct to a subclass of
18508         gimple_opt_pass along with...
18509         (pass_data_lower_resx): ...new pass_data instance and...
18510         (make_pass_lower_resx): ...new function.
18511         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
18512         of gimple_opt_pass along with...
18513         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
18514         (make_pass_lower_eh_dispatch): ...new function.
18515         (pass_cleanup_eh): Convert from a global struct to a subclass of
18516         gimple_opt_pass along with...
18517         (pass_data_cleanup_eh): ...new pass_data instance and...
18518         (make_pass_cleanup_eh): ...new function.
18519         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
18520         to a subclass of simple_ipa_opt_pass along with...
18521         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
18522         (make_pass_ipa_lower_emutls): ...new function.
18523         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
18524         a subclass of gimple_opt_pass along with...
18525         (pass_data_if_conversion): ...new pass_data instance and...
18526         (make_pass_if_conversion): ...new function.
18527         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
18528         subclass of gimple_opt_pass along with...
18529         (pass_data_build_ssa): ...new pass_data instance and...
18530         (make_pass_build_ssa): ...new function.
18531         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
18532         global struct to a subclass of gimple_opt_pass along with...
18533         (pass_data_loop_distribution): ...new pass_data instance and...
18534         (make_pass_loop_distribution): ...new function.
18535         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
18536         subclass of gimple_opt_pass along with...
18537         (pass_data_mudflap_1): ...new pass_data instance and...
18538         (make_pass_mudflap_1): ...new function.
18539         (pass_mudflap_2): Convert from a global struct to a subclass of
18540         gimple_opt_pass along with...
18541         (pass_data_mudflap_2): ...new pass_data instance and...
18542         (make_pass_mudflap_2): ...new function.
18543         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
18544         subclass of gimple_opt_pass along with...
18545         (pass_data_mudflap_1): ...new pass_data instance and...
18546         (make_pass_mudflap_1): ...new function.
18547         (pass_mudflap_2): Convert from a global struct to a subclass of
18548         gimple_opt_pass along with...
18549         (pass_data_mudflap_2): ...new pass_data instance and...
18550         (make_pass_mudflap_2): ...new function.
18551         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
18552         gimple_opt_pass along with...
18553         (pass_data_nrv): ...new pass_data instance and...
18554         (make_pass_nrv): ...new function.
18555         (pass_return_slot): Convert from a global struct to a subclass of
18556         gimple_opt_pass along with...
18557         (pass_data_return_slot): ...new pass_data instance and...
18558         (make_pass_return_slot): ...new function.
18559         * tree-object-size.c (pass_object_sizes): Convert from a global struct
18560         to a subclass of gimple_opt_pass along with...
18561         (pass_data_object_sizes): ...new pass_data instance and...
18562         (make_pass_object_sizes): ...new function.
18563         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
18564         global struct to a subclass of gimple_opt_pass along with...
18565         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
18566         and...
18567         (make_pass_cleanup_cfg_post_optimizing): ...new function.
18568         (pass_fixup_cfg): Convert from a global struct to a subclass of
18569         gimple_opt_pass along with...
18570         (pass_data_fixup_cfg): ...new pass_data instance and...
18571         (make_pass_fixup_cfg): ...new function.
18572         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
18573         (make_pass_mudflap_1): ...new function.
18574         (pass_mudflap_2): Replace declaration with that of...
18575         (make_pass_mudflap_2): ...new function.
18576         (pass_asan): Replace declaration with that of...
18577         (make_pass_asan): ...new function.
18578         (pass_asan_O0): Replace declaration with that of...
18579         (make_pass_asan_O0): ...new function.
18580         (pass_tsan): Replace declaration with that of...
18581         (make_pass_tsan): ...new function.
18582         (pass_tsan_O0): Replace declaration with that of...
18583         (make_pass_tsan_O0): ...new function.
18584         (pass_lower_cf): Replace declaration with that of...
18585         (make_pass_lower_cf): ...new function.
18586         (pass_refactor_eh): Replace declaration with that of...
18587         (make_pass_refactor_eh): ...new function.
18588         (pass_lower_eh): Replace declaration with that of...
18589         (make_pass_lower_eh): ...new function.
18590         (pass_lower_eh_dispatch): Replace declaration with that of...
18591         (make_pass_lower_eh_dispatch): ...new function.
18592         (pass_lower_resx): Replace declaration with that of...
18593         (make_pass_lower_resx): ...new function.
18594         (pass_build_cfg): Replace declaration with that of...
18595         (make_pass_build_cfg): ...new function.
18596         (pass_early_tree_profile): Replace declaration with that of...
18597         (make_pass_early_tree_profile): ...new function.
18598         (pass_cleanup_eh): Replace declaration with that of...
18599         (make_pass_cleanup_eh): ...new function.
18600         (pass_sra): Replace declaration with that of...
18601         (make_pass_sra): ...new function.
18602         (pass_sra_early): Replace declaration with that of...
18603         (make_pass_sra_early): ...new function.
18604         (pass_early_ipa_sra): Replace declaration with that of...
18605         (make_pass_early_ipa_sra): ...new function.
18606         (pass_tail_recursion): Replace declaration with that of...
18607         (make_pass_tail_recursion): ...new function.
18608         (pass_tail_calls): Replace declaration with that of...
18609         (make_pass_tail_calls): ...new function.
18610         (pass_tree_loop): Replace declaration with that of...
18611         (make_pass_tree_loop): ...new function.
18612         (pass_tree_loop_init): Replace declaration with that of...
18613         (make_pass_tree_loop_init): ...new function.
18614         (pass_lim): Replace declaration with that of...
18615         (make_pass_lim): ...new function.
18616         (pass_tree_unswitch): Replace declaration with that of...
18617         (make_pass_tree_unswitch): ...new function.
18618         (pass_predcom): Replace declaration with that of...
18619         (make_pass_predcom): ...new function.
18620         (pass_iv_canon): Replace declaration with that of...
18621         (make_pass_iv_canon): ...new function.
18622         (pass_scev_cprop): Replace declaration with that of...
18623         (make_pass_scev_cprop): ...new function.
18624         (pass_empty_loop): Replace declaration with that of...
18625         (make_pass_empty_loop): ...new function.
18626         (pass_record_bounds): Replace declaration with that of...
18627         (make_pass_record_bounds): ...new function.
18628         (pass_graphite): Replace declaration with that of...
18629         (make_pass_graphite): ...new function.
18630         (pass_graphite_transforms): Replace declaration with that of...
18631         (make_pass_graphite_transforms): ...new function.
18632         (pass_if_conversion): Replace declaration with that of...
18633         (make_pass_if_conversion): ...new function.
18634         (pass_loop_distribution): Replace declaration with that of...
18635         (make_pass_loop_distribution): ...new function.
18636         (pass_vectorize): Replace declaration with that of...
18637         (make_pass_vectorize): ...new function.
18638         (pass_slp_vectorize): Replace declaration with that of...
18639         (make_pass_slp_vectorize): ...new function.
18640         (pass_complete_unroll): Replace declaration with that of...
18641         (make_pass_complete_unroll): ...new function.
18642         (pass_complete_unrolli): Replace declaration with that of...
18643         (make_pass_complete_unrolli): ...new function.
18644         (pass_parallelize_loops): Replace declaration with that of...
18645         (make_pass_parallelize_loops): ...new function.
18646         (pass_loop_prefetch): Replace declaration with that of...
18647         (make_pass_loop_prefetch): ...new function.
18648         (pass_iv_optimize): Replace declaration with that of...
18649         (make_pass_iv_optimize): ...new function.
18650         (pass_tree_loop_done): Replace declaration with that of...
18651         (make_pass_tree_loop_done): ...new function.
18652         (pass_ch): Replace declaration with that of...
18653         (make_pass_ch): ...new function.
18654         (pass_ccp): Replace declaration with that of...
18655         (make_pass_ccp): ...new function.
18656         (pass_phi_only_cprop): Replace declaration with that of...
18657         (make_pass_phi_only_cprop): ...new function.
18658         (pass_build_ssa): Replace declaration with that of...
18659         (make_pass_build_ssa): ...new function.
18660         (pass_build_alias): Replace declaration with that of...
18661         (make_pass_build_alias): ...new function.
18662         (pass_build_ealias): Replace declaration with that of...
18663         (make_pass_build_ealias): ...new function.
18664         (pass_dominator): Replace declaration with that of...
18665         (make_pass_dominator): ...new function.
18666         (pass_dce): Replace declaration with that of...
18667         (make_pass_dce): ...new function.
18668         (pass_dce_loop): Replace declaration with that of...
18669         (make_pass_dce_loop): ...new function.
18670         (pass_cd_dce): Replace declaration with that of...
18671         (make_pass_cd_dce): ...new function.
18672         (pass_call_cdce): Replace declaration with that of...
18673         (make_pass_call_cdce): ...new function.
18674         (pass_merge_phi): Replace declaration with that of...
18675         (make_pass_merge_phi): ...new function.
18676         (pass_split_crit_edges): Replace declaration with that of...
18677         (make_pass_split_crit_edges): ...new function.
18678         (pass_pre): Replace declaration with that of...
18679         (make_pass_pre): ...new function.
18680         (pass_profile): Replace declaration with that of...
18681         (make_pass_profile): ...new function.
18682         (pass_strip_predict_hints): Replace declaration with that of...
18683         (make_pass_strip_predict_hints): ...new function.
18684         (pass_lower_complex_O0): Replace declaration with that of...
18685         (make_pass_lower_complex_O0): ...new function.
18686         (pass_lower_complex): Replace declaration with that of...
18687         (make_pass_lower_complex): ...new function.
18688         (pass_lower_vector): Replace declaration with that of...
18689         (make_pass_lower_vector): ...new function.
18690         (pass_lower_vector_ssa): Replace declaration with that of...
18691         (make_pass_lower_vector_ssa): ...new function.
18692         (pass_lower_omp): Replace declaration with that of...
18693         (make_pass_lower_omp): ...new function.
18694         (pass_diagnose_omp_blocks): Replace declaration with that of...
18695         (make_pass_diagnose_omp_blocks): ...new function.
18696         (pass_expand_omp): Replace declaration with that of...
18697         (make_pass_expand_omp): ...new function.
18698         (pass_expand_omp_ssa): Replace declaration with that of...
18699         (make_pass_expand_omp_ssa): ...new function.
18700         (pass_object_sizes): Replace declaration with that of...
18701         (make_pass_object_sizes): ...new function.
18702         (pass_strlen): Replace declaration with that of...
18703         (make_pass_strlen): ...new function.
18704         (pass_fold_builtins): Replace declaration with that of...
18705         (make_pass_fold_builtins): ...new function.
18706         (pass_stdarg): Replace declaration with that of...
18707         (make_pass_stdarg): ...new function.
18708         (pass_early_warn_uninitialized): Replace declaration with that of...
18709         (make_pass_early_warn_uninitialized): ...new function.
18710         (pass_late_warn_uninitialized): Replace declaration with that of...
18711         (make_pass_late_warn_uninitialized): ...new function.
18712         (pass_cse_reciprocals): Replace declaration with that of...
18713         (make_pass_cse_reciprocals): ...new function.
18714         (pass_cse_sincos): Replace declaration with that of...
18715         (make_pass_cse_sincos): ...new function.
18716         (pass_optimize_bswap): Replace declaration with that of...
18717         (make_pass_optimize_bswap): ...new function.
18718         (pass_optimize_widening_mul): Replace declaration with that of...
18719         (make_pass_optimize_widening_mul): ...new function.
18720         (pass_warn_function_return): Replace declaration with that of...
18721         (make_pass_warn_function_return): ...new function.
18722         (pass_warn_function_noreturn): Replace declaration with that of...
18723         (make_pass_warn_function_noreturn): ...new function.
18724         (pass_cselim): Replace declaration with that of...
18725         (make_pass_cselim): ...new function.
18726         (pass_phiopt): Replace declaration with that of...
18727         (make_pass_phiopt): ...new function.
18728         (pass_forwprop): Replace declaration with that of...
18729         (make_pass_forwprop): ...new function.
18730         (pass_phiprop): Replace declaration with that of...
18731         (make_pass_phiprop): ...new function.
18732         (pass_tree_ifcombine): Replace declaration with that of...
18733         (make_pass_tree_ifcombine): ...new function.
18734         (pass_dse): Replace declaration with that of...
18735         (make_pass_dse): ...new function.
18736         (pass_nrv): Replace declaration with that of...
18737         (make_pass_nrv): ...new function.
18738         (pass_rename_ssa_copies): Replace declaration with that of...
18739         (make_pass_rename_ssa_copies): ...new function.
18740         (pass_sink_code): Replace declaration with that of...
18741         (make_pass_sink_code): ...new function.
18742         (pass_fre): Replace declaration with that of...
18743         (make_pass_fre): ...new function.
18744         (pass_check_data_deps): Replace declaration with that of...
18745         (make_pass_check_data_deps): ...new function.
18746         (pass_copy_prop): Replace declaration with that of...
18747         (make_pass_copy_prop): ...new function.
18748         (pass_vrp): Replace declaration with that of...
18749         (make_pass_vrp): ...new function.
18750         (pass_uncprop): Replace declaration with that of...
18751         (make_pass_uncprop): ...new function.
18752         (pass_return_slot): Replace declaration with that of...
18753         (make_pass_return_slot): ...new function.
18754         (pass_reassoc): Replace declaration with that of...
18755         (make_pass_reassoc): ...new function.
18756         (pass_rebuild_cgraph_edges): Replace declaration with that of...
18757         (make_pass_rebuild_cgraph_edges): ...new function.
18758         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
18759         (make_pass_remove_cgraph_callee_edges): ...new function.
18760         (pass_build_cgraph_edges): Replace declaration with that of...
18761         (make_pass_build_cgraph_edges): ...new function.
18762         (pass_local_pure_const): Replace declaration with that of...
18763         (make_pass_local_pure_const): ...new function.
18764         (pass_tracer): Replace declaration with that of...
18765         (make_pass_tracer): ...new function.
18766         (pass_warn_unused_result): Replace declaration with that of...
18767         (make_pass_warn_unused_result): ...new function.
18768         (pass_diagnose_tm_blocks): Replace declaration with that of...
18769         (make_pass_diagnose_tm_blocks): ...new function.
18770         (pass_lower_tm): Replace declaration with that of...
18771         (make_pass_lower_tm): ...new function.
18772         (pass_tm_init): Replace declaration with that of...
18773         (make_pass_tm_init): ...new function.
18774         (pass_tm_mark): Replace declaration with that of...
18775         (make_pass_tm_mark): ...new function.
18776         (pass_tm_memopt): Replace declaration with that of...
18777         (make_pass_tm_memopt): ...new function.
18778         (pass_tm_edges): Replace declaration with that of...
18779         (make_pass_tm_edges): ...new function.
18780         (pass_split_functions): Replace declaration with that of...
18781         (make_pass_split_functions): ...new function.
18782         (pass_feedback_split_functions): Replace declaration with that of...
18783         (make_pass_feedback_split_functions): ...new function.
18784         (pass_strength_reduction): Replace declaration with that of...
18785         (make_pass_strength_reduction): ...new function.
18786         (pass_ipa_lower_emutls): Replace declaration with that of...
18787         (make_pass_ipa_lower_emutls): ...new function.
18788         (pass_ipa_function_and_variable_visibility): Replace declaration with
18789         that of...
18790         (make_pass_ipa_function_and_variable_visibility): ...new function.
18791         (pass_ipa_tree_profile): Replace declaration with that of...
18792         (make_pass_ipa_tree_profile): ...new function.
18793         (pass_early_local_passes): Replace declaration with that of...
18794         (make_pass_early_local_passes): ...new function.
18795         (pass_ipa_whole_program_visibility): Replace declaration with that
18796         of...
18797         (make_pass_ipa_whole_program_visibility): ...new function.
18798         (pass_ipa_lto_gimple_out): Replace declaration with that of...
18799         (make_pass_ipa_lto_gimple_out): ...new function.
18800         (pass_ipa_increase_alignment): Replace declaration with that of...
18801         (make_pass_ipa_increase_alignment): ...new function.
18802         (pass_ipa_inline): Replace declaration with that of...
18803         (make_pass_ipa_inline): ...new function.
18804         (pass_ipa_free_lang_data): Replace declaration with that of...
18805         (make_pass_ipa_free_lang_data): ...new function.
18806         (pass_ipa_free_inline_summary): Replace declaration with that of...
18807         (make_pass_ipa_free_inline_summary): ...new function.
18808         (pass_ipa_cp): Replace declaration with that of...
18809         (make_pass_ipa_cp): ...new function.
18810         (pass_ipa_reference): Replace declaration with that of...
18811         (make_pass_ipa_reference): ...new function.
18812         (pass_ipa_pure_const): Replace declaration with that of...
18813         (make_pass_ipa_pure_const): ...new function.
18814         (pass_ipa_pta): Replace declaration with that of...
18815         (make_pass_ipa_pta): ...new function.
18816         (pass_ipa_lto_finish_out): Replace declaration with that of...
18817         (make_pass_ipa_lto_finish_out): ...new function.
18818         (pass_ipa_tm): Replace declaration with that of...
18819         (make_pass_ipa_tm): ...new function.
18820         (pass_ipa_profile): Replace declaration with that of...
18821         (make_pass_ipa_profile): ...new function.
18822         (pass_ipa_cdtor_merge): Replace declaration with that of...
18823         (make_pass_ipa_cdtor_merge): ...new function.
18824         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
18825         of...
18826         (make_pass_cleanup_cfg_post_optimizing): ...new function.
18827         (pass_init_datastructures): Replace declaration with that of...
18828         (make_pass_init_datastructures): ...new function.
18829         (pass_fixup_cfg): Replace declaration with that of...
18830         (make_pass_fixup_cfg): ...new function.
18831         (pass_expand): Replace declaration with that of...
18832         (make_pass_expand): ...new function.
18833         (pass_instantiate_virtual_regs): Replace declaration with that of...
18834         (make_pass_instantiate_virtual_regs): ...new function.
18835         (pass_rtl_fwprop): Replace declaration with that of...
18836         (make_pass_rtl_fwprop): ...new function.
18837         (pass_rtl_fwprop_addr): Replace declaration with that of...
18838         (make_pass_rtl_fwprop_addr): ...new function.
18839         (pass_jump): Replace declaration with that of...
18840         (make_pass_jump): ...new function.
18841         (pass_jump2): Replace declaration with that of...
18842         (make_pass_jump2): ...new function.
18843         (pass_lower_subreg): Replace declaration with that of...
18844         (make_pass_lower_subreg): ...new function.
18845         (pass_cse): Replace declaration with that of...
18846         (make_pass_cse): ...new function.
18847         (pass_fast_rtl_dce): Replace declaration with that of...
18848         (make_pass_fast_rtl_dce): ...new function.
18849         (pass_ud_rtl_dce): Replace declaration with that of...
18850         (make_pass_ud_rtl_dce): ...new function.
18851         (pass_rtl_dce): Replace declaration with that of...
18852         (make_pass_rtl_dce): ...new function.
18853         (pass_rtl_dse1): Replace declaration with that of...
18854         (make_pass_rtl_dse1): ...new function.
18855         (pass_rtl_dse2): Replace declaration with that of...
18856         (make_pass_rtl_dse2): ...new function.
18857         (pass_rtl_dse3): Replace declaration with that of...
18858         (make_pass_rtl_dse3): ...new function.
18859         (pass_rtl_cprop): Replace declaration with that of...
18860         (make_pass_rtl_cprop): ...new function.
18861         (pass_rtl_pre): Replace declaration with that of...
18862         (make_pass_rtl_pre): ...new function.
18863         (pass_rtl_hoist): Replace declaration with that of...
18864         (make_pass_rtl_hoist): ...new function.
18865         (pass_rtl_store_motion): Replace declaration with that of...
18866         (make_pass_rtl_store_motion): ...new function.
18867         (pass_cse_after_global_opts): Replace declaration with that of...
18868         (make_pass_cse_after_global_opts): ...new function.
18869         (pass_rtl_ifcvt): Replace declaration with that of...
18870         (make_pass_rtl_ifcvt): ...new function.
18871         (pass_into_cfg_layout_mode): Replace declaration with that of...
18872         (make_pass_into_cfg_layout_mode): ...new function.
18873         (pass_outof_cfg_layout_mode): Replace declaration with that of...
18874         (make_pass_outof_cfg_layout_mode): ...new function.
18875         (pass_loop2): Replace declaration with that of...
18876         (make_pass_loop2): ...new function.
18877         (pass_rtl_loop_init): Replace declaration with that of...
18878         (make_pass_rtl_loop_init): ...new function.
18879         (pass_rtl_move_loop_invariants): Replace declaration with that of...
18880         (make_pass_rtl_move_loop_invariants): ...new function.
18881         (pass_rtl_unswitch): Replace declaration with that of...
18882         (make_pass_rtl_unswitch): ...new function.
18883         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
18884         (make_pass_rtl_unroll_and_peel_loops): ...new function.
18885         (pass_rtl_doloop): Replace declaration with that of...
18886         (make_pass_rtl_doloop): ...new function.
18887         (pass_rtl_loop_done): Replace declaration with that of...
18888         (make_pass_rtl_loop_done): ...new function.
18889         (pass_web): Replace declaration with that of...
18890         (make_pass_web): ...new function.
18891         (pass_cse2): Replace declaration with that of...
18892         (make_pass_cse2): ...new function.
18893         (pass_df_initialize_opt): Replace declaration with that of...
18894         (make_pass_df_initialize_opt): ...new function.
18895         (pass_df_initialize_no_opt): Replace declaration with that of...
18896         (make_pass_df_initialize_no_opt): ...new function.
18897         (pass_reginfo_init): Replace declaration with that of...
18898         (make_pass_reginfo_init): ...new function.
18899         (pass_inc_dec): Replace declaration with that of...
18900         (make_pass_inc_dec): ...new function.
18901         (pass_stack_ptr_mod): Replace declaration with that of...
18902         (make_pass_stack_ptr_mod): ...new function.
18903         (pass_initialize_regs): Replace declaration with that of...
18904         (make_pass_initialize_regs): ...new function.
18905         (pass_combine): Replace declaration with that of...
18906         (make_pass_combine): ...new function.
18907         (pass_if_after_combine): Replace declaration with that of...
18908         (make_pass_if_after_combine): ...new function.
18909         (pass_ree): Replace declaration with that of...
18910         (make_pass_ree): ...new function.
18911         (pass_partition_blocks): Replace declaration with that of...
18912         (make_pass_partition_blocks): ...new function.
18913         (pass_match_asm_constraints): Replace declaration with that of...
18914         (make_pass_match_asm_constraints): ...new function.
18915         (pass_regmove): Replace declaration with that of...
18916         (make_pass_regmove): ...new function.
18917         (pass_split_all_insns): Replace declaration with that of...
18918         (make_pass_split_all_insns): ...new function.
18919         (pass_fast_rtl_byte_dce): Replace declaration with that of...
18920         (make_pass_fast_rtl_byte_dce): ...new function.
18921         (pass_lower_subreg2): Replace declaration with that of...
18922         (make_pass_lower_subreg2): ...new function.
18923         (pass_mode_switching): Replace declaration with that of...
18924         (make_pass_mode_switching): ...new function.
18925         (pass_sms): Replace declaration with that of...
18926         (make_pass_sms): ...new function.
18927         (pass_sched): Replace declaration with that of...
18928         (make_pass_sched): ...new function.
18929         (pass_ira): Replace declaration with that of...
18930         (make_pass_ira): ...new function.
18931         (pass_reload): Replace declaration with that of...
18932         (make_pass_reload): ...new function.
18933         (pass_clean_state): Replace declaration with that of...
18934         (make_pass_clean_state): ...new function.
18935         (pass_branch_prob): Replace declaration with that of...
18936         (make_pass_branch_prob): ...new function.
18937         (pass_value_profile_transformations): Replace declaration with that
18938         of...
18939         (make_pass_value_profile_transformations): ...new function.
18940         (pass_postreload_cse): Replace declaration with that of...
18941         (make_pass_postreload_cse): ...new function.
18942         (pass_gcse2): Replace declaration with that of...
18943         (make_pass_gcse2): ...new function.
18944         (pass_split_after_reload): Replace declaration with that of...
18945         (make_pass_split_after_reload): ...new function.
18946         (pass_branch_target_load_optimize1): Replace declaration with that
18947         of...
18948         (make_pass_branch_target_load_optimize1): ...new function.
18949         (pass_thread_prologue_and_epilogue): Replace declaration with that
18950         of...
18951         (make_pass_thread_prologue_and_epilogue): ...new function.
18952         (pass_stack_adjustments): Replace declaration with that of...
18953         (make_pass_stack_adjustments): ...new function.
18954         (pass_peephole2): Replace declaration with that of...
18955         (make_pass_peephole2): ...new function.
18956         (pass_if_after_reload): Replace declaration with that of...
18957         (make_pass_if_after_reload): ...new function.
18958         (pass_regrename): Replace declaration with that of...
18959         (make_pass_regrename): ...new function.
18960         (pass_cprop_hardreg): Replace declaration with that of...
18961         (make_pass_cprop_hardreg): ...new function.
18962         (pass_reorder_blocks): Replace declaration with that of...
18963         (make_pass_reorder_blocks): ...new function.
18964         (pass_branch_target_load_optimize2): Replace declaration with that
18965         of...
18966         (make_pass_branch_target_load_optimize2): ...new function.
18967         (pass_leaf_regs): Replace declaration with that of...
18968         (make_pass_leaf_regs): ...new function.
18969         (pass_split_before_sched2): Replace declaration with that of...
18970         (make_pass_split_before_sched2): ...new function.
18971         (pass_compare_elim_after_reload): Replace declaration with that of...
18972         (make_pass_compare_elim_after_reload): ...new function.
18973         (pass_sched2): Replace declaration with that of...
18974         (make_pass_sched2): ...new function.
18975         (pass_stack_regs): Replace declaration with that of...
18976         (make_pass_stack_regs): ...new function.
18977         (pass_stack_regs_run): Replace declaration with that of...
18978         (make_pass_stack_regs_run): ...new function.
18979         (pass_df_finish): Replace declaration with that of...
18980         (make_pass_df_finish): ...new function.
18981         (pass_compute_alignments): Replace declaration with that of...
18982         (make_pass_compute_alignments): ...new function.
18983         (pass_duplicate_computed_gotos): Replace declaration with that of...
18984         (make_pass_duplicate_computed_gotos): ...new function.
18985         (pass_variable_tracking): Replace declaration with that of...
18986         (make_pass_variable_tracking): ...new function.
18987         (pass_free_cfg): Replace declaration with that of...
18988         (make_pass_free_cfg): ...new function.
18989         (pass_machine_reorg): Replace declaration with that of...
18990         (make_pass_machine_reorg): ...new function.
18991         (pass_cleanup_barriers): Replace declaration with that of...
18992         (make_pass_cleanup_barriers): ...new function.
18993         (pass_delay_slots): Replace declaration with that of...
18994         (make_pass_delay_slots): ...new function.
18995         (pass_split_for_shorten_branches): Replace declaration with that of...
18996         (make_pass_split_for_shorten_branches): ...new function.
18997         (pass_split_before_regstack): Replace declaration with that of...
18998         (make_pass_split_before_regstack): ...new function.
18999         (pass_convert_to_eh_region_ranges): Replace declaration with that
19000         of...
19001         (make_pass_convert_to_eh_region_ranges): ...new function.
19002         (pass_shorten_branches): Replace declaration with that of...
19003         (make_pass_shorten_branches): ...new function.
19004         (pass_set_nothrow_function_flags): Replace declaration with that of...
19005         (make_pass_set_nothrow_function_flags): ...new function.
19006         (pass_dwarf2_frame): Replace declaration with that of...
19007         (make_pass_dwarf2_frame): ...new function.
19008         (pass_final): Replace declaration with that of...
19009         (make_pass_final): ...new function.
19010         (pass_rtl_seqabstr): Replace declaration with that of...
19011         (make_pass_rtl_seqabstr): ...new function.
19012         (pass_release_ssa_names): Replace declaration with that of...
19013         (make_pass_release_ssa_names): ...new function.
19014         (pass_early_inline): Replace declaration with that of...
19015         (make_pass_early_inline): ...new function.
19016         (pass_inline_parameters): Replace declaration with that of...
19017         (make_pass_inline_parameters): ...new function.
19018         (pass_update_address_taken): Replace declaration with that of...
19019         (make_pass_update_address_taken): ...new function.
19020         (pass_convert_switch): Replace declaration with that of...
19021         (make_pass_convert_switch): ...new function.
19022         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
19023         to a subclass of simple_ipa_opt_pass along with...
19024         (pass_data_ipa_tree_profile): ...new pass_data instance and...
19025         (make_pass_ipa_tree_profile): ...new function.
19026         * tree-sra.c (pass_sra_early): Convert from a global struct to a
19027         subclass of gimple_opt_pass along with...
19028         (pass_data_sra_early): ...new pass_data instance and...
19029         (make_pass_sra_early): ...new function.
19030         (pass_sra): Convert from a global struct to a subclass of
19031         gimple_opt_pass along with...
19032         (pass_data_sra): ...new pass_data instance and...
19033         (make_pass_sra): ...new function.
19034         (pass_early_ipa_sra): Convert from a global struct to a subclass of
19035         gimple_opt_pass along with...
19036         (pass_data_early_ipa_sra): ...new pass_data instance and...
19037         (make_pass_early_ipa_sra): ...new function.
19038         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
19039         subclass of gimple_opt_pass along with...
19040         (pass_data_ccp): ...new pass_data instance and...
19041         (make_pass_ccp): ...new function.
19042         (pass_fold_builtins): Convert from a global struct to a subclass of
19043         gimple_opt_pass along with...
19044         (pass_data_fold_builtins): ...new pass_data instance and...
19045         (make_pass_fold_builtins): ...new function.
19046         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
19047         subclass of gimple_opt_pass along with...
19048         (pass_data_copy_prop): ...new pass_data instance and...
19049         (make_pass_copy_prop): ...new function.
19050         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
19051         global struct to a subclass of gimple_opt_pass along with...
19052         (pass_data_rename_ssa_copies): ...new pass_data instance and...
19053         (make_pass_rename_ssa_copies): ...new function.
19054         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
19055         subclass of gimple_opt_pass along with...
19056         (pass_data_dce): ...new pass_data instance and...
19057         (make_pass_dce): ...new function.
19058         (pass_dce_loop): Convert from a global struct to a subclass of
19059         gimple_opt_pass along with...
19060         (pass_data_dce_loop): ...new pass_data instance and...
19061         (make_pass_dce_loop): ...new function.
19062         (pass_cd_dce): Convert from a global struct to a subclass of
19063         gimple_opt_pass along with...
19064         (pass_data_cd_dce): ...new pass_data instance and...
19065         (make_pass_cd_dce): ...new function.
19066         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
19067         subclass of gimple_opt_pass along with...
19068         (pass_data_dominator): ...new pass_data instance and...
19069         (make_pass_dominator): ...new function.
19070         (pass_phi_only_cprop): Convert from a global struct to a subclass of
19071         gimple_opt_pass along with...
19072         (pass_data_phi_only_cprop): ...new pass_data instance and...
19073         (make_pass_phi_only_cprop): ...new function.
19074         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
19075         subclass of gimple_opt_pass along with...
19076         (pass_data_dse): ...new pass_data instance and...
19077         (make_pass_dse): ...new function.
19078         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
19079         a subclass of gimple_opt_pass along with...
19080         (pass_data_forwprop): ...new pass_data instance and...
19081         (make_pass_forwprop): ...new function.
19082         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
19083         struct to a subclass of gimple_opt_pass along with...
19084         (pass_data_tree_ifcombine): ...new pass_data instance and...
19085         (make_pass_tree_ifcombine): ...new function.
19086         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
19087         subclass of gimple_opt_pass along with...
19088         (pass_data_ch): ...new pass_data instance and...
19089         (make_pass_ch): ...new function.
19090         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
19091         subclass of gimple_opt_pass along with...
19092         (pass_data_tree_loop): ...new pass_data instance and...
19093         (make_pass_tree_loop): ...new function.
19094         (pass_tree_loop_init): Convert from a global struct to a subclass of
19095         gimple_opt_pass along with...
19096         (pass_data_tree_loop_init): ...new pass_data instance and...
19097         (make_pass_tree_loop_init): ...new function.
19098         (pass_lim): Convert from a global struct to a subclass of
19099         gimple_opt_pass along with...
19100         (pass_data_lim): ...new pass_data instance and...
19101         (make_pass_lim): ...new function.
19102         (pass_tree_unswitch): Convert from a global struct to a subclass of
19103         gimple_opt_pass along with...
19104         (pass_data_tree_unswitch): ...new pass_data instance and...
19105         (make_pass_tree_unswitch): ...new function.
19106         (pass_predcom): Convert from a global struct to a subclass of
19107         gimple_opt_pass along with...
19108         (pass_data_predcom): ...new pass_data instance and...
19109         (make_pass_predcom): ...new function.
19110         (pass_vectorize): Convert from a global struct to a subclass of
19111         gimple_opt_pass along with...
19112         (pass_data_vectorize): ...new pass_data instance and...
19113         (make_pass_vectorize): ...new function.
19114         (pass_graphite): Convert from a global struct to a subclass of
19115         gimple_opt_pass along with...
19116         (pass_data_graphite): ...new pass_data instance and...
19117         (make_pass_graphite): ...new function.
19118         (pass_graphite_transforms): Convert from a global struct to a subclass
19119         of gimple_opt_pass along with...
19120         (pass_data_graphite_transforms): ...new pass_data instance and...
19121         (make_pass_graphite_transforms): ...new function.
19122         (pass_check_data_deps): Convert from a global struct to a subclass of
19123         gimple_opt_pass along with...
19124         (pass_data_check_data_deps): ...new pass_data instance and...
19125         (make_pass_check_data_deps): ...new function.
19126         (pass_iv_canon): Convert from a global struct to a subclass of
19127         gimple_opt_pass along with...
19128         (pass_data_iv_canon): ...new pass_data instance and...
19129         (make_pass_iv_canon): ...new function.
19130         (pass_scev_cprop): Convert from a global struct to a subclass of
19131         gimple_opt_pass along with...
19132         (pass_data_scev_cprop): ...new pass_data instance and...
19133         (make_pass_scev_cprop): ...new function.
19134         (pass_record_bounds): Convert from a global struct to a subclass of
19135         gimple_opt_pass along with...
19136         (pass_data_record_bounds): ...new pass_data instance and...
19137         (make_pass_record_bounds): ...new function.
19138         (pass_complete_unroll): Convert from a global struct to a subclass of
19139         gimple_opt_pass along with...
19140         (pass_data_complete_unroll): ...new pass_data instance and...
19141         (make_pass_complete_unroll): ...new function.
19142         (pass_complete_unrolli): Convert from a global struct to a subclass of
19143         gimple_opt_pass along with...
19144         (pass_data_complete_unrolli): ...new pass_data instance and...
19145         (make_pass_complete_unrolli): ...new function.
19146         (pass_parallelize_loops): Convert from a global struct to a subclass
19147         of gimple_opt_pass along with...
19148         (pass_data_parallelize_loops): ...new pass_data instance and...
19149         (make_pass_parallelize_loops): ...new function.
19150         (pass_loop_prefetch): Convert from a global struct to a subclass of
19151         gimple_opt_pass along with...
19152         (pass_data_loop_prefetch): ...new pass_data instance and...
19153         (make_pass_loop_prefetch): ...new function.
19154         (pass_iv_optimize): Convert from a global struct to a subclass of
19155         gimple_opt_pass along with...
19156         (pass_data_iv_optimize): ...new pass_data instance and...
19157         (make_pass_iv_optimize): ...new function.
19158         (pass_tree_loop_done): Convert from a global struct to a subclass of
19159         gimple_opt_pass along with...
19160         (pass_data_tree_loop_done): ...new pass_data instance and...
19161         (make_pass_tree_loop_done): ...new function.
19162         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
19163         struct to a subclass of gimple_opt_pass along with...
19164         (pass_data_cse_reciprocals): ...new pass_data instance and...
19165         (make_pass_cse_reciprocals): ...new function.
19166         (pass_cse_sincos): Convert from a global struct to a subclass of
19167         gimple_opt_pass along with...
19168         (pass_data_cse_sincos): ...new pass_data instance and...
19169         (make_pass_cse_sincos): ...new function.
19170         (pass_optimize_bswap): Convert from a global struct to a subclass of
19171         gimple_opt_pass along with...
19172         (pass_data_optimize_bswap): ...new pass_data instance and...
19173         (make_pass_optimize_bswap): ...new function.
19174         (pass_optimize_widening_mul): Convert from a global struct to a
19175         subclass of gimple_opt_pass along with...
19176         (pass_data_optimize_widening_mul): ...new pass_data instance and...
19177         (make_pass_optimize_widening_mul): ...new function.
19178         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
19179         subclass of gimple_opt_pass along with...
19180         (pass_data_phiopt): ...new pass_data instance and...
19181         (make_pass_phiopt): ...new function.
19182         (pass_cselim): Convert from a global struct to a subclass of
19183         gimple_opt_pass along with...
19184         (pass_data_cselim): ...new pass_data instance and...
19185         (make_pass_cselim): ...new function.
19186         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
19187         subclass of gimple_opt_pass along with...
19188         (pass_data_phiprop): ...new pass_data instance and...
19189         (make_pass_phiprop): ...new function.
19190         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
19191         subclass of gimple_opt_pass along with...
19192         (pass_data_pre): ...new pass_data instance and...
19193         (make_pass_pre): ...new function.
19194         (pass_fre): Convert from a global struct to a subclass of
19195         gimple_opt_pass along with...
19196         (pass_data_fre): ...new pass_data instance and...
19197         (make_pass_fre): ...new function.
19198         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
19199         subclass of gimple_opt_pass along with...
19200         (pass_data_reassoc): ...new pass_data instance and...
19201         (make_pass_reassoc): ...new function.
19202         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
19203         subclass of gimple_opt_pass along with...
19204         (pass_data_sink_code): ...new pass_data instance and...
19205         (make_pass_sink_code): ...new function.
19206         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
19207         subclass of gimple_opt_pass along with...
19208         (pass_data_strlen): ...new pass_data instance and...
19209         (make_pass_strlen): ...new function.
19210         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
19211         struct to a subclass of gimple_opt_pass along with...
19212         (pass_data_build_alias): ...new pass_data instance and...
19213         (make_pass_build_alias): ...new function.
19214         (pass_build_ealias): Convert from a global struct to a subclass of
19215         gimple_opt_pass along with...
19216         (pass_data_build_ealias): ...new pass_data instance and...
19217         (make_pass_build_ealias): ...new function.
19218         (pass_ipa_pta): Convert from a global struct to a subclass of
19219         simple_ipa_opt_pass along with...
19220         (pass_data_ipa_pta): ...new pass_data instance and...
19221         (make_pass_ipa_pta): ...new function.
19222         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
19223         subclass of gimple_opt_pass along with...
19224         (pass_data_uncprop): ...new pass_data instance and...
19225         (make_pass_uncprop): ...new function.
19226         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
19227         global struct to a subclass of gimple_opt_pass along with...
19228         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
19229         (make_pass_late_warn_uninitialized): ...new function.
19230         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
19231         to a subclass of gimple_opt_pass along with...
19232         (pass_data_init_datastructures): ...new pass_data instance and...
19233         (make_pass_init_datastructures): ...new function.
19234         (pass_early_warn_uninitialized): Convert from a global struct to a
19235         subclass of gimple_opt_pass along with...
19236         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
19237         (make_pass_early_warn_uninitialized): ...new function.
19238         (pass_update_address_taken): Convert from a global struct to a
19239         subclass of gimple_opt_pass along with...
19240         (pass_data_update_address_taken): ...new pass_data instance and...
19241         (make_pass_update_address_taken): ...new function.
19242         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
19243         struct to a subclass of gimple_opt_pass along with...
19244         (pass_data_release_ssa_names): ...new pass_data instance and...
19245         (make_pass_release_ssa_names): ...new function.
19246         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
19247         subclass of gimple_opt_pass along with...
19248         (pass_data_stdarg): ...new pass_data instance and...
19249         (make_pass_stdarg): ...new function.
19250         * tree-switch-conversion.c (pass_convert_switch): Convert from a
19251         global struct to a subclass of gimple_opt_pass along with...
19252         (pass_data_convert_switch): ...new pass_data instance and...
19253         (make_pass_convert_switch): ...new function.
19254         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
19255         to a subclass of gimple_opt_pass along with...
19256         (pass_data_tail_recursion): ...new pass_data instance and...
19257         (make_pass_tail_recursion): ...new function.
19258         (pass_tail_calls): Convert from a global struct to a subclass of
19259         gimple_opt_pass along with...
19260         (pass_data_tail_calls): ...new pass_data instance and...
19261         (make_pass_tail_calls): ...new function.
19262         * tree-vect-generic.c (pass_lower_vector): Convert from a global
19263         struct to a subclass of gimple_opt_pass along with...
19264         (pass_data_lower_vector): ...new pass_data instance and...
19265         (make_pass_lower_vector): ...new function.
19266         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
19267         gimple_opt_pass along with...
19268         (pass_data_lower_vector_ssa): ...new pass_data instance and...
19269         (make_pass_lower_vector_ssa): ...new function.
19270         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
19271         to a subclass of gimple_opt_pass along with...
19272         (pass_data_slp_vectorize): ...new pass_data instance and...
19273         (make_pass_slp_vectorize): ...new function.
19274         (pass_ipa_increase_alignment): Convert from a global struct to a
19275         subclass of simple_ipa_opt_pass along with...
19276         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
19277         (make_pass_ipa_increase_alignment): ...new function.
19278         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
19279         gimple_opt_pass along with...
19280         (pass_data_vrp): ...new pass_data instance and...
19281         (make_pass_vrp): ...new function.
19282         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
19283         subclass of simple_ipa_opt_pass along with...
19284         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
19285         (make_pass_ipa_free_lang_data): ...new function.
19286         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
19287         gimple_opt_pass along with...
19288         (pass_data_tsan): ...new pass_data instance and...
19289         (make_pass_tsan): ...new function.
19290         (pass_tsan_O0): Convert from a global struct to a subclass of
19291         gimple_opt_pass along with...
19292         (pass_data_tsan_O0): ...new pass_data instance and...
19293         (make_pass_tsan_O0): ...new function.
19294         * var-tracking.c (pass_variable_tracking): Convert from a global
19295         struct to a subclass of rtl_opt_pass along with...
19296         (pass_data_variable_tracking): ...new pass_data instance and...
19297         (make_pass_variable_tracking): ...new function.
19298         * web.c (pass_web): Convert from a global struct to a subclass of
19299         rtl_opt_pass along with...
19300         (pass_data_web): ...new pass_data instance and...
19301         (make_pass_web): ...new function.
19302         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
19303         declaration with that of...
19304         (make_pass_mode_switch_use): ...new function.
19305         (pass_resolve_sw_modes): Replace declaration with that of...
19306         (make_pass_resolve_sw_modes): ...new function.
19307         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
19308         from a global struct to a subclass of rtl_opt_pass along with...
19309         (pass_data_mode_switch_use): ...new pass_data instance and...
19310         (make_pass_mode_switch_use): ...new function.
19311         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
19312         from a global struct to a subclass of rtl_opt_pass along with...
19313         (pass_data_resolve_sw_modes): ...new pass_data instance and...
19314         (make_pass_resolve_sw_modes): ...new function.
19315         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
19316         struct to a subclass of rtl_opt_pass along with...
19317         (pass_data_insert_vzeroupper): ...new pass_data instance and...
19318         (make_pass_insert_vzeroupper): ...new function.
19319         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
19320         global struct to a subclass of rtl_opt_pass along with...
19321         (pass_data_work_around_errata): ...new pass_data instance and...
19322         (make_pass_work_around_errata): ...new function.
19323         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
19324         struct to a subclass of rtl_opt_pass along with...
19325         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
19326         (make_pass_mips_machine_reorg2): ...new function.
19328 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19330         * passes.c (pass_manager::operator new): New.
19332 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19334         Handwritten part of conversion of passes to C++ classes.
19336         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
19337         (toplev.o): Add dep on PASS_MANAGER_H.
19338         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
19339         of early local pases to reflect this moving from a global to a
19340         member of gcc::pass_manager.
19341         (cgraph_add_new_function): Likewise.
19342         * lto-cgraph.c (lto_output_node): Update for conversion of
19343         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
19344         * passes.c (opt_pass::clone): New.
19345         (opt_pass::gate): New.
19346         (opt_pass::execute): New.
19347         (opt_pass::opt_pass): New.
19348         (pass_manager::execute_early_local_passes): New.
19349         (pass_manager::execute_pass_mode_switching): new.
19350         (finish_optimization_passes): Convert to...
19351         (pass_manager::finish_optimization_passes): ...this.
19352         (finish_optimization_passes): Update for conversion of passes to
19353         C++ classes.
19354         (register_dump_files_1): Use has_gate since we cannot portably
19355         check a vtable entry against NULL.
19356         (dump_one_pass): Likewise.
19357         (ipa_write_summaries_2): Likewise.
19358         (ipa_write_optimization_summaries_1): Likewise.
19359         (ipa_read_summaries_1): Likewise.
19360         (ipa_read_optimization_summaries_1): Likewise.
19361         (execute_ipa_stmt_fixups): Likewise.
19362         (pass_manager::pass_manager): Rewrite pass-creation, invoking
19363         pass-creation functions rather than wiring up globals, and
19364         storing the results in fields of pass_manager generated using
19365         pass-instances.def.
19366         (pass_manager::dump_profile_report): Update for conversion of
19367         passes to C++ classes.
19368         (pass_manager::execute_ipa_summary_passes): Likewise.
19369         (execute_one_ipa_transform_pass): Likewise.
19370         (execute_one_pass): Use has_gate and has_execute since we cannot
19371         portably check a vtable entry against NULL.
19372         * pass_manager.h (pass_manager::finish_optimization_passes): New.
19373         (pass_manager): Use pass-instances.def to add fields for the
19374         various pass instances.
19375         * toplev.c (finalize): Update for move of
19376         finish_optimization_passes to a method of gcc::pass_manager.
19377         * toplev.h (finish_optimization_passes): Move to method of class
19378         pass_manager.
19379         * tree-pass.h (struct pass_data): New.
19380         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
19381         (opt_pass::gate): Convert to virtual function.
19382         (opt_pass::~opt_pass): New.
19383         (opt_pass::clone): New.
19384         (opt_pass::execute): Convert to virtual function.
19385         (opt_pass::opt_pass): New.
19386         (opt_pass::ctxt_): new.
19387         (gimple_opt_pass): Convert to subclass of opt_pass.
19388         (gimple_opt_pass::gimple_opt_pass): New.
19389         (rtl_opt_pass): Convert to subclass of opt_pass.
19390         (rtl_opt_pass::rtl_opt_pass): New.
19391         (ipa_opt_pass_d): Convert to subclass of opt_pass.
19392         (ipa_opt_pass_d::ipa_opt_pass_d): New.
19393         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
19394         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
19395         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
19396         invocation of pass_mode_switching to reflect this moving from a
19397         global to a member of gcc::pass_manager.
19398         (ix86_option_override): Rework how pass_insert_vzeroupper is
19399         added to the pass_manager to reflect autogenerated changes.
19400         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
19402 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
19404         PR rtl-optimization/57708
19405         * recog.c (peep2_find_free_register): Validate all regs in a
19406         multi-reg mode.
19408 2013-08-05  Jan Hubicka  <jh@suse.cz>
19410         PR lto/57602
19411         * cgraph.c (verify_cgraph_node): Accept local flags from other
19412         partitions.
19413         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
19414         (function_and_variable_visibility): Likewise.
19415         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
19417 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19419         * graph.c (init_graph_slim_pretty_print): Remove.
19420         (print_graph_cfg): Do not call it.  Use local pretty printer.
19421         (start_graph_dump): Likewise.
19423 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19425         * gimple-pretty-print.c (buffer): Remove.
19426         (initialized): Likewise.
19427         (maybe_init_pretty_print): Likewise.
19428         (print_gimple_stmt): Do not call it.  Use non-static local
19429         pretty_printer variable.
19430         (print_gimple_expr): Likewise.
19431         (print_gimple_seq): Likewise.
19432         (gimple_dump_bb): Likewise.
19434 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19436         * asan.c (asan_pp): Remove.
19437         (asan_pp_initialized): Likewise.
19438         (asan_pp_initialize): Likewise.
19439         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
19440         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
19441         (asan_add_global): Likewise.
19443 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19445         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
19446         * diagnostic.h (diagnostic_flush_buffer): Adjust.
19447         * pretty-print.c (pp_formatted_text_data): Likewise.
19448         (pp_indent): Rename from pp_base_indent.
19449         (pp_format): Rename from pp_base_format.
19450         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
19451         (pp_format_verbatim): Rename from pp_base_format_verbatim.
19452         (pp_flush): Rename from pp_base_flush.
19453         (pp_set_line_maximum_length): Rename from
19454         pp_base_set_line_maximum_length.
19455         (pp_clear_output_area): Rename from pp_base_clear_output_area.
19456         (pp_set_prefix): Rename from pp_base_set_prefix.
19457         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
19458         (pp_emit_prefix): Rename from pp_base_emit_prefix.
19459         (pp_append_text): Rename from pp_base_append_text.
19460         (pp_formatted_text): Rename from pp_base_formatted_text.
19461         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
19462         (pp_remaining_character_count_for_line): Rename from
19463         pp_base_remaining_character_count_for_line.
19464         (pp_newline): Rename from pp_base_newline.
19465         (pp_character): Rename from pp_base_character.
19466         (pp_string): Rename from pp_base_string.
19467         (pp_maybe_space): Rename from pp_base_maybe_space.
19468         * asan.c (asan_pp_string): Adjust.
19469         (asan_emit_stack_protection): Likewise.
19470         (asan_add_global): Likewise.
19471         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
19472         * tree-mudflap.c (mf_varname_tree): Likewise.
19473         * tree-pretty-print.c (pp_tree_identifier): Rename from
19474         pp_base_tree_identifier.
19475         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
19476         Declare as function.
19478 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19480         * pretty-print.h (pp_bar_bar): New.
19481         (pp_ampersand_ampersand): Likewise.
19482         (pp_less_equal): Likewise.
19483         (pp_greater_equal): Likewise.
19484         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
19485         printer functions instead of pp_string or operators and punctuators.
19486         (dump_gimple_call): Likewise.
19487         (dump_gimple_omp_for): Likewise.
19488         (dump_gimple_transaction): Likewise.
19489         (dump_gimple_phi): Likewise.
19490         (pp_gimple_stmt_1): Likewise.
19491         * sched-vis.c (print_insn): Likewise.
19492         * tree-mudflap.c (mf_varname_tree): Likewise.
19493         * tree-pretty-print.c (dump_block_node): Likewise.
19494         (dump_generic_node): Likewise.
19496 2013-08-02  Jan Hubicka  <jh@suse.cz>
19498         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
19499         boundaries.
19500         * lto-streamer-out.c (tree_is_indexable): Results decls and
19501         parm decls are not indexable.
19502         (DFS_write_tree_body): Do not follow args and results.
19503         (hash_tree): Likewise.
19504         (output_functions): Rearrange so struct function is needed
19505         only when real body is output; be able to also ouptut abstract
19506         functions; output DECL_ARGUMENTS and DECL_RESULT.
19507         (lto_output): When not in WPA, ale store abstract functions.
19508         (write_symbol): Do not care about RESULT_DECL.
19509         (output_symbol_p): Handle correctly sbtract decls.
19510         * lto-streamer-in.c (input_function): Rearrange so struct
19511         function can be NULL at entry; allow streaming of
19512         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
19513         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
19514         sanity check during LTO.
19515         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
19516         RESULT_DECl and DECL_ARGUMENTS.
19517         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19518         Likewise.
19520 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19522         * pretty-print.h (pp_underscore): New.
19523         (pp_comma): Tidy.
19524         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
19525         printer functions instead of pp_character.
19526         (dump_binary_rhs): Likewise.
19527         (dump_ternary_rhs): Likewise.
19528         (dump_gimple_call_args): Likewise.
19529         (pp_points_to_solution): Likewise.
19530         (dump_gimple_call): Likewise.
19531         (dump_gimple_switch): Likewise.
19532         (dump_gimple_cond): Likewise.
19533         (dump_gimple_bind): Likewise.
19534         (dump_gimple_try): Likewise.
19535         (dump_gimple_omp_for): Likewise.
19536         (dump_gimple_omp_continue): Likewise.
19537         (dump_gimple_omp_single): Likewise.
19538         (dump_gimple_omp_sections): Likewise.
19539         (dump_gimple_omp_block): Likewise.
19540         (dump_gimple_omp_critical): Likewise.
19541         (dump_gimple_transaction): Likewise.
19542         (dump_gimple_asm): Likewise.
19543         (dump_gimple_phi): Likewise.
19544         (dump_gimple_omp_parallel): Likewise.
19545         (dump_gimple_omp_task): Likewise.
19546         (dump_gimple_omp_atomic_load): Likewise.
19547         (dump_gimple_omp_atomic_store): Likewise.
19548         (dump_gimple_mem_ops): Likewise.
19549         (pp_gimple_stmt_1): Likewise.
19550         (pp_cfg_jump): Likewise.
19551         (dump_implicit_edges): Likewise.
19552         (gimple_dump_bb_for_graph): Likewise.
19553         * graph.c (draw_cfg_node): Likewise.
19554         * langhooks.c (lhd_print_error_function): Likewise.
19555         * sched-vis.c (print_exp): Likewise.
19556         (print_value): Likewise.
19557         (print_pattern): Likewise.
19558         (print_insn): Likewise.
19559         (rtl_dump_bb_for_graph): Likewise.
19560         * tree-pretty-print.c (dump_function_declaration): Likewise.
19561         (dump_array_domain): Likewise.
19562         (dump_omp_clause): Likewise.
19563         (dump_location): Likewise.
19564         (dump_generic_node): Likewise.
19565         (print_struct_decl): Likewise.
19566         * diagnostic.c (diagnostic_show_locus): Use pp_space.
19568 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19570         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
19571         candidate table when replacing a candidate statement.
19572         (replace_rhs_if_not_dup): Likewise.
19573         (replace_one_candidate): Likewise.
19575 2013-08-02  Jan Hubicka  <jh@suse.cz>
19576             Martin Liska  <marxin.liska@gmail.com>
19578         * cgraphunit.c (add_new_function): Fix logic when adding from
19579         late IPA pass.
19580         (assemble_thunk): Rename to ...
19581         (expand_thunk); .. this one; export; get it working with
19582         general functions; make produced gimple valid.
19583         * cgraph.h (expand_thunk): Declare.
19585 2013-08-02  Jan Hubicka  <jh@suse.cz>
19587         * ipa-cp.c (gather_context_independent_values): Use
19588         ipa_get_param_move_cost.
19589         (get_replacement_map): Remove PARAM; move parameter folding
19590         into tree-inline.c
19591         (create_specialized_node): Update.
19592         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
19593         assert that we have gimple body; update move_cost.
19594         (count_formal_params): Assert that we have gimple body.
19595         (ipa_dump_param): New function.
19596         (ipa_alloc_node_params): Break out from ...
19597         (ipa_initialize_node_params): ... here.
19598         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
19599         (ipa_write_node_info): Stream move costs.
19600         (ipa_read_node_info): Read move costs.
19601         (ipa_update_after_lto_read): Do not recompute node params.
19602         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
19603         (ipa_get_param): Check we are not in WPA.
19604         (ipa_get_param_move_cost): New.
19605         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
19606         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
19607         parm numbers to be present.
19609 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
19611         PR rtl-optimization/58048
19612         * lra-constraints.c (process_alt_operands): Don't check asm
19613         operand on register.
19615 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
19617         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
19618         the implied StoreLoad barrier for atomic operations if before.
19620 2013-08-02  Jan Hubicka  <jh@suse.cz>
19621             Martin Liska  <marxin.liska@gmail.com>
19623         * cgraph.c (cgraph_function_body_availability): Do not check
19624         cgraph flags.
19625         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
19626         symtab_node_availability): Declare.
19627         * ipa.c (can_replace_by_local_alias): New.
19628         (function_and_variable_visibility): Use it.
19629         * symtab.c (symtab_for_node_and_aliases,
19630         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
19632 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
19634         PR rtl-optimization/57963
19635         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
19636         (lra_constraints): Use them.
19638 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
19640         * config/arm/types.md (define_attr "type"): Add "load_acq"
19641         and "store_rel".
19642         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
19643         changes.
19644         (cortex_a53_store1): Likewise.
19646 2013-08-01  Jan Hubicka  <jh@suse.cz>
19648         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
19649         partitions are not needed.
19651 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
19653         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
19654         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
19655         MAYBE_NON_Q_CLASS_P where appropriate.
19657 2013-08-01  Jan Hubicka  <jh@suse.cz>
19659         * cgraph.h (release_function_body): Declare.
19660         * tree.c (free_lang_data_in_decl): Free, parameters and return values
19661         of unused delcarations.
19663 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19665         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
19666         RTL form when subtracting a constant.
19668 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19670         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
19671         Generate canonical plus rtx with negated immediate instead of minus
19672         where appropriate.
19673         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
19675 2013-08-01  Jan Hubicka  <jh@suse.cz>
19677         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
19678         (cgraph_release_function_body): Likewise.
19679         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
19680         * cgraph.h (cgrpah_node): Rename abstract_and_needed
19681         to used_as_abstract_origin.
19682         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
19683         symbols used as abstract origins.
19684         * cgraphunit.c (analyze_functions): Update.
19685         * ipa.c (symtab_remove_unreachable_nodes): Recompute
19686         used_as_abstract_origin.
19687         * tree-inline.c (tree_function_versioning): Update
19688         used_as_abstract_origin; be ready for DECL_RESULT and
19689         DECL_ARGUMENTS to be NULL.
19691         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
19692         for abstract functions.
19693         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
19694         real symbols.
19696 2013-08-01  Jan Hubicka  <jh@suse.cz>
19698         * profile.c (compute_value_histograms): Fix thinko.
19700 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
19702         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
19703         aarch-common-protos.h to extra_headers.
19704         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19705         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
19706         * config/aarch64/t-aarch64 (aarch-common.o): Define.
19708 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
19710         * config/aarch64/aarch64.md (define_attr "type"): Delete.
19711         Include "../arm/types.md".  Define "type" attribute for all patterns.
19712         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
19713         attribute changes.
19715 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
19717         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
19718         to support power8 load fusion.
19719         (fusion_gpr_mem_load): Likewise.
19721         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
19723         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
19724         declarations for power8 load fusion.
19725         (emit_fusion_gpr_load): Likewise.
19727         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19728         tuning for power8, turn on fusion mode by default.  Turn on sign
19729         extending fusion mode if normal fusion mode is on, and we are at
19730         -O2 or -O3.
19731         (fusion_gpr_load_p): New function, return true if we can fuse an
19732         addis instruction with a dependent load to a GPR.
19733         (emit_fusion_gpr_load): Emit the instructions for power8 load
19734         fusion to GPRs.
19736         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
19737         (VSX load fusion peepholes): New peepholes to fuse together an
19738         addi instruction with a VSX load instruction.
19740         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
19741         peepholes to fuse an addis instruction with a load to a GPR base
19742         register.  If we are supporting sign extending fusions, convert
19743         sign extending loads to zero extending loads and add an explicit
19744         sign extension.
19746 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
19748         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
19749         aarch-common-protos.h to extra_headers.
19750         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19751         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
19752         (arm_early_store_addr_dep): Likewise.
19753         (arm_no_early_alu_shift_dep): Likewise.
19754         (arm_no_early_alu_shift_value_dep): Likewise.
19755         (arm_no_early_mul_dep): Likewise.
19756         (arm_no_early_store_addr_dep): Likewise.
19757         (arm_mac_accumulator_is_mul_result): Likewise.
19758         (arm_mac_accumulator_is_result): Likewise.
19759         * config/arm/aarch-common.c: ... here.  New file.
19760         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
19761         here to ...
19762         (arm_early_store_addr_dep): Likewise.
19763         (arm_no_early_alu_shift_dep): Likewise.
19764         (arm_no_early_alu_shift_value_dep): Likewise.
19765         (arm_no_early_mul_dep): Likewise.
19766         (arm_no_early_store_addr_dep): Likewise.
19767         (arm_mac_accumulator_is_mul_result): Likewise.
19768         (arm_mac_accumulator_is_result): Likewise.
19769         * config/arm/aarch-common-protos.h: ... here.  New file.
19770         * config/arm/t-arm (aarch-common.o): Define.
19772 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
19774         * config/arm/arm.md: Include new file "types.md".
19775         (define_attr "type"): Move from here to ...
19776         (define_attr "mul32"): Likewise.
19777         (define_attr "mul64"): Likewise.
19778         * config/arm/types.md: ... here.  New file.
19780 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
19782         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
19783         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
19785 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19787         * gen-pass-instances.awk: Fix offset of substr().
19789 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
19791         * Makefile.in (pass-instances.def): New.
19792         (passes.o): Replace dependency on passes.def with one on
19793         pass-instances.def
19795         * gen-pass-instances.awk: New.
19797         * passes.c (pass_manager::pass_manager): Use pass-instances.def
19798         rather than passes.def, updating local definition of NEXT_PASS
19799         macro to add an extra NUM parameter (currently unused).
19801 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
19803         * Makefile.in (PASS_MANAGER_H): New.
19804         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
19805         (passes.o): Likewise.
19806         (statistics.o): Likewise.
19807         (cgraphunit.o): Likewise.
19808         (context.o): Depend on PASS_MANAGER_H.
19810         * pass_manager.h: New.
19812         * cgraphunit.c (cgraph_add_new_function): Update for moves
19813         of globals to fields of pass_manager.
19814         (analyze_function): Likewise.
19815         (expand_function): Likewise.
19816         (ipa_passes): Likewise.
19817         (compile): Likewise.
19819         * context.c (context::context): New.
19820         * context.h  (context::context): New.
19821         (context::get_passes): New.
19822         (context::passes_): New.
19824         * lto-cgraph.c (input_node): Update for moves of globals to
19825         fields of pass_manager.
19827         * passes.c (all_passes): Remove, in favor of a field of the
19828         same name within the new class pass_manager.
19829         (all_small_ipa_passes): Likewise.
19830         (all_lowering_passes): Likewise.
19831         (all_regular_ipa_passes): Likewise.
19832         (all_late_ipa_passes): Likewise.
19833         (all_lto_gen_passes): Likewise.
19834         (passes_by_id): Likewise.
19835         (passes_by_id_size): Likewise.
19836         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19837         the new class pass_manager.
19838         (set_pass_for_id): Convert to...
19839         (pass_manager::set_pass_for_id): ...method.
19840         (get_pass_for_id): Convert to...
19841         (pass_manager::get_pass_for_id): ...method.
19842         (register_one_dump_file): Move body of implementation into...
19843         (pass_manager::register_one_dump_file): ...here.
19844         (register_dump_files_1): Convert to...
19845         (pass_manager::register_dump_files_1): ...method.
19846         (register_dump_files): Convert to...
19847         (pass_manager::register_dump_files): ...method.
19848         (create_pass_tab): Update for moves of globals to fields of
19849         pass_manager.
19850         (dump_passes): Move body of implementation into...
19851         (pass_manager::dump_passes): ...here.
19852         (register_pass): Move body of implementation into...
19853         (pass_manager::register_pass): ...here.
19854         (init_optimization_passes): Convert into...
19855         (pass_manager::pass_manager): ...constructor for new
19856         pass_manager class, and initialize the pass_lists array.
19857         (check_profile_consistency): Update for moves of globals to
19858         fields of pass_manager.
19859         (dump_profile_report): Move body of implementation into...
19860         (pass_manager::dump_profile_report): ...here.
19861         (ipa_write_summaries_1): Update for moves of pass lists from
19862         being globals to fields of pass_manager.
19863         (ipa_write_optimization_summaries): Likewise.
19864         (ipa_read_summaries):  Likewise.
19865         (ipa_read_optimization_summaries): Likewise.
19866         (execute_all_ipa_stmt_fixups): Likewise.
19868         * statistics.c (statistics_fini): Update for moves of globals to
19869         fields of pass_manager.
19871         * toplev.c (general_init): Replace call to
19872         init_optimization_passes with construction of the pass_manager
19873         instance.
19875         * tree-pass.h (all_passes): Remove, in favor of a field of the
19876         same name within the new class pass_manager.
19877         (all_small_ipa_passes): Likewise.
19878         (all_lowering_passes): Likewise.
19879         (all_regular_ipa_passes): Likewise.
19880         (all_lto_gen_passes): Likewise.
19881         (all_late_ipa_passes): Likewise.
19882         (passes_by_id): Likewise.
19883         (passes_by_id_size): Likewise.
19884         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19885         the new class pass_manager.
19886         (get_pass_for_id): Remove.
19888 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
19890         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
19891         configs.
19893 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
19895         * arm.md (mulhi3): New expand pattern.
19897 2013-07-30  Jan Hubicka  <jh@suse.cz>
19898             Martin Liska  <marxin.liska@gmail.com>
19900         * profile.c (compute_value_histograms): Do not ICE when
19901         there is mismatch only on some counters.
19903 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19905         PR rtl-optimization/57637
19906         * function.c (move_insn_for_shrink_wrap): Also check the
19907         GEN set of the LIVE problem for the liveness analysis
19908         if it exists, otherwise give up.
19910 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19912         PR tree-optimization/57993
19913         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
19914         replaced statement in the candidate table.
19915         (phi_add_costs): Return infinite cost when the hidden basis does
19916         not dominate all phis on which the candidate is dependent.
19917         (replace_one_candidate): Record replaced statement in the
19918         candidate table.
19920 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
19922         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
19923         (ashlv2si3): New expander.
19924         (*ashlv2si3_i): New define_insn_and_split.
19925         * predicates.md (float_operation): Allow patterns with three
19926         basic sub-patterns.
19928         PR rtl-optimization/58021
19929         * mode-switching.c (create_pre_exit): Always split off preceding
19930         insns if we are not at the basic block head.
19932 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
19934         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
19935         (UCLIBC_DYNAMIC_LINKER): New macro.
19936         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
19937         `-mnan=2008'.
19938         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
19939         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
19940         `-mnan=2008'.
19941         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
19942         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
19943         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
19944         for SF and DF modes.  Use ieee_quad_format for TF mode.
19945         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
19946         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
19947         (mips_option_override): Handle `-mnan=legacy'.
19948         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
19949         `-mabs=2008' and `-mnan=2008'.
19950         (OPTION_DEFAULT_SPECS): Add "nan" default.
19951         (ASM_SPEC): Handle `-mnan='.
19952         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
19953         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
19954         comment accordingly.
19955         (neg<mode>2): Likewise.
19956         * config/mips/mips.opt (mabs, mnan): New options.
19957         * doc/install.texi (Configuration): Document `--with-nan=' option.
19958         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
19959         `-mnan=' options.
19960         (MIPS Options): Document them.
19961         * config.gcc <mips*-*-*>: Handle `--with-nan='.
19962         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
19963         * configure: Regenerate.
19964         * config.in: Regenerate.
19966 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
19968         * config/i386/i386.md (float post-reload splitters): Do not check
19969         for subregs of SSE registers.
19971 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
19972             H.J. Lu  <hongjiu.lu@intel.com>
19974         PR target/57954
19975         PR target/57988
19976         * config/i386/i386.md (post-reload splitter
19977         to avoid partial SSE reg dependency stalls): New pattern.
19979 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19981         * config/s390/s390.md ("movcc"): Swap load and store instructions.
19983 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
19985         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
19986         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
19988 2013-07-26  Cary Coutant  <ccoutant@google.com>
19990         * dwarf2out.c (die_checksum_ordered): Don't include template
19991         instantiations in signature.
19992         (is_template_parameter): New function.
19993         (is_template_instantiation): New function.
19994         (generate_skeleton_bottom_up): Don't include template instantiations
19995         in type unit DIE.
19996         (generate_skeleton): Likewise.
19997         (break_out_comdat_types): Move recursive call to break out nested
19998         types earlier.
19999         (prune_unused_types_mark_generic_parms_dies): Call
20000         is_template_parameter.
20002 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
20004         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
20005         uses vector registers.
20006         * config/aarch64/iterators.md: Add attributes rtn and vas.
20008 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20009             Richard Earnshaw  <richard.earnshaw@arm.com>
20011         * combine.c (simplify_comparison): Re-canonicalize operands
20012         where appropriate.
20013         * config/arm/arm.md (movcond_addsi): New splitter.
20015 2013-07-25  Sterling Augustine  <saugustine@google.com>
20017         * dwarf2out.c (size_of_pubnames): Move code to...
20018         (include_pubname_in_output): ...here.  New.
20019         (want_pubnames): Rearrange.
20020         (output_pubnames): Call include_pubname_in_output.  Move assertion.
20022 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
20024         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
20026 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
20028         PR target/38836
20029         * doc/extend.texi: Remove obsolete builtins. Fix
20030         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
20032 2013-07-25  Jan Hubicka  <jh@suse.cz>
20034         * cgraph.c (release_function_body): Break out from ...
20035         (cgraph_release_function_body): ... this one; also release DECL_RESULT
20036         and DECL_ARGUMENTS.
20037         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
20038         old_tree in the map.
20039         (create_specialized_node): Update.
20040         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
20041         into index.
20042         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
20043         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
20044         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
20045         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
20046         DECL_RESULT.
20048 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20050         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
20051         addsi3_carryin_alt2_<optab>): Correct output template.
20053 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20055         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
20056         Adjust for arm_restrict_it.
20057         Remove trailing whitespace.
20059 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
20061         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
20062         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
20064         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
20066 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
20068         PR rtl-optimization/57960
20069         * lra-constraints.c (process_alt_operands): Use the right mode
20070         when checking strict_low.
20072 2013-07-25  Jan Hubicka  <jh@suse.cz>
20074         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
20075         * cgraph.c (cgraph_remove_node): Do not release function body
20076         when in cgraph streaming.
20077         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
20078         in other partitions are not considered reachable; fix handling of
20079         clones.
20081 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20083         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
20085 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20087         PR target/19599
20088         PR target/57731
20089         PR target/57837
20090         * config/arm/arm.md ("*sibcall_insn): Replace use of
20091         Ss with US. Adjust output for v5 and v4t.
20092         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
20094         * config/arm/constraints.md ("Ss"): Rename to US.
20096 2013-07-25  Terry Guo  <terry.guo@arm.com>
20098         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
20099         shift_add/shift_sub0/shift_sub1 RTXs.
20101 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
20102             Anton Blanchard  <anton@au1.ibm.com>
20104         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
20105         (altivec_vpks<VI_char>ss): Likewise.
20106         (altivec_vpks<VI_char>us): Likewise.
20107         (altivec_vpku<VI_char>us): Likewise.
20108         (altivec_vpku<VI_char>um): Likewise.
20110 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
20112         Introduce context class.
20114         * Makefile.in (CONTEXT_H): New.
20115         (OBJS): Add context.o.
20116         (toplev.o): Add CONTEXT_H to dependencies.
20117         (context.o): New.
20119         * toplev.c (general_init): Create the singleton gcc::context instance.
20121         * context.c: New.
20123         * context.h: New.
20125 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
20127         PR rtl-optimization/57968
20128         * mode-switching.c (create_pre_exit): Allow instructions that
20129         don't set a return register to need a non-exit mode.
20131 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20132             Anton Blanchard  <anton@au1.ibm.com>
20134         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
20135         operands to vperm for little endian.
20136         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
20137         of lvsl to create the control mask for a vperm for little endian.
20139 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20140             Anton Blanchard  <anton@au1.ibm.com>
20142         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
20143         two operands for little-endian.
20145 2013-07-23  Steve Ellcey  <sellcey@mips.com>
20147         * config/mips/mips.c (mips_case_values_threshold): New.
20148         (TARGET_CASE_VALUES_THRESHOLD): Define.
20150 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20151             Anton Blanchard  <anton@au1.ibm.com>
20153         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
20154         selection of field for vector splat in little endian mode.
20156 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
20158         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
20159         expanders to rs6000.md.
20160         (ior<mode>3): Likewise.
20161         (and<mode>3): Likewise.
20162         (one_cmpl<mode>2): Likewise.
20163         (nor<mode>3): Likewise.
20164         (andc<mode>3): Likewise.
20165         (eqv<mode>3): Likewise.
20166         (nand<mode>3): Likewise.
20167         (orc<mode>3): Likewise.
20169         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
20170         declaration.
20172         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
20173         to split multi-word logical operations.
20174         (rs6000_split_logical_di): Likewise.
20175         (rs6000_split_logical): Likewise.
20177         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
20178         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
20179         and allow TImode operations in 32-bit.
20180         (vsx_and<mode>3_64bit): Likewise.
20181         (vsx_ior<mode>3_32bit): Likewise.
20182         (vsx_ior<mode>3_64bit): Likewise.
20183         (vsx_xor<mode>3_32bit): Likewise.
20184         (vsx_xor<mode>3_64bit): Likewise.
20185         (vsx_one_cmpl<mode>2_32bit): Likewise.
20186         (vsx_one_cmpl<mode>2_64bit): Likewise.
20187         (vsx_nor<mode>3_32bit): Likewise.
20188         (vsx_nor<mode>3_64bit): Likewise.
20189         (vsx_andc<mode>3_32bit): Likewise.
20190         (vsx_andc<mode>3_64bit): Likewise.
20191         (vsx_eqv<mode>3_32bit): Likewise.
20192         (vsx_eqv<mode>3_64bit): Likewise.
20193         (vsx_nand<mode>3_32bit): Likewise.
20194         (vsx_nand<mode>3_64bit): Likewise.
20195         (vsx_orc<mode>3_32bit): Likewise.
20196         (vsx_orc<mode>3_64bit): Likewise.
20198         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
20199         logical types in GPRs.
20201         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
20202         logical insns to rs6000.md, and allow TImode operations in
20203         32-bit.
20204         (altivec_ior<mode>3): Likewise.
20205         (altivec_xor<mode>3): Likewise.
20206         (altivec_one_cmpl<mode>2): Likewise.
20207         (altivec_nor<mode>3): Likewise.
20208         (altivec_andc<mode>3): Likewise.
20210         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
20211         attributes for moving the 128-bit logical operations into
20212         rs6000.md.
20213         (BOOL_REGS_OUTPUT): Likewise.
20214         (BOOL_REGS_OP1): Likewise.
20215         (BOOL_REGS_OP2): Likewise.
20216         (BOOL_REGS_UNARY): Likewise.
20217         (BOOL_REGS_AND_CR0): Likewise.
20218         (one_cmpl<mode>2): Add support for DI logical operations on
20219         32-bit, splitting the operations to 32-bit.
20220         (anddi3): Likewise.
20221         (iordi3): Likewise.
20222         (xordi3): Likewise.
20223         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
20224         changes to combine the 32/64-bit code, allow logical operations on
20225         TI mode in 32-bit, and to use similar match_operator patterns like
20226         scalar mode uses.  Combine the Altivec and VSX code for logical
20227         operations, and move it here.
20228         (ior<mode>3, 128-bit types): Likewise.
20229         (xor<mode>3, 128-bit types): Likewise.
20230         (one_cmpl<mode>3, 128-bit types): Likewise.
20231         (nor<mode>3, 128-bit types): Likewise.
20232         (andc<mode>3, 128-bit types): Likewise.
20233         (eqv<mode>3, 128-bit types): Likewise.
20234         (nand<mode>3, 128-bit types): Likewise.
20235         (orc<mode>3, 128-bit types): Likewise.
20236         (and<mode>3_internal): Likewise.
20237         (bool<mode>3_internal): Likewise.
20238         (boolc<mode>3_internal1): Likewise.
20239         (boolc<mode>3_internal2): Likewise.
20240         (boolcc<mode>3_internal1): Likewise.
20241         (boolcc<mode>3_internal2): Likewise.
20242         (eqv<mode>3_internal1): Likewise.
20243         (eqv<mode>3_internal2): Likewise.
20244         (one_cmpl1<mode>3_internal): Likewise.
20246 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
20248         * config/microblaze/microblaze.c (microblaze_expand_prologue):
20249         Rename flag_stack_usage to flag_stack_usage_info.
20251 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
20253         * config/microblaze/sync.md: New file.
20254         * config/microblaze/microblaze.md: Include sync.md
20255         * config/microblaze/microblaze.c: Add print_operand 'y'.
20256         * config/microblaze/constraints.md: Add memory_contraint
20257         'Q' which is a single register.
20259 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
20261         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
20263 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
20265         * reload.c (find_reloads): Exit loop once we find this operand
20266         cannot be reloaded somehow for this alternative.
20268         * reload.c (find_reloads): Exit loop once we find a hard register.
20270         * rtlanal.c (computed_jump_p): Exit loop once we find label
20271         reference is used.
20273         * i386.c (ix86_pad_returns): Exit loop after setting replace.
20275         * cfgloopmanip.c (remove_path): Exit loop after setting
20276         irred_invalidated.
20278         * gensupport.c (subst_dup): Avoid loop if code is not
20279         MATCH_DUP nor MATCH_OP_DUP.
20281 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
20283         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
20285 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20287         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
20288         true for SP_REGNUM if mode == ptr_mode.
20289         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
20290         with value R0_REGNUM + 31.
20292 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20294         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
20295         pad pointer-typed argument downward.
20297 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20299         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
20300         and __ILP32__ when the ILP32 model is in use.
20302 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20304         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
20305         (aarch64_load_symref_appropriately): In the case of
20306         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
20307         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
20308         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
20309         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
20310         if 'mode' doesn't equal to 'ptr_mode'.
20311         (aarch64_output_mi_thunk): Add an assertion on the alignment of
20312         'vcall_offset'; change to call aarch64_emit_move differently depending
20313         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
20314         to calculate the upper bound of 'vcall_offset'.
20315         (aarch64_cannot_force_const_mem): Change to also return true if
20316         mode != ptr_mode.
20317         (aarch64_legitimize_reload_address): In the case of large
20318         displacements, add new local variable 'xmode' and an assertion
20319         based on it; change to use 'xmode' to generate the new rtx and
20320         reload.
20321         (aarch64_asm_trampoline_template): Change to generate the template
20322         differently depending on TARGET_ILP32 or not; change to use
20323         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
20324         (aarch64_trampoline_size): Removed.
20325         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
20326         and replace immediate literals with it.  Change to use 'ptr_mode'
20327         instead of 'DImode' and call convert_memory_address if the mode
20328         of 'fnaddr' doesn't equal to 'ptr_mode'.
20329         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
20330         to output symbol.
20331         (aarch64_elf_asm_destructor): Likewise.
20332         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
20333         on TARGET_ILP32 instead of aarch64_trampoline_size.
20334         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
20335         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
20336         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
20337         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
20338         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
20339         (storewb_pair<GPI:mode>_<P:mode>): ... this.
20340         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
20341         depending on the value of 'mode'.
20342         (add_losym_<mode>): New.
20343         (ldr_got_small_<mode>): New, based on ldr_got_small.
20344         (ldr_got_small): Remove.
20345         (ldr_got_small_sidi): New.
20346         * config/aarch64/iterators.md (P): New.
20347         (PTR): Change to 'ptr_mode' in the condition.
20349 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20351         * config.gcc (aarch64*-*-*): Support --with-abi.
20352         (aarch64*-*-elf): Support --with-multilib-list.
20353         (aarch64*-*-linux*): Likewise.
20354         (supported_defaults): Add abi to aarch64*-*-*.
20355         * configure.ac: Mention AArch64 for --with-multilib-list.
20356         * configure: Re-generated.
20357         * config/aarch64/biarchilp32.h: New file.
20358         * config/aarch64/biarchlp64.h: New file.
20359         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
20360         (ABI_SPEC): Ditto.
20361         (MULTILIB_DEFAULTS): Ditto.
20362         (DRIVER_SELF_SPECS): Ditto.
20363         (ASM_SPEC): Update to also substitute -mabi.
20364         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
20365         file whose name depends on -mabi= and -mbig-endian.
20366         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
20367         TARGET_ILP32.
20368         (POINTER_SIZE): New define.
20369         (POINTERS_EXTEND_UNSIGNED): Ditto.
20370         (enum aarch64_abi_type): New enumeration tag.
20371         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
20372         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
20373         (TARGET_ILP32): New define.
20374         * config/aarch64/aarch64.opt (mabi): New.
20375         (aarch64_abi): New.
20376         (ilp32, lp64): New values for -mabi.
20377         * config/aarch64/t-aarch64 (comma): New define.
20378         (MULTILIB_OPTIONS): Ditto.
20379         (MULTILIB_DIRNAMES): Ditto.
20380         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
20381         * doc/invoke.texi: Document -mabi for AArch64.
20383 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
20385         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
20387 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20388             Anton Blanchard  <anton@au1.ibm.com>
20390         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
20391         endianness when selecting field to splat.
20393 2013-07-22  Eric Christopher  <echristo@gmail.com>
20395         * dwarf2out.c (die_odr_checksum): New function to use
20396         CHECKSUM_ macros and ULEB128 for DIE tag.
20397         (generate_type_signature): Use.
20399 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
20401         * config.gcc (sparc*-*-*): Accept leon3 processor.
20402         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
20403         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
20404         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
20405         * config/sparc/sparc.opt (enum processor_type): Add leon3.
20406         (mfix-ut699): Adjust comment.
20407         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
20408         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
20409         (CPP_CPU_SPEC): Likewise.
20410         (ASM_CPU_SPEC): Likewise.
20411         * config/sparc/sparc.c (leon3_cost): New constant.
20412         (sparc_option_override): Add leon3 support.
20413         (mem_ref): New function.
20414         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
20415         (sparc_do_work_around_errata): Look into the instruction in the delay
20416         slot and adjust accordingly.  Add fix for the data cache nullify issues
20417         of the UT699.  Change insertion position for the NOP.
20418         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
20419         (leon3_load): New reservation.
20420         (leon_store): Bump latency to 2.
20421         (grfpu): New automaton.
20422         (grfpu_alu): New unit.
20423         (grfpu_ds): Likewise.
20424         (leon_fp_alu): Adjust.
20425         (leon_fp_mult): Delete.
20426         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
20427         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
20428         * config/sparc/sparc.md (cpu): Add leon3.
20429         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
20430         (swapsi): Likewise.
20431         (atomic_test_and_set): Likewise.
20432         (ldstub): Likewise.
20434 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
20436         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
20437         default for R5900 targets.
20438         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
20439         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
20440         * config/mips/mips.c (mips_option_override): Report an error for
20441         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
20442         for -march=r5900 -mhard-float.
20444 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
20446         * df-problems.c (can_move_insns_across): Exit loop once we
20447         find a non-fixed, non-global register.
20449         * ipa-pure-const.c (propagate_nothrow): Exit loop after
20450         setting can_throw.
20452         * omega.c (omega_eliminate_red): Break after setting red_found.
20453         (omega_problem_has_red_equations): Similarly after setting found.
20454         (omega_query_variable): Similarly after setting coupled.
20456 2013-07-22  Marek Polacek  <polacek@redhat.com>
20458         * gimplify.c: Don't include gimple.h twice.
20460 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20462         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
20463         instead of TARGET_THUMB1.
20464         (Pz): New constraint.
20465         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
20466         encodings.
20467         (compare_negsi_si): Likewise.
20468         (compare_addsi2_op0): Likewise.
20469         (compare_addsi2_op1): Likewise.
20470         (addsi3_carryin_<optab>): Likewise.
20471         (addsi3_carryin_alt2_<optab>): Likewise.
20472         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
20473         for arm_restrict_it.
20474         (subsi3_carryin): Likewise.
20475         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
20476         (minmax_arithsi): Disable for arm_restrict_it.
20477         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
20478         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
20479         (satsi_<SAT:code>_shift): Likewise.
20480         (arm_shiftsi3): Add alternative for 16-bit encoding.
20481         (arm32_movhf): Disable for arm_restrict_it.
20482         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
20483         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
20485 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
20487         * config/arm/arm.md (attribute "insn"): Delete.
20488         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
20489         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
20490         (not_shiftsi): Update for attribute change.
20491         (not_shiftsi_compare0): Likewise.
20492         (not_shiftsi_compare0_scratch): Likewise.
20493         (arm_one_cmplsi2): Likewise.
20494         (thumb1_one_cmplsi2): Likewise.
20495         (notsi_compare0): Likewise.
20496         (notsi_compare0_scratch): Likewise.
20497         (thumb1_movdi_insn): Likewise.
20498         (arm_movsi_insn): Likewise.
20499         (movhi_insn_arch4): Likewise.
20500         (movhi_bytes): Likewise.
20501         (arm_movqi_insn): Likewise.
20502         (thumb1_movqi_insn): Likewise.
20503         (arm32_movhf): Likewise.
20504         (thumb1_movhf): Likewise.
20505         (arm_movsf_soft_insn): Likewise.
20506         (thumb1_movsf_insn): Likewise.
20507         (thumb_movdf_insn): Likewise.
20508         (movsicc_insn): Likewise.
20509         (movsfcc_soft_insn): Likewise.
20510         (and_scc): Likewise.
20511         (cond_move): Likewise.
20512         (if_move_not): Likewise.
20513         (if_not_move): Likewise.
20514         (if_shift_move): Likewise.
20515         (if_move_shift): Likewise.
20516         (if_shift_shift): Likewise.
20517         (if_not_arith): Likewise.
20518         (if_arith_not): Likewise.
20519         (cond_move_not): Likewise.
20520         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
20521         (neon_mov<mode>): Likewise.
20522         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
20523         (thumb2_movsi_vfp): Likewise.
20524         (movsf_vfp): Likewise.
20525         (thumb2_movsf_vfp): Likewise.
20526         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20527         change.
20528         (cortexa7_older_only): Likewise.
20529         (cortexa7_younger): Likewise.
20530         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
20531         (1020alu_shift_op): Likewise.
20532         (1020alu_shift_reg_op): Likewise.
20533         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
20534         (alu_shift_op): Likewise.
20535         (alu_shift_reg_op): Likewise.
20536         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
20537         (11_alu_shift_op): Likewise.
20538         (11_alu_shift_reg_op): Likewise.
20539         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
20540         (9_alu_shift_reg_op): Likewise.
20541         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20542         change.
20543         (cortex_a15_alu_shift): Likewise.
20544         (cortex_a15_alu_shift_reg): Likewise.
20545         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
20546         (cortex_a5_alu_shift): Likewise.
20547         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
20548         change.
20549         (cortex_a53_alu_shift): Likewise.
20550         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20551         change.
20552         (cortex_a7_alu_reg): Likewise.
20553         (cortex_a7_alu_shift): Likewise.
20554         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20555         (cortex_a8_alu_shift): Likewise.
20556         (cortex_a8_alu_shift_reg): Likewise.
20557         (cortex_a8_mov): Likewise.
20558         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
20559         (cortex_a9_dp_shift): Likewise.
20560         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
20561         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
20562         (cortex_r4_mov): Likewise.
20563         (cortex_r4_alu_shift): Likewise.
20564         (cortex_r4_alu_shift_reg): Likewise.
20565         * config/arm/fa526.md (526_alu_op): Update for attribute change.
20566         (526_alu_shift_op): Likewise.
20567         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
20568         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
20569         (626te_alu_shift_op): Likewise.
20570         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
20571         (726te_alu_op): Likewise.
20572         (726te_alu_shift_op): Likewise.
20573         (726te_alu_shift_reg_op): Likewise.
20574         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
20575         (mp626_alu_shift_op): Likewise.
20576         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
20577         (pj4_alu_e1_conds): Likewise.
20578         (pj4_alu): Likewise.
20579         (pj4_alu_conds): Likewise.
20580         (pj4_shift): Likewise.
20581         (pj4_shift_conds): Likewise.
20582         (pj4_alu_shift): Likewise.
20583         (pj4_alu_shift_conds): Likewise.
20585 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20587         * config/arm/predicates.md (shiftable_operator_strict_it):
20588         New predicate.
20589         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
20590         Disable cond_exec version for arm_restrict_it.
20591         (thumb2_smaxsi3): Convert to generate cond_exec.
20592         (thumb2_sminsi3): Likewise.
20593         (thumb32_umaxsi3): Likewise.
20594         (thumb2_uminsi3): Likewise.
20595         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
20596         (thumb2_neg_abssi2): Likewise.
20597         (thumb2_mov_scc): Add alternative for 16-bit encoding.
20598         (thumb2_movsicc_insn): Adjust alternatives.
20599         (thumb2_mov_negscc): Disable for arm_restrict_it.
20600         (thumb2_mov_negscc_strict_it): New pattern.
20601         (thumb2_mov_notscc_strict_it): New pattern.
20602         (thumb2_mov_notscc): Disable for arm_restrict_it.
20603         (thumb2_ior_scc): Likewise.
20604         (thumb2_ior_scc_strict_it): New pattern.
20605         (thumb2_cond_move): Adjust for arm_restrict_it.
20606         (thumb2_cond_arith): Disable for arm_restrict_it.
20607         (thumb2_cond_arith_strict_it): New pattern.
20608         (thumb2_cond_sub): Adjust for arm_restrict_it.
20609         (thumb2_movcond): Likewise.
20610         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
20611         (thumb2_zero_extendhisi2_v6): Likewise.
20612         (thumb2_zero_extendqisi2_v6): Likewise.
20613         (orsi_notsi_si): Likewise.
20614         (orsi_not_shiftsi_si): Likewise.
20616 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
20618         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
20619         instruction sequence is 1 byte shorter.
20621 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
20623         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
20624         it is not needed after split.
20626 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
20628         PR target/51784
20629         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
20630         second label for nonlocal goto receivers. Don't output pic base labels
20631         unless we're producing PIC; mark that action unreachable().
20632         (ix86_save_reg): If the function contains a nonlocal label, save the
20633         PIC base reg.
20634         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
20635         * config/darwin.c (emitted_pic_label_num): New GTY.
20636         (update_pic_label_number_if_needed): New.
20637         (machopic_output_function_base_name): Adjust for nonlocal receiver
20638         case.
20639         (machopic_should_output_picbase_label): New.
20640         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
20641         (nonlocal_goto_receiver): New insn and split.
20643 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
20645         * config/aarch64/aarch64-builtins.c
20646         (aarch64_fold_builtin): Fold abs in all modes.
20647         * config/aarch64/aarch64-simd-builtins.def
20648         (abs): Enable for all modes.
20649         * config/aarch64/arm_neon.h
20650         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
20651         (vabs_f64): Add missing intrinsic.
20653 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
20655         * config/aarch64/arm_neon.h (vabs_s64): New function
20657 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
20659         PR target/57516
20660         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
20661         * config/avr/avr.md (adjust_len): Add `round'.
20662         * config/avr/avr-protos.h (avr_out_round): New prototype.
20663         (avr_out_plus): Add `out_label' argument.
20664         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
20665         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
20666         Handle the case where `insn' is just a pattern.
20667         (avr_out_bitop): Handle the case where `insn' is just a pattern.
20668         (avr_out_round): New function.
20669         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
20671 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
20673         * config/microblaze/microblaze.c (microblaze_expand_prologue):
20674         Add check for flag_stack_usage to handle -fstack-usage support
20676 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
20678         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
20679         interaction for new Power8 flags and VSX.
20681 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
20683         PR middle-end/57698
20684         * tree-inline.c (expand_call_inline): Emit errors during
20685         early_inlining only if optimization is not turned on.
20687 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20689         * passes.def: New.
20691         * passes.c (init_optimization_passes): Move the construction of
20692         the pass hierarchy into a new passes.def file.
20694         * Makefile.in (passes.o): Add dependency on passes.def.
20696 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20698         * passes.c (init_optimization_passes): Introduce macros for
20699         constructing the tree of passes (INSERT_PASSES_AFTER,
20700         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
20701         TERMINATE_PASS_LIST).
20703 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
20704             Wei Mi  <wmi@google.com>
20706         PR rtl-optimization/57878
20707         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
20708         top.
20709         (reload_pseudo_compare_func): Check nregs first for reload
20710         pseudos.
20712 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20714         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
20716 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
20718         * read-rtl.c (validate_const_int): Once an invalid character is
20719         seen, quit the loop.
20721         * gengtype.c (write_roots): Similarly once we find the "deletable"
20722         or "if_marked" option.
20724 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
20726         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
20727         "xtab" and "sat".  Move value "clz" from here to ...
20728         (attriubte "type"): ... here.
20729         (satsi_<SAT:code>): Delete "insn" attribute.
20730         (satsi_<SAT:code>_shift): Likewise.
20731         (arm_zero_extendqisi2addsi): Likewise.
20732         (arm_extendqisi2addsi): Likewise.
20733         (clzsi2): Update for attribute changes.
20734         (rbitsi2): Likewise.
20735         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
20736         attribute.
20737         (arm_usatsihi): Likewise.
20738         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20740 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
20742         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
20743         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
20744         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
20745         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
20746         in alphabetical order.
20747         (attribute "core_cycles"): Update for attribute changes.
20748         (arm_addsi3): Likewise.
20749         (addsi3_compare0): Likewise.
20750         (addsi3_compare0_scratch): Likewise.
20751         (addsi3_compare_op1): Likewise.
20752         (addsi3_compare_op2): Likewise.
20753         (compare_addsi2_op0): Likewise.
20754         (compare_addsi2_op1): Likewise.
20755         (addsi3_carryin_shift_<optab>): Likewise.
20756         (subsi3_carryin_shift): Likewise.
20757         (rsbsi3_carryin_shift): Likewise.
20758         (arm_subsi3_insn): Likewise.
20759         (subsi3_compare0): Likewise.
20760         (subsi3_compare): Likewise.
20761         (arm_andsi3_insn): Likewise.
20762         (thumb1_andsi3_insn): Likewise.
20763         (andsi3_compare0): Likewise.
20764         (andsi3_compare0_scratch): Likewise.
20765         (zeroextractsi_compare0_scratch
20766         (andsi_not_shiftsi_si): Likewise.
20767         (iorsi3_insn): Likewise.
20768         (iorsi3_compare0): Likewise.
20769         (iorsi3_compare0_scratch): Likewise.
20770         (arm_xorsi3): Likewise.
20771         (thumb1_xorsi3_insn): Likewise.
20772         (xorsi3_compare0): Likewise.
20773         (xorsi3_compare0_scratch): Likewise.
20774         (satsi_<SAT:code>_shift): Likewise.
20775         (rrx): Likewise.
20776         (arm_shiftsi3): Likewise.
20777         (shiftsi3_compare0): Likewise.
20778         (not_shiftsi): Likewise.
20779         (not_shiftsi_compare0): Likewise.
20780         (not_shiftsi_compare0_scratch): Likewise.
20781         (arm_one_cmplsi2): Likewise.
20782         (thumb_one_complsi2): Likewise.
20783         (notsi_compare0): Likewise.
20784         (notsi_compare0_scratch): Likewise.
20785         (thumb1_zero_extendhisi2): Likewise.
20786         (arm_zero_extendhisi2): Likewise.
20787         (arm_zero_extendhisi2_v6): Likewise.
20788         (arm_zero_extendhisi2addsi): Likewise.
20789         (thumb1_zero_extendqisi2): Likewise.
20790         (thumb1_zero_extendqisi2_v6): Likewise.
20791         (arm_zero_extendqisi2): Likewise.
20792         (arm_zero_extendqisi2_v6): Likewise.
20793         (arm_zero_extendqisi2addsi): Likewise.
20794         (thumb1_extendhisi2): Likewise.
20795         (arm_extendhisi2): Likewise.
20796         (arm_extendhisi2_v6): Likewise.
20797         (arm_extendqisi): Likewise.
20798         (arm_extendqisi_v6): Likewise.
20799         (arm_extendqisi2addsi): Likewise.
20800         (thumb1_extendqisi2): Likewise.
20801         (thumb1_movdi_insn): Likewise.
20802         (arm_movsi_insn): Likewise.
20803         (movsi_compare0): Likewise.
20804         (movhi_insn_arch4): Likewise.
20805         (movhi_bytes): Likewise.
20806         (arm_movqi_insn): Likewise.
20807         (thumb1_movqi_insn): Likewise.
20808         (arm32_movhf): Likewise.
20809         (thumb1_movhf): Likewise.
20810         (arm_movsf_soft_insn): Likewise.
20811         (thumb1_movsf_insn): Likewise.
20812         (movdf_soft_insn): Likewise.
20813         (thumb_movdf_insn): Likewise.
20814         (arm_cmpsi_insn): Likewise.
20815         (cmpsi_shiftsi): Likewise.
20816         (cmpsi_shiftsi_swp): Likewise.
20817         (arm_cmpsi_negshiftsi_si): Likewise.
20818         (movsicc_insn): Likewise.
20819         (movsfcc_soft_insn): Likewise.
20820         (arith_shiftsi): Likewise.
20821         (arith_shiftsi_compare0
20822         (arith_shiftsi_compare0_scratch
20823         (sub_shiftsi): Likewise.
20824         (sub_shiftsi_compare0
20825         (sub_shiftsi_compare0_scratch
20826         (and_scc): Likewise.
20827         (cond_move): Likewise.
20828         (if_plus_move): Likewise.
20829         (if_move_plus): Likewise.
20830         (if_move_not): Likewise.
20831         (if_not_move): Likewise.
20832         (if_shift_move): Likewise.
20833         (if_move_shift): Likewise.
20834         (if_shift_shift): Likewise.
20835         (if_not_arith): Likewise.
20836         (if_arith_not): Likewise.
20837         (cond_move_not): Likewise.
20838         (thumb1_ashlsi3): Set type attribute.
20839         (thumb1_ashrsi3): Likewise.
20840         (thumb1_lshrsi3): Likewise.
20841         (thumb1_rotrsi3): Likewise.
20842         (shiftsi3_compare0_scratch): Likewise.
20843         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
20844         (neon_mov<mode>): Likewise.
20845         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
20846         attribute changes.
20847         (thumb2_movsi_insn): Likewise.
20848         (thumb2_cmpsi_neg_shiftsi): Likewise.
20849         (thumb2_extendqisi_v6): Likewise.
20850         (thumb2_zero_extendhisi2_v6): Likewise.
20851         (thumb2_zero_extendqisi2_v6): Likewise.
20852         (thumb2_shiftsi3_short): Likewise.
20853         (thumb2_addsi3_compare0_scratch): Likewise.
20854         (orsi_not_shiftsi_si): Likewise.
20855         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
20856         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
20857         changes.
20858         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
20859         (1020alu_shift_op): Likewise.
20860         (1020alu_shift_reg_op): Likewise.
20861         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
20862         (alu_shift_op): Likewise.
20863         (alu_shift_reg_op): Likewise.
20864         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
20865         (11_alu_shift_op): Likewise.
20866         (11_alu_shift_reg_op): Likewise.
20867         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
20868         (9_alu_shift_reg_op): Likewise.
20869         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20870         changes.
20871         (cortex_a15_alu_shift): Likewise.
20872         (cortex_a15_alu_shift_reg): Likewise.
20873         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
20874         changes.
20875         (cortex_a5_alu_shift): Likewise.
20876         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
20877         changes.
20878         (cortex_a53_alu_shift): Likewise.
20879         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20880         changes.
20881         (cortex_a7_alu_reg): Likewise.
20882         (cortex_a7_alu_shift): Likewise.
20883         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
20884         changes.
20885         (cortex_a8_alu_shift): Likewise.
20886         (cortex_a8_alu_shift_reg): Likewise.
20887         (cortex_a8_mov): Likewise.
20888         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
20889         (cortex_a9_dp_shift): Likewise.
20890         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
20891         changes.
20892         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
20893         changes.
20894         (cortex_r4_mov): Likewise.
20895         (cortex_r4_alu_shift): Likewise.
20896         (cortex_r4_alu_shift_reg): Likewise.
20897         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
20898         (526_alu_shift_op): Likewise.
20899         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
20900         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
20901         (626te_alu_shift_op): Likewise.
20902         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
20903         (726te_alu_op): Likewise.
20904         (726te_alu_shift_op): Likewise.
20905         (726te_alu_shift_reg_op): Likewise.
20906         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
20907         (mp626_alu_shift_op): Likewise.
20908         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
20909         (pj4_alu_e1_conds): Likewise.
20910         (pj4_alu): Likewise.
20911         (pj4_alu_conds): Likewise.
20912         (pj4_shift): Likewise.
20913         (pj4_shift_conds): Likewise.
20914         (pj4_alu_shift): Likewise.
20915         (pj4_alu_shift_conds): Likewise.
20916         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20917         changes.
20918         (cortexa7_older_only): Likewise.
20919         (cortexa7_younger): Likewise.
20921 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20923         * ipa-pure-const.c (generate_summary): Rename to...
20924         (pure_const_generate_summary): ... this.
20926 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
20928         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
20930 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
20932         PR target/57909
20933         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
20934         usage in HI mode.
20936 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20938         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
20939         enabled without -march=zEC12.
20940         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
20941         flags to be set.
20943 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20945         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
20946         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
20947         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
20948         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
20949         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
20950         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
20951         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
20952         ISA_HAS_FP4.
20953         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
20954         and ISA_HAS_NMADD3_NMSUB3.
20955         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
20956         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
20957         (nmsub4<mode>, nmsub3<mode>): Likewise.
20958         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
20960 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20962         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
20963         TARGET_MIPS5400 checking.
20965 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
20966             Peter Bergner  <bergner@vnet.ibm.com>
20968         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
20969         registers in the comment.
20970         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
20971         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
20972         rather than FIRST_PSEUDO_REGISTERS.
20974 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
20976         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
20977         enable extra ISA flags with TARGET_HTM.
20979 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20981         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
20982         Fix comment typos.
20984 2013-07-15  Cong Hou  <congh@google.com>
20986         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
20987         in compare function for sorting.
20989 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
20991         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
20992         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
20993         * config/rs6000/rs6000.opt: Add -mhtm option.
20994         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
20995         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
20996         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
20997         __HTM__ if the HTM instructions are available.
20998         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
20999         htm_spr_reg_operand): New define_predicates.
21000         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
21001         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
21002         Include htm.md.
21003         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
21004         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
21005         HTM builtin functions.
21006         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
21007         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
21008         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
21009         (rs6000_builtin_mask_calculate): Likewise.
21010         (rs6000_option_override_internal): Likewise.
21011         (bdesc_htm): Add new HTM builtin support.
21012         (htm_spr_num): New function.
21013         (htm_spr_regno): Likewise.
21014         (rs6000_htm_spr_icode): Likewise.
21015         (htm_expand_builtin): Likewise.
21016         (htm_init_builtins): Likewise.
21017         (rs6000_expand_builtin): Add support for HTM builtin functions.
21018         (rs6000_init_builtins): Likewise.
21019         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
21020         option.
21021         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
21022         (TARGET_HTM, MASK_HTM): Define macros.
21023         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
21024         (FIXED_REGISTERS): Likewise.
21025         (CALL_USED_REGISTERS): Likewise.
21026         (CALL_REALLY_USED_REGISTERS): Likewise.
21027         (REG_ALLOC_ORDER): Likewise.
21028         (enum reg_class): Likewise.
21029         (REG_CLASS_NAMES): Likewise.
21030         (REG_CLASS_CONTENTS): Likewise.
21031         (REGISTER_NAMES): Likewise.
21032         (ADDITIONAL_REGISTER_NAMES): Likewise.
21033         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
21034         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
21035         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
21036         * config/rs6000/htm.md: New file.
21037         * config/rs6000/htmintrin.h: New file.
21038         * config/rs6000/htmxlintrin.h: New file.
21040 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21042         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21043         Define SYMBOL_TINY_GOT, update comment.
21044         * config/aarch64/aarch64.c
21045         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
21046         (aarch64_expand_mov_immediate): Likewise.
21047         (aarch64_print_operand): Likewise.
21048         (aarch64_classify_symbol): Likewise.
21049         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
21050         (ldr_got_tiny): Define.
21052 2013-07-13  Tobias Grosser  <tobias@grosser.es>
21054         PR tree-optimization/54094
21055         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
21056           scheduling dimension for the parallelism check from the polyhedral
21057           information in the AST.
21058         * graphite-dependences.c (carries_deps): Do not assume the schedule is
21059           in 2D + 1 form.
21061 2013-07-13  Jason Merrill  <jason@redhat.com>
21063         * print-tree.c (debug_vec_tree): Use debug_raw.
21064         (debug_raw (vec<tree, va_gc> &)): New.
21065         (debug_raw (vec<tree, va_gc> *)): New.
21066         * tree.h: Declare them.
21068 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
21070         * ifcvt.c (ifcvt_after_combine): New static variable.
21071         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
21072         for size.
21073         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
21074         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
21075         rest_of_handle_if_after_reload): Pass new argument for if_convert.
21077 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
21079         * config/mips/mips.c (mips_expand_call): Remove empty statement.
21081 2013-07-12  Michael Matz  <matz@suse.de>
21083         PR middle-end/55771
21084         * convert.c (convert_to_real): Reject non-float inner types.
21086 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
21088         * config/aarch64/aarch64-protos.h
21089         (aarch64_simd_immediate_valid_for_move): Remove.
21090         * config/aarch64/aarch64.c (simd_immediate_info): New member.
21091         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
21092         cases.
21093         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
21095 2013-07-11  Steve Ellcey  <sellcey@mips.com>
21097         * config/mips/mips.c (mips_conditional_register_usage): Do not
21098         use t[0-7] registers in MIPS16 mode when optimizing for size.
21100 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
21102         * config/i386/i386.c (dispatch_function_versions): Fix array
21103         indexing of function_version_info to match actual_versions.
21105 2013-07-11  Teresa Johnson  <tejohnson@google.com>
21107         * vec.h (struct va_gc): Move release out-of-line.
21108         (va_gc::release): Call ggc_free on released vec.
21110 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21112         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
21113         Require GOT register as additional operand in UNSPEC.
21114         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
21115         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21116         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21117         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
21118         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
21119         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
21120         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
21122 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
21124         PR target/57631
21125         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
21126         name seen by assembler/linker rather if available.
21128 2013-07-11  Andreas Schwab  <schwab@suse.de>
21130         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
21132 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
21134         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21136 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
21138         * doc/tm.texi.in: Move hook documentation to ....
21139         * target.def: ... here.
21141         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
21142         text on @hook line.
21143         * doc/tm.texi: Regenerate.
21145 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
21147         PR c++/57869
21148         * doc/invoke.texi: Document -Wconditionally-supported.
21150 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21152         PR target/57844
21153         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
21154         of my_fp.
21156 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21158         PR target/57506
21159         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
21160         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
21161         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
21162         Remove duplicate devices.
21163         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
21164         * config/avr/t-multilib: Regenerate.
21165         * config/avr/avr-tables.opt: Regenerate.
21166         * doc/avr-mmcu.texi: Regenerate.
21168 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21170         PR target/56987
21171         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
21173 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
21175         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
21176         the cost of MULT when optimizing for size.
21178 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21180         * config/cr16/cr16-protos.h: Don't include target.h.
21182 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
21184         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
21185         adjust register size for TDmode and TFmode for VSX registers.
21187 2013-07-08  Kai Tietz  <ktietz@redhat.com>
21189         PR target/56892
21190         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
21191         hook_bool_const_tree_true.
21193 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21195         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
21196         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
21197         * config/s390/s390.md: Define FPR*_REGNUM constants.
21198         Fix FPR2_REGNUM constant (18 -> 17).
21199         ("*trunc<BFP:mode><DFP_ALL:mode>2")
21200         ("*trunc<DFP_ALL:mode><BFP:mode>2")
21201         ("trunc<BFP:mode><DFP_ALL:mode>2")
21202         ("trunc<DFP_ALL:mode><BFP:mode>2")
21203         ("*extend<BFP:mode><DFP_ALL:mode>2")
21204         ("*extend<DFP_ALL:mode><BFP:mode>2")
21205         ("extend<BFP:mode><DFP_ALL:mode>2")
21206         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
21207         FPR4_REGNUM.
21209 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
21211         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
21213 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21215         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
21216         and cfun_fpr_bit_p to cfun_fpr_save_p.
21217         (s390_frame_area, s390_register_info, s390_frame_info)
21218         (s390_emit_prologue, s390_emit_epilogue)
21219         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
21220         register numbers.
21221         * config/s390/s390.h: Define *_REGNUM macros for floating point
21222         register numbers.
21224 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
21226         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
21228 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
21230         PR rtl-optimization/57786
21231         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
21232         and break out of the loop when it is set to false.
21234 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
21236         PR target/57819
21237         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
21238         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
21239         (const_int 63)) 0)).
21240         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
21241         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
21242         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
21244         PR rtl-optimization/57829
21245         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
21246         mask bits outside of mode are just sign-extension from mode to HWI.
21248 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
21250         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
21251         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
21252         adjust_address instead of change_address to keep info about alignment.
21253         (emit_strmov): Remove.
21254         (emit_memmov): New function.
21255         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
21256         (expand_movmem_epilogue): Likewise and return updated rtx for
21257         destination.
21258         (expand_constant_movmem_prologue): Likewise and return updated rtx for
21259         destination and source.
21260         (decide_alignment): Refactor, handle vector_loop.
21261         (ix86_expand_movmem): Likewise.
21262         (ix86_expand_setmem): Likewise.
21263         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
21265 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
21267         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
21268         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
21270 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
21272         * config/i386/sse.md (sse_movlhps): Change alternative 3
21273         of operand 2 to "m".
21275 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
21277         PR target/57807
21278         * config/i386/sse.md (iptr): New mode attribute.
21279         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
21280         (<sse>_vm<plusminus_insn><mode>3): Ditto.
21281         (<sse>_vmmul<mode>3): Ditto.
21282         (<sse>_vmdiv<mode>3): Ditto.
21283         (sse_vmrcpv4sf2): Ditto.
21284         (<sse>_vmsqrt<mode>2): Ditto.
21285         (sse_vmrsqrtv4sf2): Ditto.
21286         (<sse>_vm<code><mode>3): Ditto.
21287         (avx_vmcmp<mode>3): Ditto.
21288         (<sse>_vmmaskcmp<mode>3): Ditto.
21289         (<sse>_comi): Ditto.
21290         (<sse>_ucomi): Ditto.
21291         (*xop_vmfrcz_<mode>): Ditto.
21292         (*fmai_fmadd_<mode>): Ditto.
21293         (*fmai_fmsub_<mode>): Ditto.
21294         (*fmai_fnmadd_<mode>): Ditto.
21295         (*fmai_fnmsub_<mode>): Ditto.
21296         (*fma4i_vmfmadd_<mode>): Ditto.
21297         (*fma4i_vmfmsub_<mode>): Ditto.
21298         (*fma4i_vmfnmadd_<mode>): Ditto.
21299         (*fma4i_vmfnmsub_<mode>): Ditto.
21300         (*xop_vmfrcz_<mode>): Ditto.
21301         (sse_cvtps2pi): Ditto.
21302         (sse_cvttps2pi): Ditto.
21303         (sse_cvtss2si): Ditto.
21304         (sse_cvtss2si_2): Ditto.
21305         (sse_cvtss2siq_2): Ditto.
21306         (sse_cvttss2si): Ditto.
21307         (sse_cvttss2siq): Ditto.
21308         (sse_cvtsd2si): Ditto.
21309         (sse_cvtsd2si_2): Ditto.
21310         (sse_cvtsd2siq_2): Ditto.
21311         (sse_cvttsd2si): Ditto.
21312         (sse_cvttsd2siq): Ditto.
21313         (sse_cvtsd2ss): Ditto.
21314         (sse_cvtss2sd): Ditto.
21315         (avx2_pbroadcast<mode>): Ditto.
21316         (avx2_pbroadcast<mode>_1): Ditto.
21317         (*avx_vperm_broadcast_v4sf): Ditto.
21319         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
21320         (sse_movlhps): Ditto.
21321         (sse_storehps): Ditto.
21322         (sse_loadhps): Ditto.
21323         (sse_storelps): Ditto.
21324         (sse_loadlps): Ditto.
21325         (*vec_concatv4sf): Ditto.
21326         (*vec_interleave_highv2df): Ditto.
21327         (*vec_interleave_lowv2df): Ditto.
21328         (*vec_extractv2df_1_sse): Ditto.
21329         (*vec_extractv2df_0_sse): Ditto.
21330         (sse2_storelpd): Ditto.
21331         (sse2_loadlpd): Ditto.
21332         (sse2_movsd): Ditto.
21333         (*vec_concatv4si): Ditto.
21334         (vec_concatv2di): Ditto.
21336         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
21337         for Intel asm dialect.
21338         (mmx_punpcklwd): Ditto.
21339         (mmx_punpckldq): Ditto.
21341         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
21342         for intel assembler dialect.
21344 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
21346         PR target/29776
21347         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
21348         for BUILT_IN_C{LZ,LRSB}*.
21349         * tree.h (CASE_INT_FN): Add FN##IMAX case.
21350         * tree-vrp.c (extract_range_basic): Handle
21351         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
21352         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
21353         fall thru to code calling set_value*.
21354         * builtins.c (expand_builtin): Remove *IMAX cases.
21355         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
21356         if width is bigger than 2*HWI.
21358 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
21360         PR rtl-optimization/55342
21361         * lra-int.h (lra_subreg_reload_pseudos): New.
21362         * lra.c: Add undoing optional reloads to the block diagram.
21363         (lra_subreg_reload_pseudos): New.
21364         (lra_optional_reload_pseudos): Change comments.
21365         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
21366         lra_optional_reload_pseudos after undo transformations.
21367         * lra-assigns.c (pseudo_prefix_title): New.
21368         (lra_setup_reg_renumber): Use it.
21369         (spill_for): Ditto.  Check subreg reload pseudos too.
21370         (assign_by_spills): Consider subreg reload pseudos too.
21371         * lra-constraints.c (simplify_operand_subreg): Use
21372         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
21373         (curr_insn_transform): Recognize and do optional reloads.
21374         (undo_optional_reloads): New.
21375         (lra_undo_inheritance): Call undo_optional_reloads.
21377 2013-07-05  Thomas Quinot  <quinot@adacore.com>
21379         * tree-complex.c (expand_complex_operations_1): Fix typo.
21381 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
21383         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
21384         (tune_params): New member 'const vec_costs'.
21385         * config/aarch64/aarch64.c (generic_vector_cost): New.
21386         (generic_tunings): New member 'generic_vector_cost'.
21387         (aarch64_builtin_vectorization_cost): New.
21388         (aarch64_add_stmt_cost): New.
21389         (TARGET_VECTORIZE_ADD_STMT_COST): New.
21390         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
21392 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
21394         PR target/57777
21395         * config/i386/predicates.md (vsib_address_operand): Disallow
21396         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
21398 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
21400         PR middle-end/55030
21401         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
21402         expand_builtin_setjmp_receiver.
21403         (expand_label): Adjust, call expand_builtin_setjmp_receiver
21404         with NULL for the label parameter.
21405         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
21406         the frame-pointer.  Adjust comments.
21407         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
21408         only if LABEL is non-NULL.
21410 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
21412         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
21413         (ARM_ABI_AAPCS64): Ditto.
21414         (arm_abi): Ditto.
21415         (ARM_DEFAULT_ABI): Ditto.
21417 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
21419         * config/aarch64/aarch64-builtins.c
21420         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
21421         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
21422         (st1): Likewise.
21423         * config/aarch64/aarch64-simd.md
21424         (aarch64_ld1<VALL:mode>): New.
21425         (aarch64_st1<VALL:mode>): Likewise.
21426         * config/aarch64/arm_neon.h
21427         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
21429 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
21431         * config/i386/i386.c (gate_insert_vzeroupper): Check if
21432         target ISA is AVX.
21433         (ix86_option_override_internal):Turn on all -mavx target flags by
21434         default as they are dependent on AVX anyway.
21436 2013-07-02  Cary Coutant  <ccoutant@google.com>
21438         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
21439         deterministic hash.
21440         (loc_checksum_ordered): Likewise.
21441         (hash_loc_operands): Remove inline keyword.
21443 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
21445         PR tree-optimization/57741
21446         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
21447         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
21448         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
21449         Allow REAL_CST step_exprs if flag_associative_math.
21450         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
21452 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
21454         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
21456 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
21458         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
21460 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21462         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
21463         encoding.
21464         (iorsi3_insn): Likewise.
21465         (arm_xorsi3): Likewise.
21467 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
21469         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
21470         to ...
21471         (attribute "type"): ... here, and prefix with "wmmx_".
21472         (attribute "core_cycles"): Update for attribute changes.
21473         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
21474         (tbcstv4hi): Likewise.
21475         (tbcstv2si): Likewise.
21476         (iwmmxt_iordi3): Likewise.
21477         (iwmmxt_xordi3): Likewise.
21478         (iwmmxt_anddi3): Likewise.
21479         (iwmmxt_nanddi3): Likewise.
21480         (iwmmxt_arm_movdi): Likewise.
21481         (iwmmxt_movsi_insn): Likewise.
21482         (mov<mode>_internal): Likewise.
21483         (and<mode>3_iwmmxt): Likewise.
21484         (ior<mode>3_iwmmxt): Likewise.
21485         (xor<mode>3_iwmmxt): Likewise.
21486         (add<mode>3_iwmmxt): Likewise.
21487         (ssaddv8qi3): Likewise.
21488         (ssaddv4hi3): Likewise.
21489         (ssaddv2si3): Likewise.
21490         (usaddv8qi3): Likewise.
21491         (usaddv4hi3): Likewise.
21492         (usaddv2si3): Likewise.
21493         (sub<mode>3_iwmmxt): Likewise.
21494         (sssubv8qi3): Likewise.
21495         (sssubv4hi3): Likewise.
21496         (sssubv2si3): Likewise.
21497         (ussubv8qi3): Likewise.
21498         (ussubv4hi3): Likewise.
21499         (ussubv2si3): Likewise.
21500         (mulv4hi3_iwmmxt): Likewise.
21501         (smulv4hi3_highpart): Likewise.
21502         (umulv4hi3_highpart): Likewise.
21503         (iwmmxt_wmacs): Likewise.
21504         (iwmmxt_wmacsz): Likewise.
21505         (iwmmxt_wmacu): Likewise.
21506         (iwmmxt_wmacuz): Likewise.
21507         (iwmmxt_clrdi): Likewise.
21508         (iwmmxt_clrv8qi): Likewise.
21509         (iwmmxt_clr4hi): Likewise.
21510         (iwmmxt_clr2si): Likewise.
21511         (iwmmxt_uavgrndv8qi3): Likewise.
21512         (iwmmxt_uavgrndv4hi3): Likewise.
21513         (iwmmxt_uavgv8qi3): Likewise.
21514         (iwmmxt_uavgv4hi3): Likewise.
21515         (iwmmxt_tinsrb): Likewise.
21516         (iwmmxt_tinsrh): Likewise.
21517         (iwmmxt_tinsrw): Likewise.
21518         (iwmmxt_textrmub): Likewise.
21519         (iwmmxt_textrmsb): Likewise.
21520         (iwmmxt_textrmuh): Likewise.
21521         (iwmmxt_textrmsh): Likewise.
21522         (iwmmxt_textrmw): Likewise.
21523         (iwmxxt_wshufh): Likewise.
21524         (eqv8qi3): Likewise.
21525         (eqv4hi3): Likewise.
21526         (eqv2si3): Likewise.
21527         (gtuv8qi3): Likewise.
21528         (gtuv4hi3): Likewise.
21529         (gtuv2si3): Likewise.
21530         (gtv8qi3): Likewise.
21531         (gtv4hi3): Likewise.
21532         (gtv2si3): Likewise.
21533         (smax<mode>3_iwmmxt): Likewise.
21534         (umax<mode>3_iwmmxt): Likewise.
21535         (smin<mode>3_iwmmxt): Likewise.
21536         (umin<mode>3_iwmmxt): Likewise.
21537         (iwmmxt_wpackhss): Likewise.
21538         (iwmmxt_wpackwss): Likewise.
21539         (iwmmxt_wpackdss): Likewise.
21540         (iwmmxt_wpackhus): Likewise.
21541         (iwmmxt_wpackwus): Likewise.
21542         (iwmmxt_wpackdus): Likewise.
21543         (iwmmxt_wunpckihb): Likewise.
21544         (iwmmxt_wunpckihh): Likewise.
21545         (iwmmxt_wunpckihw): Likewise.
21546         (iwmmxt_wunpckilb): Likewise.
21547         (iwmmxt_wunpckilh): Likewise.
21548         (iwmmxt_wunpckilw): Likewise.
21549         (iwmmxt_wunpckehub): Likewise.
21550         (iwmmxt_wunpckehuh): Likewise.
21551         (iwmmxt_wunpckehuw): Likewise.
21552         (iwmmxt_wunpckehsb): Likewise.
21553         (iwmmxt_wunpckehsh): Likewise.
21554         (iwmmxt_wunpckehsw): Likewise.
21555         (iwmmxt_wunpckelub): Likewise.
21556         (iwmmxt_wunpckeluh): Likewise.
21557         (iwmmxt_wunpckeluw): Likewise.
21558         (iwmmxt_wunpckelsb): Likewise.
21559         (iwmmxt_wunpckelsh): Likewise.
21560         (iwmmxt_wunpckelsw): Likewise.
21561         (ror<mode>3): Likewise.
21562         (ashr<mode>3_iwmmxt): Likewise.
21563         (lshr<mode>3_iwmmxt): Likewise.
21564         (ashl<mode>3_iwmmxt): Likewise.
21565         (ror<mode>3_di): Likewise.
21566         (ashr<mode>3_di): Likewise.
21567         (lshr<mode>3_di): Likewise.
21568         (ashl<mode>3_di): Likewise.
21569         (iwmmxt_wmadds): Likewise.
21570         (iwmmxt_wmaddu): Likewise.
21571         (iwmmxt_tmia): Likewise.
21572         (iwmmxt_tmiaph): Likewise.
21573         (iwmmxt_tmiabb): Likewise.
21574         (iwmmxt_tmiatb): Likewise.
21575         (iwmmxt_tmiabt): Likewise.
21576         (iwmmxt_tmiatt): Likewise.
21577         (iwmmxt_tmovmskb): Likewise.
21578         (iwmmxt_tmovmskh): Likewise.
21579         (iwmmxt_tmovmskw): Likewise.
21580         (iwmmxt_waccb): Likewise.
21581         (iwmmxt_wacch): Likewise.
21582         (iwmmxt_waccw): Likewise.
21583         (iwmmxt_waligni): Likewise.
21584         (iwmmxt_walignr): Likewise.
21585         (iwmmxt_walignr0): Likewise.
21586         (iwmmxt_walignr1): Likewise.
21587         (iwmmxt_walignr2): Likewise.
21588         (iwmmxt_walignr3): Likewise.
21589         (iwmmxt_wsadb): Likewise.
21590         (iwmmxt_wsadh): Likewise.
21591         (iwmmxt_wsadbz): Likewise.
21592         (iwmmxt_wsadhz): Likewise.
21593         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
21594         (iwmmxt_wabsdiffb): Likewise.
21595         (iwmmxt_wabsdiffh): Likewise.
21596         (iwmmxt_wabsdiffw): Likewise.
21597         (iwmmxt_waddsubhx): Likewise
21598         (iwmmxt_wsubaddhx): Likewise.
21599         (addc<mode>3): Likewise.
21600         (iwmmxt_avg4): Likewise.
21601         (iwmmxt_avg4r): Likewise.
21602         (iwmmxt_wmaddsx): Likewise.
21603         (iwmmxt_wmaddux): Likewise.
21604         (iwmmxt_wmaddsn): Likewise.
21605         (iwmmxt_wmaddun): Likewise.
21606         (iwmmxt_wmulwsm): Likewise.
21607         (iwmmxt_wmulwum): Likewise.
21608         (iwmmxt_wmulsmr): Likewise.
21609         (iwmmxt_wmulumr): Likewise.
21610         (iwmmxt_wmulwsmr): Likewise.
21611         (iwmmxt_wmulwumr): Likewise.
21612         (iwmmxt_wmulwl): Likewise.
21613         (iwmmxt_wqmulm): Likewise.
21614         (iwmmxt_wqmulwm): Likewise.
21615         (iwmmxt_wqmulmr): Likewise.
21616         (iwmmxt_wqmulwmr): Likewise.
21617         (iwmmxt_waddbhusm): Likewise.
21618         (iwmmxt_waddbhusl): Likewise.
21619         (iwmmxt_wqmiabb): Likewise.
21620         (iwmmxt_wqmiabt): Likewise.
21621         (iwmmxt_wqmiatb): Likewise.
21622         (iwmmxt_wqmiatt): Likewise.
21623         (iwmmxt_wqmiabbn): Likewise.
21624         (iwmmxt_wqmiabtn): Likewise.
21625         (iwmmxt_wqmiatbn): Likewise.
21626         (iwmmxt_wqmiattn): Likewise.
21627         (iwmmxt_wmiabb): Likewise.
21628         (iwmmxt_wmiabt): Likewise.
21629         (iwmmxt_wmiatb): Likewise.
21630         (iwmmxt_wmiatt): Likewise.
21631         (iwmmxt_wmiabbn): Likewise.
21632         (iwmmxt_wmiabtn): Likewise.
21633         (iwmmxt_wmiatbn): Likewise.
21634         (iwmmxt_wmiattn): Likewise.
21635         (iwmmxt_wmiawbb): Likewise.
21636         (iwmmxt_wmiawbt): Likewise.
21637         (iwmmxt_wmiawtb): Likewise.
21638         (iwmmxt_wmiawtt): Likewise.
21639         (iwmmxt_wmiawbbn): Likewise.
21640         (iwmmxt_wmiawbtn): Likewise.
21641         (iwmmxt_wmiawtbn): Likewise.
21642         (iwmmxt_wmiawttn): Likewise.
21643         (iwmmxt_wmerge): Likewise.
21644         (iwmmxt_tandc<mode>3): Likewise.
21645         (iwmmxt_torc<mode>3): Likewise.
21646         (iwmmxt_torvsc<mode>3): Likewise.
21647         (iwmmxt_textrc<mode>3): Likewise.
21648         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
21649         (wmmxt_pack): Likewise.
21650         (wmmxt_mult_c1): Likewise.
21651         (wmmxt_mult_c2): Likewise.
21652         (wmmxt_alu_c1): Likewise.
21653         (wmmxt_alu_c2): Likewise.
21654         (wmmxt_alu_c3): Likewise.
21655         (wmmxt_transfer_c1): Likewise.
21656         (wmmxt_transfer_c2): Likewise.
21657         (wmmxt_transfer_c3): Likewise.
21658         (marvell_f_iwmmxt_wstr): Likewise.
21659         (marvell_f_iwmmxt_wldr): Likewise.
21661 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
21663         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
21665 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21667         Revert:
21668         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21669         * lra-constraints.c (need_for_split_p): Check call used hard regs
21670         living through calls.
21672         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
21673         call used regs for call insn.
21675 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
21677         PR target/57736
21678         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
21679         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
21681 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
21683         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
21685 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21687         * lra-constraints.c (need_for_split_p): Check call used hard regs
21688         living through calls.
21690 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
21692         PR target/57744
21693         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
21694         to tie with any other modes.  Eliminate Altivec vector mode tests,
21695         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
21696         code, to return 0 if testing MODE2 for a condition, if we've
21697         already tested MODE1 for the same condition.
21699 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21701         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
21702         layout.
21704 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21706         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21707         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
21709 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21711         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
21712         Define.
21713         (aarch64_symbolic_constant_p): Remove.
21714         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
21715         static.  Fix line length and white space.
21716         (aarch64_symbolic_constant_p): Remove.
21717         * config/aarch64/predicates.md (aarch64_valid_symref):
21718         Use aarch64_classify_symbol_expression.
21720 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21722         * config/arm/constraints.md (Ts): New constraint.
21723         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
21724         16-bit encodings.
21725         (compare_scc): Use "Ts" constraint for operand 0.
21726         (ior_scc_scc): Likewise.
21727         (and_scc_scc): Likewise.
21728         (and_scc_scc_nodom): Likewise.
21729         (ior_scc_scc_cmp): Likewise for operand 7.
21730         (and_scc_scc_cmp): Likewise.
21731         * config/arm/thumb2.md (thumb2_movsi_insn):
21732         Add alternatives for 16-bit encodings.
21733         (thumb2_movhi_insn): Likewise.
21734         (thumb2_movsicc_insn): Likewise.
21735         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
21736         (thumb2_negscc): Use "Ts" constraint.
21737         Move mvn instruction outside cond_exec block.
21738         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
21739         for 16-bit encodings.
21741 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21743         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
21744         encoding.
21745         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
21746         (mulsi3subsi): Likewise.
21747         (mulsidi3adddi): Likewise.
21748         (mulsidi3_v6): Likewise.
21749         (umulsidi3_v6): Likewise.
21750         (umulsidi3adddi_v6): Likewise.
21751         (smulsi3_highpart_v6): Likewise.
21752         (umulsi3_highpart_v6): Likewise.
21753         (mulhisi3tb): Likewise.
21754         (mulhisi3bt): Likewise.
21755         (mulhisi3tt): Likewise.
21756         (maddhisi4): Likewise.
21757         (maddhisi4tb): Likewise.
21758         (maddhisi4tt): Likewise.
21759         (maddhidi4): Likewise.
21760         (maddhidi4tb): Likewise.
21761         (maddhidi4tt): Likewise.
21762         (zeroextractsi_compare0_scratch): Likewise.
21763         (insv_zero): Likewise.
21764         (insv_t2): Likewise.
21765         (anddi_notzesidi_di): Likewise.
21766         (anddi_notsesidi_di): Likewise.
21767         (andsi_notsi_si): Likewise.
21768         (iordi_zesidi_di): Likewise.
21769         (xordi_zesidi_di): Likewise.
21770         (andsi_iorsi3_notsi): Likewise.
21771         (smax_0): Likewise.
21772         (smax_m1): Likewise.
21773         (smin_0): Likewise.
21774         (not_shiftsi): Likewise.
21775         (unaligned_loadsi): Likewise.
21776         (unaligned_loadhis): Likewise.
21777         (unaligned_loadhiu): Likewise.
21778         (unaligned_storesi): Likewise.
21779         (unaligned_storehi): Likewise.
21780         (extv_reg): Likewise.
21781         (extzv_t2): Likewise.
21782         (divsi3): Likewise.
21783         (udivsi3): Likewise.
21784         (arm_zero_extendhisi2addsi): Likewise.
21785         (arm_zero_extendqisi2addsi): Likewise.
21786         (compareqi_eq0): Likewise.
21787         (arm_extendhisi2_v6): Likewise.
21788         (arm_extendqisi2addsi): Likewise.
21789         (arm_movt): Likewise.
21790         (thumb2_ldrd): Likewise.
21791         (thumb2_ldrd_base): Likewise.
21792         (thumb2_ldrd_base_neg): Likewise.
21793         (thumb2_strd): Likewise.
21794         (thumb2_strd_base): Likewise.
21795         (thumb2_strd_base_neg): Likewise.
21796         (arm_negsi2): Add alternative for 16-bit encoding.
21797         (arm_one_cmplsi2): Likewise.
21799 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21801         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
21802         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
21803         (movdfcc): Likewise.
21804         * config/arm/vfp.md (*thumb2_movsf_vfp):
21805         Disable predication for arm_restrict_it.
21806         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
21807         (*thumb2_movdfcc_vfp): Likewise.
21808         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
21809         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
21810         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
21811         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
21812         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
21813         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
21814         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
21815         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
21816         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
21817         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
21818         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
21819         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
21820         Disable predication for arm_restrict_it.
21822 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
21824         * config/i386/bmiintrin.h (_bextr_u32): New.
21825         (_bextr_u64): Ditto.
21827 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
21829         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
21830         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
21831         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
21832         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
21833         * config/mips/n32-elf.h: ...this new file.
21835 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
21837         PR target/57224
21838         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
21839         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
21841 2013-06-27  Catherine Moore  <clm@codesourcery.com>
21843         * config/mips/mips-tables.opt: Regenerate.
21844         * config/mips/mips-cpus.def: Add m14ke and m14kec.
21845         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
21846         * doc/invoke.texi: Add -m14kc.
21848 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
21850         PR target/57623
21851         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
21852         constraints of operand 1 and 2.
21854         PR target/57623
21855         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
21856         to match RTL canonicalization.  Swap predicates and
21857         constraints of operand 1 and 2.
21859 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
21861         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
21862         Process OP_INOUT regs for splitting too.
21864 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
21866         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
21867         decl before the loop, initialize to NULL.
21868         (vectorizable_load): Initialize ptr_incr to NULL.
21870 2013-06-27  Martin Jambor  <mjambor@suse.cz>
21872         PR lto/57208
21873         * ipa-ref.h (ipa_maybe_record_reference): Declare.
21874         * ipa-ref.c (ipa_maybe_record_reference): New function.
21875         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
21876         * ipa-cp.c (create_specialized_node): Record potential references from
21877         aggvals.
21878         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
21880 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
21882         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
21883         parameter 'mode' of type 'enum machine_mode mode'; change to pass
21884         'mode' to force_reg.
21885         (aarch64_add_offset): Update calls to aarch64_force_temporary.
21886         (aarch64_expand_mov_immediate): Likewise.
21888 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
21890         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
21891         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
21893 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21895         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
21896         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21897         (struct machine_function): Add tbegin_p.
21898         (s390_canonicalize_comparison): Fold CC mode compares to
21899         conditional jump if possible.
21900         (s390_emit_jump): Return the emitted jump.
21901         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
21902         Handle CCRAWmode compares.
21903         (s390_option_override): Default to -mhtm if available.
21904         (s390_reg_clobbered_rtx): Handle floating point regs as well.
21905         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
21906         FPRs instead of df_regs_ever_live_p.
21907         (s390_optimize_nonescaping_tx): New function.
21908         (s390_init_frame_layout): Extend clobbered_regs array to cover
21909         FPRs as well.
21910         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
21911         (s390_expand_tbegin): New function.
21912         (enum s390_builtin): New enum definition.
21913         (code_for_builtin): New array definition.
21914         (s390_init_builtins): New function.
21915         (s390_expand_builtin): New function.
21916         (TARGET_INIT_BUILTINS): Define.
21917         (TARGET_EXPAND_BUILTIN): Define.
21918         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
21919         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
21920         (s390_alc_comparison): Likewise.
21921         * config/s390/s390-modes.def: Add CCRAWmode.
21922         * config/s390/s390.h (processor_flags): Add PF_TX.
21923         (TARGET_CPU_HTM): Define macro.
21924         (TARGET_HTM): Define macro.
21925         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
21926         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
21927         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21928         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
21929         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
21930         (TBEGIN_MASK, TBEGINC_MASK): New constants.
21931         ("*cc_to_int"): Move up.
21932         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
21933         constants other than 0.
21934         ("*ccraw_to_int"): New insn and splitter definition.
21935         ("tbegin", "tbegin_nofloat", "tbegin_retry")
21936         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
21937         ("tx_assist"): New expander.
21938         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
21939         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
21940         * config/s390/s390.opt: Add -mhtm option.
21941         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
21942         * config/s390/htmxlintrin.h: New file.
21943         * config/s390/htmintrin.h: New file.
21944         * config/s390/s390intrin.h: New file.
21945         * doc/extend.texi: Document htm builtins.
21946         * config.gcc: Add the new header files to extra_headers.
21948 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
21950         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
21951         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
21953 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
21954             Pat Haugen  <pthaugen@us.ibm.com>
21955             Peter Bergner  <bergner@vnet.ibm.com>
21957         * config/rs6000/power8.md: New.
21958         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
21959         setting for power8 entry.
21960         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
21961         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
21962         test for Power4/Power5 only.
21963         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
21964         support.
21965         (force_new_group): Adjust comment.
21966         * config/rs6000/rs6000.md: Include power8.md.
21968 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
21970         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
21971         * config/arm/arm-protos.h (arm_max_conditional_execute): New
21972         declaration.
21973         (tune_params): Update comment.
21974         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
21975         (arm_max_conditional_execute): New function.
21976         (thumb2_final_prescan_insn): Use max_insn_skipped and
21977         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
21979 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
21981         PR tree-optimization/57705
21982         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
21983         SSA_NAME step, provided that it is not defined inside the loop.
21984         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
21985         (get_initial_def_for_induction): Handle SSA_NAME IV step.
21987 2013-06-25  Martin Jambor  <mjambor@suse.cz>
21989         PR middle-end/57670
21990         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
21991         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
21992         calls in the dump.
21993         (ipa_note_param_call): Initialize member_ptr flag.
21994         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
21995         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
21996         (ipa_write_indirect_edge_info): Stream member_ptr flag.
21997         (ipa_read_indirect_edge_info): Likewise.
21999 2013-06-25  Richard Biener  <rguenther@suse.de>
22001         PR middle-end/56977
22002         * passes.c (init_optimization_passes): Move pass_fold_builtins
22003         and pass_dce earlier with -Og.
22005 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
22007         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
22008         <BIT_FIELD_REF>: Remove trailing TAB.
22009         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
22010         remove blank line.
22012 2013-06-24  Martin Jambor  <mjambor@suse.cz>
22014         PR tree-optimization/57358
22015         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
22016         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
22017         (ipa_analyze_params_uses): Generate pessimistic info when true.
22019 2013-06-24  Martin Jambor  <mjambor@suse.cz>
22021         PR tree-optimization/57539
22022         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
22023         global.inlined_to of the new node to it.  All callers changed.
22024         * ipa-inline-transform.c (clone_inlined_nodes): New variable
22025         inlining_into, pass it to cgraph_clone_node.
22026         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
22027         ipa_free_edge_args_substructures.
22028         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
22029         rdesc linked list.  Do not assert rdesc edges have inlined caller.
22030         Assert we have found an rdesc in the rdesc list.
22032 2013-06-24  Richard Biener  <rguenther@suse.de>
22034         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
22035         (pointer_set_lookup): Declare.
22036         (class pointer_map): New template class implementing a
22037         generic pointer to T map.
22038         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
22039         pointer_map<T>::contains, pointer_map<T>::insert,
22040         pointer_map<T>::traverse): New functions.
22041         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
22042         (pointer_set_lookup): New function.
22043         (pointer_set_contains): Use pointer_set_lookup.
22044         (pointer_set_insert): Likewise.
22045         (insert_aux): Remove.
22046         (struct pointer_map_t): Embed a pointer_set_t.
22047         (pointer_map_create): Adjust.
22048         (pointer_map_destroy): Likewise.
22049         (pointer_map_contains): Likewise.
22050         (pointer_map_insert): Likewise.
22051         (pointer_map_traverse): Likewise.
22052         * tree-streamer.h (struct streamer_tree_cache_d): Use a
22053         pointer_map<unsigned> instead of a pointer_map_t.
22054         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
22055         (streamer_tree_cache_lookup): Likewise.
22056         (streamer_tree_cache_create): Likewise.
22057         (streamer_tree_cache_delete): Likewise.
22058         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
22059         pointer_map<unsigned> instead of a pointer_map_t.
22060         (lto_init_tree_ref_encoder): Adjust.
22061         (lto_destroy_tree_ref_encoder): Likewise.
22062         * lto-section-out.c (lto_output_decl_index): Likewise.
22063         (lto_record_function_out_decl_state): Likewise.
22064         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
22066 2013-06-24  Richard Biener  <rguenther@suse.de>
22068         PR tree-optimization/57488
22069         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
22071 2013-06-24  Alan Modra  <amodra@gmail.com>
22073         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
22074         (gen_easy_altivec_constant): Likewise.
22075         * config/rs6000/predicates.md (easy_vector_constant_add_self,
22076         easy_vector_constant_msb): Likewise.
22078 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
22080         PR target/57688
22081         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
22082         add missing return true.
22084 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
22086         PR target/52483
22087         * config/sh/predicates.md (general_extend_operand): Invoke
22088         general_movsrc_operand for memory operands.
22089         (general_movsrc_operand): Allow reg+reg addressing, do not use
22090         general_operand for memory operands.
22092 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
22094         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
22095         when current target options does not apply.
22096         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
22097         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
22098         * config/i386/bmiintrin.h: Pass appropriate target
22099         attributes to header.
22100         * config/i386/mmintrin.h: Ditto.
22101         * config/i386/nmmintrin.h: Ditto.
22102         * config/i386/avx2intrin.h: Ditto.
22103         * config/i386/fxsrintrin.h: Ditto.
22104         * config/i386/tbmintrin.h: Ditto.
22105         * config/i386/xsaveintrin.h: Ditto.
22106         * config/i386/f16cintrin.h: Ditto.
22107         * config/i386/xtestintrin.h: Ditto.
22108         * config/i386/xsaveoptintrin.h: Ditto.
22109         * config/i386/bmi2intrin.h: Ditto.
22110         * config/i386/lzcntintrin.h: Ditto.
22111         * config/i386/smmintrin.h: Ditto.
22112         * config/i386/wmmintrin.h: Ditto.
22113         * config/i386/x86intrin.h: Remove all header include guards.
22114         * config/i386/prfchwintrin.h: Ditto.
22115         * config/i386/pmmintrin.h: Ditto.
22116         * config/i386/tmmintrin.h: Ditto.
22117         * config/i386/xmmintrin.h: Ditto.
22118         * config/i386/popcntintrin.h: Ditto.
22119         * config/i386/rdseedintrin.h: Ditto.
22120         * config/i386/ammintrin.h: Ditto.
22121         * config/i386/emmintrin.h: Ditto.
22122         * config/i386/immintrin.h: Remove all header include guards.
22123         * config/i386/fma4intrin.h: Ditto.
22124         * config/i386/lwpintrin.h: Ditto.
22125         * config/i386/xopintrin.h: Ditto.
22126         * config/i386/ia32intrin.h: Ditto.
22127         * config/i386/avxintrin.h: Ditto.
22128         * config/i386/rtmintrin.h: Ditto.
22129         * config/i386/fmaintrin.h: Ditto.
22130         * config/i386/mm3dnow.h: Ditto.
22132 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
22134         * common/config/i386/i386-common.c: Handle LZCNT.
22136 2013-06-22  Andi Kleen  <ak@linux.intel.com>
22138         * doc/extend.texi: Use __atomic_store_n instead of
22139         __atomic_store in HLE example.
22141 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
22143         * config/sh/sh.c: Remove <cstdlib> workaround.
22145 2013-06-21  Andi Kleen  <ak@linux.intel.com>
22147         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
22149 2013-06-21  Andi Kleen  <ak@linux.intel.com>
22151         * doc/extend.texi: Document that __atomic_clear and
22152           __atomic_test_and_set should only be used with bool.
22154 2013-06-20  Jan Hubicka  <jh@suse.cz>
22156         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
22157         types_same_for_odr.
22158         * tree.c (decls_same_for_odr): New function.
22159         (same_for_edr): New function.
22160         (types_same_for_odr): New function.
22161         (get_binfo_at_offset): Use it.
22162         * tree.h (types_same_for_odr): Declare.
22164 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
22165             Jason Merrill  <jason@redhat.com>
22167         * system.h: Include <cstdlib> as well as <stdlib.h>.
22169 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
22171         PR target/57655
22172         * config/i386/i386.c (construct_container): Report error if
22173         long double is used with disabled x87 float returns.
22175 2013-06-20  Jan Hubicka  <jh@suse.cz>
22177         * lto-cgraph.c (input_symtab): Do not set cgraph state.
22179 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
22181         PR rtl-optimization/57425
22182         PR rtl-optimization/57569
22183         * alias.c (write_dependence_p): Remove parameters mem_mode and
22184         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
22185         Changed all callers.
22186         (canon_anti_dependence): Get comments and semantics in sync.
22187         Add parameter mem_canonicalized.  Changed all callers.
22188         * rtl.h (canon_anti_dependence): Update prototype.
22190 2013-06-20  Richard Biener  <rguenther@suse.de>
22192         * data-streamer-in.c (streamer_read_uhwi): Optimize single
22193         byte case, inline streamer_read_uchar and defer section
22194         overrun check.
22196 2013-06-20  Richard Biener  <rguenther@suse.de>
22198         PR tree-optimization/57584
22199         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
22200         SSA names into the expanded expression that take part in
22201         abnormal coalescing.
22203 2013-06-19  Sharad Singhai  <singhai@google.com>
22205         * gcov.c (print_usage): Handle new option.
22206         (process_args): Ditto.
22207         (get_gcov_intermediate_filename): New function.
22208         (output_intermediate_file): New function.
22209         (output_gcov_file): New function
22210         (generate_results): Handle new option.
22211         (release_function): Relase demangled name.
22212         (read_graph_file): Handle demangled name.
22213         (output_lines): Ditto.
22214         * doc/gcov.texi: Document gcov intermediate format.
22216 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
22218         PR bootstrap/57604
22219         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
22220         (lra_emit_add): Use the functions.  Add comment about Y as an
22221         address segment.
22223 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
22225         PR driver/57652
22226         * collect2.c (collect_atexit): New.
22227         (collect_exit): Delete.
22228         (main): Register collect_atexit with atexit.
22229         (collect_wait): Change collect_exit to exit.
22230         (do_wait): Same.
22231         * collect2.h (collect_exit): Delete.
22232         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
22234 2013-06-19  Wei Mi  <wmi@google.com>
22236         PR rtl-optimization/57518
22237         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
22238         if regno is used in paradoxical subreg.
22239         (update_equiv_regs): Check pdx_subregs[regno] before
22240         set a reg to be equivalent with a mem.
22242 2013-06-19  Matthias Klose  <doko@ubuntu.com>
22244         PR driver/57651
22245         * file-find.h (find_a_file): Add a mode parameter.
22246         * file-find.c (find_a_file): Likewise.
22247         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
22248         with X_OK for the executables.
22249         * collect2.c (main): Call find_a_file with X_OK.
22251 2013-06-19  Steve Ellcey  <sellcey@mips.com>
22253         PR target/56942
22254         * config/mips/mips.md (casesi_internal_mips16_<mode>):
22255         Use NEXT_INSN instead of next_real_insn.
22257 2013-06-19  Jan Hubicka  <jh@suse.cz>
22259         * cgraph.h (const_value_known_p): Replace by ...
22260         (ctor_for_folding): .. this one.
22261         * cgraphunit.c (process_function_and_variable_attributes): Use it.
22262         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
22263         * expr.c (expand_expr_real_1): Likewise.
22264         (string_constant): Likewise.
22265         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
22266         * ipa.c (process_references): Likewise.
22267         (symtab_remove_unreachable_nodes): Likewise.
22268         * ipa-inline-analysis.c (param_change_prob): Likewise.
22269         * gimple-fold.c (canonicalize_constructor_val): Likewise.
22270         (get_base_constructor): Likwise.
22271         * varpool.c (varpool_remove_node): Likewise.
22272         (varpool_remove_initializer): LIkewise.
22273         (dump_varpool_node): LIkwise.
22274         (const_value_known_p): Rewrite to ...
22275         (ctor_for_folding): ... this one.
22277 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
22279         PR driver/57651
22280         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
22281         PERSONALITY in $PATH derived prefixes.
22283 2013-06-19  Jeff Law  <law@redhat.com>
22285         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
22286         in comment.
22288         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
22289         (simplify_bitwise_binary): Use it to simpify certain binary ops on
22290         booleans.
22292 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
22294         * config/arm/vfp.md: Move VFP instruction classification documentation
22295         to ...
22296         * config/arm/arm.md: ... here.  Update instruction classification
22297         documentation.
22299 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
22301         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
22302         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
22303         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
22305 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
22307         PR target/57609
22308         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22309         with NEXT_INSN.  Use tablejump_p to check for jump table data
22310         insns.
22312 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
22314         PR c++/56544
22315         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
22316         that now in C++ the value is correct per the C++ standards.
22318 2013-06-19  Richard Biener  <rguenther@suse.de>
22320         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
22321         for global context.
22323 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22325         Revert:
22326         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22328         PR target/57609
22329         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22330         with next_active_insn.
22332 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
22334         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
22335         functions are inlined during failures to flag an error.
22336         * tree-inline.c (expand_call_inline): Allow the error to be flagged
22337         in early inline pass.
22339 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22341         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
22342         in comments.
22344 2013-06-18  Julian Brown  <julian@codesourcery.com>
22346         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
22347         Permit virtual register pre-reload if !strict.
22348         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
22349         change.
22350         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
22351         prototype.
22352         * config/arm/neon.md (movmisalign<mode>): Use
22353         neon_perm_struct_or_reg_operand instead of
22354         neon_struct_or_register_operand.
22355         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
22356         neon_permissive_struct_operand instead of neon_struct_operand.
22357         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
22358         neon_vector_mem_operand.
22359         * config/arm/predicates.md (neon_struct_operand): Adjust call to
22360         neon_vector_mem_operand.
22361         (neon_permissive_struct_operand): New.
22362         (neon_struct_or_register_operand): Rename to...
22363         (neon_perm_struct_or_reg_operand): This. Adjust call to
22364         neon_vector_mem_operand.
22366 2013-06-18  Richard Biener  <rguenther@suse.de>
22368         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
22369         * lto-streamer.h: Include pointer-set.h.
22370         (struct lto_decl_slot): Remove.
22371         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
22372         Remove next_index entry.
22373         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
22374         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
22375         (lto_init_tree_ref_encoder): Adjust.
22376         (lto_destroy_tree_ref_encoder): Likewise.
22377         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
22378         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
22379         (lto_output_decl_index): Adjust.
22380         (lto_new_out_decl_state): Likewise.
22381         (lto_record_function_out_decl_state): Likewise.
22382         * lto-streamer-out.c (copy_function): Likewise.
22384 2013-06-18  Richard Biener  <rguenther@suse.de>
22386         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
22387         * cgraphunit.c: Include cfgloop.h.
22388         (init_lowered_empty_function): Initialize the loop tree.
22389         (assemble_thunk): Insert new BBs into loops.
22391 2013-06-18  Richard Biener  <rguenther@suse.de>
22393         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
22394         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
22395         the map from cache entry to cache index optional.
22396         (streamer_tree_cache_replace_tree): Adjust accordingly.
22397         (streamer_tree_cache_append): Likewise.
22398         (streamer_tree_cache_delete): Likewise.
22399         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
22400         streamer cache map from cache entry to cache index.
22401         * lto-streamer-out.c (create_output_block): Adjust.
22403 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
22405         * config/arm/arm.md (attribute "insn"): Move multiplication and
22406         division attributes to...
22407         (attribute "type"): ... here.  Remove mult.
22408         (attribute "mul32"): New attribute.
22409         (attribute "mul64"): Add umaal.
22410         (*arm_mulsi3): Update attributes.
22411         (*arm_mulsi3_v6): Likewise.
22412         (*thumb_mulsi3): Likewise.
22413         (*thumb_mulsi3_v6): Likewise.
22414         (*mulsi3_compare0): Likewise.
22415         (*mulsi3_compare0_v6): Likewise.
22416         (*mulsi_compare0_scratch): Likewise.
22417         (*mulsi_compare0_scratch_v6): Likewise.
22418         (*mulsi3addsi): Likewise.
22419         (*mulsi3addsi_v6): Likewise.
22420         (*mulsi3addsi_compare0): Likewise.
22421         (*mulsi3addsi_compare0_v6): Likewise.
22422         (*mulsi3addsi_compare0_scratch): Likewise.
22423         (*mulsi3addsi_compare0_scratch_v6): Likewise.
22424         (*mulsi3subsi): Likewise.
22425         (*mulsidi3adddi): Likewise.
22426         (*mulsi3addsi_v6): Likewise.
22427         (*mulsidi3adddi_v6): Likewise.
22428         (*mulsidi3_nov6): Likewise.
22429         (*mulsidi3_v6): Likewise.
22430         (*umulsidi3_nov6): Likewise.
22431         (*umulsidi3_v6): Likewise.
22432         (*umulsidi3adddi): Likewise.
22433         (*umulsidi3adddi_v6): Likewise.
22434         (*smulsi3_highpart_nov6): Likewise.
22435         (*smulsi3_highpart_v6): Likewise.
22436         (*umulsi3_highpart_nov6): Likewise.
22437         (*umulsi3_highpart_v6): Likewise.
22438         (mulhisi3): Likewise.
22439         (*mulhisi3tb): Likewise.
22440         (*mulhisi3bt): Likewise.
22441         (*mulhisi3tt): Likewise.
22442         (maddhisi4): Likewise.
22443         (*maddhisi4tb): Likewise.
22444         (*maddhisi4tt): Likewise.
22445         (maddhidi4): Likewise.
22446         (*maddhidi4tb): Likewise.
22447         (*maddhidi4tt): Likewise.
22448         (divsi3): Likewise.
22449         (udivsi3): Likewise.
22450         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
22451         (thumb2_mulsi_short_compare0): Likewise.
22452         (thumb2_mulsi_short_compare0_scratch): Likewise.
22453         * config/arm/arm1020e.md (1020mult1): Update attribute change.
22454         (1020mult2): Likewise.
22455         (1020mult3): Likewise.
22456         (1020mult4): Likewise.
22457         (1020mult5): Likewise.
22458         (1020mult6): Likewise.
22459         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
22460         change.
22461         (cortex_a15_mult64): Likewise.
22462         (cortex_a15_sdiv): Likewise.
22463         (cortex_a15_udiv): Likewise.
22464         * config/arm/arm1026ejs.md (mult1): Update attribute change.
22465         (mult2): Likewise.
22466         (mult3): Likewise.
22467         (mult4): Likewise.
22468         (mult5): Likewise.
22469         (mult6): Likewise.
22470         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
22471         (pj4_ir_div): Likewise.
22472         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
22473         (11_mult2): Likewise.
22474         (11_mult3): Likewise.
22475         (11_mult4): Likewise.
22476         (11_mult5): Likewise.
22477         (11_mult6): Likewise.
22478         (11_mult7): Likewise.
22479         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
22480         (cortex_a8_mla): Likewise.
22481         (cortex_a8_mull): Likewise.
22482         (cortex_a8_smulwy): Likewise.
22483         (cortex_a8_smlald): Likewise.
22484         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
22485         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
22486         (cortex_r4_mul_3): Likewise.
22487         (cortex_r4_mla_4): Likewise.
22488         (cortex_r4_mla_3): Likewise.
22489         (cortex_r4_smlald): Likewise.
22490         (cortex_r4_mull): Likewise.
22491         (cortex_r4_sdiv): Likewise.
22492         (cortex_r4_udiv): Likewise.
22493         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
22494         (cortex_a7_idiv): Likewise.
22495         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
22496         (9_mult2): Likewise.
22497         (9_mult3): Likewise.
22498         (9_mult4): Likewise.
22499         (9_mult5): Likewise.
22500         (9_mult6): Likewise.
22501         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
22502         (cortex_a53_sdiv): Likewise.
22503         (cortex_a53_udiv): Likewise.
22504         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
22505         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
22506         (mp626_mult2): Likewise.
22507         (mp626_mult3): Likewise.
22508         (mp626_mult4): Likewise.
22509         * config/arm/fa526.md (526_mult1): Update attribute change.
22510         (526_mult2): Likewise.
22511         * config/arm/arm-generic.md (mult): Update attribute change.
22512         (mult_ldsched_strongarm): Likewise.
22513         (mult_ldsched): Likewise.
22514         (multi_cycle): Likewise.
22515         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
22516         * config/arm/fa606te.md (606te_mult1): Update attribute change.
22517         (606te_mult2): Likewise.
22518         (606te_mult3): Likewise.
22519         (606te_mult4): Likewise.
22520         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
22521         (cortex_a9_mac16): Likewise.
22522         (cortex_a9_multiply): Likewise.
22523         (cortex_a9_mac): Likewise.
22524         (cortex_a9_multiply_long): Likewise.
22525         * config/arm/fa626te.md (626te_mult1): Update attribute change.
22526         (626te_mult2): Likewise.
22527         (626te_mult3): Likewise.
22528         (626te_mult4): Likewise.
22530 2013-06-18  Richard Biener  <rguenther@suse.de>
22532         PR lto/57334
22533         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
22535 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22537         PR target/57609
22538         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22539         with next_active_insn.
22541 2013-06-18  Alan Modra  <amodra@gmail.com>
22543         * config/rs6000/rs6000.h (enum data_align): New.
22544         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
22545         (DATA_ABI_ALIGNMENT): Define.
22546         (CONSTANT_ALIGNMENT): Correct comment.
22547         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
22548         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
22550 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
22552         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
22553         ATTRIBUTE_UNUSED marking.
22555 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
22557         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
22558         alternative and update.
22559         (aarch64_dup_lanedi): Delete.
22560         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
22561         * config/aarch64/aarch64-simd-builtins.def: Update.
22563 2013-06-17  Richard Biener  <rguenther@suse.de>
22565         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
22566         (lto_input_scc): Declare.
22567         (lto_input_tree_1): Likewise.
22568         (struct lto_stats_d): Add num_tree_bodies_output and
22569         num_pickle_refs_output.
22570         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
22571         (lto_read_tree_1): Split out from ...
22572         (lto_read_tree): ... this.
22573         (lto_input_scc): New function.
22574         (lto_input_tree_1): Split out from ...
22575         (lto_input_tree): ... this.  Handle LTO_tree_scc.
22576         (lto_data_in_create): Create the streamer cache without hashes.
22577         * lto-streamer-out.c (create_output_block): Create the streamer
22578         cache with hashes when not doing WPA.
22579         (lto_write_tree_1): Split out from ...
22580         (lto_write_tree): ... this.
22581         (get_symbol_initial_value): New function.
22582         (lto_output_tree_1): Split out from ...
22583         (lto_output_tree): ... this.  Write trees as series of SCCs
22584         using a DFS walk via DFS_write_tree.
22585         (struct sccs, struct scc_entry): New types.
22586         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
22587         (DFS_write_tree_body): New function.
22588         (DFS_write_tree): Likewise.
22589         (hash_tree): Likewise.
22590         (scc_entry_compare): Likewise.
22591         (hash_scc): Likewise.
22592         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
22593         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
22594         TREE_CHAIN as regular reference.
22595         (streamer_read_integer_cst): Remove.
22596         (streamer_get_pickled_tree): Adjust.
22597         * tree-streamer-out.c (streamer_write_chain): Disable streaming
22598         of DECL_EXTERNALs in BLOCK_VARS for now.
22599         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
22600         reference.
22601         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
22602         Add hash value argument and record that if hashes are recorded
22603         in the cache.
22604         (streamer_tree_cache_insert_1): Adjust.
22605         (streamer_tree_cache_insert): Likewise.
22606         (streamer_tree_cache_insert_at): Rename to ...
22607         (streamer_tree_cache_replace_tree): ... this and adjust.
22608         (streamer_tree_cache_append): Adjust.
22609         (record_common_node): Likewise.
22610         (streamer_tree_cache_create): Add argument whether to
22611         record hash values together with trees.
22612         (streamer_tree_cache_delete): Adjust.
22613         * tree-streamer.h (struct streamer_tree_cache_d): Add
22614         vector of hashes.
22615         (streamer_read_integer_cst): Remove.
22616         (streamer_tree_cache_insert): Adjust.
22617         (streamer_tree_cache_append): Likewise.
22618         (streamer_tree_cache_insert_at): Rename to ...
22619         (streamer_tree_cache_replace_tree): ... this and adjust.
22620         (streamer_tree_cache_create): Add argument whether to record hashes.
22621         (streamer_tree_cache_get): Rename to ...
22622         (streamer_tree_cache_get_tree): ... this.
22623         (streamer_tree_cache_get_hash): New function.
22624         * tree.c (cache_integer_cst): New function.
22625         * tree.h (cache_integer_cst): Declare.
22626         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
22627         * lto-symtab.c (lto_varpool_replace_node): Only release
22628         DECL_INITIAL of non-prevailing decls.
22629         * varpool.c (varpool_remove_initializer): Do not release
22630         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
22632 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
22634         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
22635         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
22636         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
22637         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
22638         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
22639         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
22640         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
22641         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
22642         instead of TARGET_64BIT.
22643         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
22644         Require ISA_HAS_<D>DIV.
22646 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
22648         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
22649         (mips*-*-linux*): Move default with_llsc setting to where other
22650         defaults are set.
22651         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
22652         with_arch block.
22653         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
22654         Likewise.  Remove default with_tune setting.  Move default float
22655         setting to its own block.  Handle with_llsc in the same block as above.
22657 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
22659         PR rtl-optimization/57425
22660         PR rtl-optimization/57569
22661         * alias.c (write_dependence_p): Add new parameters mem_mode,
22662         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
22663         Changed all callers.
22664         (canon_anti_dependence): New function.
22665         * cse.c (check_dependence): Use canon_anti_dependence.
22666         * cselib.c (cselib_invalidate_mem): Likewise.
22667         * rtl.h (canon_anti_dependence): Declare.
22669 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
22671         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
22672         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
22673         ".set mips3" for 64-bit targets.
22675 2013-06-15  Dehao Chen  <dehao@google.com>
22677         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
22678         * gimple-low.c (gimple_check_call_matching_types): Likewise.
22679         (gimple_check_call_args): Likewise.
22680         * value-prof.c (check_ic_target): Likewise.
22681         * ipa-inline.c (early_inliner): Likewise.
22682         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
22683         * cgraph.c (cgraph_create_edge_1): Likewise.
22684         (cgraph_make_edge_direct): Likewise.
22686 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22688         PR target/57615
22689         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
22690         rs6000_output_move_128bit to handle emitting quad memory
22691         operations.  Set attribute length to 8 bytes.
22693 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
22695         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
22696         New pattern.
22697         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
22698         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
22699         (aarch64_<su>mlsl<mode>): Likewise.
22701 2013-06-14  Mike Stump  <mikestump@comcast.net>
22703         * Makefile.in (TARGET_H): Add insn-codes.h.
22705 2013-06-14  Alan Modra  <amodra@gmail.com>
22707         PR middle-end/57134
22708         PR middle-end/57586
22709         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
22710         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
22711         bitfield expansion when EXPAND_MEMORY.
22712         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
22714 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
22716         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
22717         test for clearing quad memory on 32-bit later.
22719 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
22721         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
22722         (fold_negate_expr): Likewise.
22723         (fold_real_zero_addition_p): Handle vectors.
22724         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
22726 2013-06-14  Alan Modra  <amodra@gmail.com>
22728         * varasm.c (force_const_mem): Revert 2013-06-07 change.
22730 2013-06-13  Jan Hubicka  <jh@suse.cz>
22732         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
22733         Local comdats are not externally visible.
22734         * symtab.c (dump_symtab_base): Dump externally visible.
22735         (verify_symtab_base): Verify back links in the symtab hash.
22737 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
22739         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
22740         CONVERT_EXPR as equal nodes.
22742 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
22744         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
22746 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
22748         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
22749         Generalize to complex and vector.
22750         * tree.c (build_all_ones_cst): New function.
22751         * tree.h (build_all_ones_cst): Declare it.
22753 2013-06-13  Alan Modra  <amodra@gmail.com>
22755         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
22756         * config/rs6000/rs6000.md (signbittf2): New insn.
22757         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
22758         (abstf2_internal, cmptf_internal2): Likewise.
22759         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
22761 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22762             Pat Haugen  <pthaugen@us.ibm.com>
22763             Peter Bergner  <bergner@vnet.ibm.com>
22765         * config/rs6000/rs6000.c (emit_load_locked): Add support for
22766         power8 byte, half-word, and quad-word atomic instructions.
22767         (emit_store_conditional): Likewise.
22768         (rs6000_expand_atomic_compare_and_swap): Likewise.
22769         (rs6000_expand_atomic_op): Likewise.
22771         * config/rs6000/sync.md (larx): Add new modes for power8.
22772         (stcx): Likewise.
22773         (AINT): New mode iterator to include TImode as well as normal
22774         integer modes on power8.
22775         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
22776         that VSX registers are not considered.  Use AINT mode iterator
22777         instead of INT1 to allow inclusion of quad word atomic operations
22778         on power8.
22779         (load_locked<mode>): Likewise.
22780         (store_conditional<mode>): Likewise.
22781         (atomic_compare_and_swap<mode>): Likewise.
22782         (atomic_exchange<mode>): Likewise.
22783         (atomic_nand<mode>): Likewise.
22784         (atomic_fetch_<fetchop_name><mode>): Likewise.
22785         (atomic_nand_fetch<mode>): Likewise.
22786         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
22787         each type.
22788         (ATOMIC): On power8, add QImode, HImode modes.
22789         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
22790         modes that promote to SImode.
22791         (load_lockedti): Convert TImode arguments to PTImode, so that we
22792         get a guaranteed even/odd register pair.
22793         (load_lockedpti): Likewise.
22794         (store_conditionalti): Likewise.
22795         (store_conditionalpti): Likewise.
22797         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
22798         atomic load/store instructions.
22799         (HSI): Likewise.
22801 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
22803         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
22804         loads.
22805         (insn_count): New attribute, with most cases extracted from...
22806         (length): ...here.  Redefine most cases in terms of insn_count.
22807         (single_insn): Delete.
22808         (can_delay): Use insn_count to check for single instructions.
22809         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
22810         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
22811         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
22812         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
22813         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
22814         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
22815         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
22816         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
22817         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
22818         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
22819         rather than "length".
22820         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
22821         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
22822         Use "insn_count" rather than "length".
22823         * config/mips/mips-dsp.md
22824         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
22825         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
22826         length attributes.
22828 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
22830         PR tree-optimization/57361
22831         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
22833 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
22835         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
22836         to split.
22837         (aarch64_simd_combine<mode>): New instruction expansion.
22838         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
22839         function prototype.
22840         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
22841         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
22843 2013-06-12  Jan Hubicka  <jh@suse.cz>
22845         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
22846         decl has when in streaming stage.
22847         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
22848         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
22850 2013-06-12  Roland Stigge  <stigge@antcom.de>
22852         PR target/57578
22853         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
22855 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
22857         PR tree-optimization/57537
22858         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
22859         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
22861 2013-06-12  Richard Biener  <rguenther@suse.de>
22863         * data-streamer.h (streamer_write_char_stream): CSE
22864         obs->current_pointer.
22865         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
22866         streamer_write_char_stream manually and optimize the resulting loop.
22867         (streamer_write_hwi_stream): Likewise.
22869 2013-06-12  Jan Hubicka  <jh@suse.cz>
22871         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
22872         * cgraph.h (varpool_create_empty_node): Declare.
22873         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
22874         duplicated nodes.
22875         * symtab.c (symtab_unregister_node): Be lax about missin entries
22876         in node hash.
22877         (symtab_get_node): Update comment.
22878         * varpool.c (varpool_create_empty_node): Break out from ...
22879         (varpool_node_for_decl): ... here.
22880         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
22882 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
22884         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
22885         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
22886         part.  Use straight-line flow at the end.
22887         <COMPONENT_REF>: Remove superfluous else.
22888         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
22890 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
22892         PR target/56564
22893         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
22894         target hook even for !TREE_PUBLIC decls.  If no resolution info
22895         is available, return false for common and external decls.
22897 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22899         * config/rl78/constraints.md (U): New constraint.
22900         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
22901         valloc attribute.
22903 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
22905         PR target/57589
22906         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
22907         to allow returning address to AT_PLATFORM name.
22909 2013-06-11  Jan Hubicka  <jh@suse.cz>
22911         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
22912         * cgraph.h (symtab_node_base): Add weakref flag.
22913         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
22914         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
22915         (output_weakrefs): Use weakref flag.
22916         * fold-const.c (simple_operand_p): Handle WEAK.
22917         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
22918         * ipa.c (varpool_externally_visible_p): Drop weakref.
22919         (function_and_variable_visibility): Update comment; fix weakref
22920         sanity checks; do not clear DECL_WEAK on them.
22921         * lto-cgraph.c (lto_output_node): update.
22922         (lto_output_varpool_node): Update.
22923         (input_overwrite_node): Update.
22924         (input_node): Update.
22925         (input_varpool_node): Update.
22926         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
22927         (lto_symtab_merge_symbols): Add sanity check.
22928         (lto_symtab_prevailing_decl): Do not special case weakrefs.
22929         * passes.c (rest_of_decl_compilation): Set static flag, too.
22930         * symtab.c (dump_symtab_base): Dump weakref.
22931         (verify_symtab_base): Sanity check weakrefs.
22932         (symtab_make_decl_local): Remove duplicated code.
22933         (symtab_alias_ultimate_target): Simplify.
22934         * varpool.c (varpool_create_variable_alias): Set weakref flag.
22936 2013-06-11  Tom de Vries  <tom@codesourcery.com>
22938         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
22939         sequence_vect == NULL.
22941 2013-06-11  DJ Delorie  <dj@redhat.com>
22943         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
22944         (rl78_unwind_word_mode): New.
22946 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
22948         * final.c (debug_prefix_maps): Make static.
22950 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
22952         * function.c (initial_trampoline): Remove stray copy.
22954 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
22956         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
22958 2013-06-11  Martin Jambor  <mjambor@suse.cz>
22960         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
22961         within bounds at the beginning of the function.
22963 2013-06-11  Alan Modra  <amodra@gmail.com>
22965         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
22966         reporting.
22967         (get_named_section): Don't NULL !DECL_P decl.
22969 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
22971         * doc/invoke.texi (core-avx2): Document.
22972         (slm): Likewise.
22973         (atom): Updated with MOVBE.
22975 2013-06-11  Richard Biener  <rguenther@suse.de>
22977         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
22979 2013-06-11  Anton Blanchard  <anton@samba.org>
22981         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
22982         correct shift value in little-endian mode.
22984 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
22986         PR target/56564
22987         * varasm.c (get_variable_align): Move #endif to the right place.
22989 2013-06-10  Cary Coutant  <ccoutant@google.com>
22991         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
22992         for hash so that hash table traversal order is deterministic.
22994 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
22995             Pat Haugen  <pthaugen@us.ibm.com>
22996             Peter Bergner  <bergner@vnet.ibm.com>
22998         * config/rs6000/vector.md (GPR move splitter): Do not split moves
22999         of vectors in GPRS if they are direct moves or quad word load or
23000         store moves.
23002         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
23003         declaration.
23004         (direct_move_p): Likewise.
23005         (quad_load_store_p): Likewise.
23007         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
23008         classes into bins based on the physical register type.
23009         (reg_class_to_reg_type): Likewise.
23010         (IS_STD_REG_TYPE): Likewise.
23011         (IS_FP_VECT_REG_TYPE): Likewise.
23012         (reload_fpr_gpr): Arrays to determine what insn to use if we can
23013         use direct move instructions.
23014         (reload_gpr_vsx): Likewise.
23015         (reload_vsx_gpr): Likewise.
23016         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
23017         information that is a simplification of register classes.  Also
23018         precalculate direct move reload helpers.
23019         (direct_move_p): New function to return true if the operation can
23020         be done as a direct move instruciton.
23021         (quad_load_store_p): New function to return true if the operation
23022         is a quad memory operation.
23023         (rs6000_legitimize_address): If quad memory, only allow register
23024         indirect for TImode addresses.
23025         (rs6000_legitimate_address_p): Likewise.
23026         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
23027         (rs6000_reload_register_type): Likewise.
23028         (register_to_reg_type): Return register type.
23029         (rs6000_secondary_reload_simple_move): New helper function for
23030         secondary reload and secondary memory needed to identify anything
23031         that is a simple move, and does not need reloading.
23032         (rs6000_secondary_reload_direct_move): New helper function for
23033         secondary reload to identify cases that can be done with several
23034         instructions via the direct move instructions.
23035         (rs6000_secondary_reload_move): New helper function for secondary
23036         reload to identify moves between register types that can be done.
23037         (rs6000_secondary_reload): Add support for quad memory operations
23038         and for direct move.
23039         (rs6000_secondary_memory_needed): Likewise.
23040         (rs6000_debug_secondary_memory_needed): Change argument names.
23041         (rs6000_output_move_128bit): New function to return the move to
23042         use for 128-bit moves, including knowing about the various
23043         limitations of quad memory operations.
23045         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
23046         memory operations.  call rs6000_output_move_128bit for the actual
23047         instruciton(s) to generate.
23048         (vsx_movti_64bit): Likewise.
23050         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
23051         (UNSPEC_P8V_MTVSRWZ): Likewise.
23052         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
23053         (UNSPEC_P8V_MTVSRD): Likewise.
23054         (UNSPEC_P8V_XXPERMDI): Likewise.
23055         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
23056         (UNSPEC_FUSION_GPR): Likewise.
23057         (FMOVE128_GPR): New iterator for direct move.
23058         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
23059         (f32_sv): Likewise.
23060         (f32_dm): Likewise.
23061         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
23062         loads and direct move instructions.
23063         (zero_extendsidi2_lfiwzx): Likewise.
23064         (extendsidi2_lfiwax): Likewise.
23065         (extendsidi2_nocell): Likewise.
23066         (floatsi<mode>2_lfiwax): Likewise.
23067         (lfiwax): Likewise.
23068         (floatunssi<mode>2_lfiwzx): Likewise.
23069         (lfiwzx): Likewise.
23070         (fix_trunc<mode>_stfiwx): Likewise.
23071         (fixuns_trunc<mode>_stfiwx): Likewise.
23072         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
23073         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
23074         (parity<mode>2_cmpb): Set length/type attr.
23075         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
23076         for 'mr.' to fast_compare.
23077         (bpermd_<mode>): Change type attr to popcnt.
23078         (p8_fmrgow_<mode>): New insns for power8 direct move support.
23079         (p8_mtvsrwz_1): Likewise.
23080         (p8_mtvsrwz_2): Likewise.
23081         (reload_fpr_from_gpr<mode>): Likewise.
23082         (p8_mtvsrd_1): Likewise.
23083         (p8_mtvsrd_2): Likewise.
23084         (p8_xxpermdi_<mode>): Likewise.
23085         (reload_vsx_from_gpr<mode>): Likewise.
23086         (reload_vsx_from_gprsf): Likewise.
23087         (p8_mfvsrd_3_<mode>): LIkewise.
23088         (reload_gpr_from_vsx<mode>): Likewise.
23089         (reload_gpr_from_vsxsf): Likewise.
23090         (p8_mfvsrd_4_disf): Likewise.
23091         (multi-word GPR splits): Do not split direct moves or quad memory
23092         operations.
23094 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
23096         * tree-into-ssa.c (interesting_blocks): Make static.
23098 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
23100         PR target/56564
23101         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
23102         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
23103         Use DATA_ABI_ALIGNMENT for that case instead if defined.
23104         (get_variable_align): New function.
23105         (get_variable_section, emit_bss, emit_common,
23106         assemble_variable_contents, place_block_symbol): Use
23107         get_variable_align instead of DECL_ALIGN.
23108         (assemble_noswitch_variable): Add align argument, use it
23109         instead of DECL_ALIGN.
23110         (assemble_variable): Adjust caller.  Use get_variable_align
23111         instead of DECL_ALIGN.
23112         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
23113         caller.
23114         (DATA_ABI_ALIGNMENT): Define.
23115         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
23116         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
23117         opt is false, only return the psABI mandated alignment increase.
23118         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
23119         (DATA_ABI_ALIGNMENT): ... this.
23120         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
23121         (DATA_ABI_ALIGNMENT): ... this.
23122         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
23123         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
23124         (DATA_ABI_ALIGNMENT): ... this.
23125         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
23126         * doc/tm.texi: Regenerated.
23128 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
23130         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
23131         cmp_code to construct REG_EQUAL note.
23133 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
23135         PR target/57568
23136         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
23137         that operands[2] doesn't overlap with operands[0].
23139 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
23140             Jan Hubicka  <jh@suse.cz>
23142         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
23143         hack to mark symbols as used.
23145 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
23147         PR rtl-optimization/57559
23148         * lra-constraints.c (process_alt_operands): Don't discourage
23149         memory with known offset for offsetable memory constraint.
23150         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
23152 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
23154         * varasm.c (struct oc_local_state): Reorder fields.
23155         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
23156         and adjust accordingly.
23157         (output_constructor): Reorder initialization code and adjust call to
23158         output_constructor_bitfield.
23160 2013-06-07  Jan Hubicka  <jh@suse.cz>
23162         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
23164 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
23166         * tree-object-size.c (unknown): Make const.
23168 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23170         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
23171         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
23172         for last alternative in the cpu_facility attribute.
23174 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23176         PR target/56315
23177         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
23178         (xordi3): Change operand 2 constraint to arm_xordi_operand.
23179         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
23180         * config/arm/constraints.md (Dg): New constraint.
23181         * config/arm/neon.md (xordi3_neon): Remove.
23182         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
23183         * config/arm/predicates.md (arm_xordi_operand): New predicate.
23185 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23187         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
23188         Clean up alternatives.
23190 2013-06-07  Alan Modra  <amodra@gmail.com>
23192         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
23193         va_list_gpr_size.
23195 2013-06-07  Alan Modra  <amodra@gmail.com>
23197         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
23199 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23201         * config/arm/constraints.md (Df): New constraint.
23202         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
23203         Correct length attribute for last two alternatives.
23205 2013-06-07  Alan Modra  <amodra@gmail.com>
23207         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23208         override user -mfp-in-toc.
23209         (offsettable_ok_by_alignment): Consider just the current access
23210         rather than the whole object, unless BLKmode.  Handle
23211         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
23212         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
23213         for -mcmodel=medium.
23214         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
23215         override user -mfp-in-toc or -msum-in-toc.  Default to
23216         -mno-fp-in-toc for -mcmodel=medium.
23218 2013-06-06  DJ Delorie  <dj@redhat.com>
23220         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
23221         TARGET_VALID_POINTER_MODE.
23223 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23224             Pat Haugen  <pthaugen@us.ibm.com>
23225             Peter Bergner  <bergner@vnet.ibm.com>
23227         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23228         Document new power8 builtins.
23230         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
23231         condition code register, to allow 128-bit logical operations to be
23232         done in the VSX or GPR registers.
23233         (nor<mode>3): Use the canonical form for nor.
23234         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
23235         vclz*, and vpopcnt* vector instructions.
23236         (nand<mode>3): Likewise.
23237         (orc<mode>3): Likewise.
23238         (clz<mode>2): LIkewise.
23239         (popcount<mode>2): Likewise.
23241         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
23242         that only the GPRs are recognized.
23244         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23245         support for new power8 builtins.
23247         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
23248         builtin functions.
23249         (xscvdpspn): Likewise.
23250         (vclz): Likewise.
23251         (vclzb): Likewise.
23252         (vclzh): Likewise.
23253         (vclzw): Likewise.
23254         (vclzd): Likewise.
23255         (vpopcnt): Likewise.
23256         (vpopcntb): Likewise.
23257         (vpopcnth): Likewise.
23258         (vpopcntw): Likewise.
23259         (vpopcntd): Likewise.
23260         (vgbbd): Likewise.
23261         (vmrgew): Likewise.
23262         (vmrgow): Likewise.
23263         (eqv): Likewise.
23264         (eqv_v16qi3): Likewise.
23265         (eqv_v8hi3): Likewise.
23266         (eqv_v4si3): Likewise.
23267         (eqv_v2di3): Likewise.
23268         (eqv_v4sf3): Likewise.
23269         (eqv_v2df3): Likewise.
23270         (nand): Likewise.
23271         (nand_v16qi3): Likewise.
23272         (nand_v8hi3): Likewise.
23273         (nand_v4si3): Likewise.
23274         (nand_v2di3): Likewise.
23275         (nand_v4sf3): Likewise.
23276         (nand_v2df3): Likewise.
23277         (orc): Likewise.
23278         (orc_v16qi3): Likewise.
23279         (orc_v8hi3): Likewise.
23280         (orc_v4si3): Likewise.
23281         (orc_v2di3): Likewise.
23282         (orc_v4sf3): Likewise.
23283         (orc_v2df3): Likewise.
23285         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
23286         allow power8 quad mode in 64-bit.
23287         (rs6000_builtin_vectorized_function): Add support to vectorize
23288         ISA 2.07 count leading zeros, population count builtins.
23289         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
23290         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
23291         (builtin_function_type): Add vgbbd builtin function which takes an
23292         unsigned argument.
23293         (altivec_expand_vec_perm_const): Add support for new power8 merge
23294         instructions.
23296         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
23297         that does not include TImdoe for use with 32-bit.
23298         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
23299         instructions.
23300         (UNSPEC_VSX_CVDPSPN): Likewise.
23301         (vsx_xscvdpspn): Likewise.
23302         (vsx_xscvspdpn): Likewise.
23303         (vsx_xscvdpspn_scalar): Likewise.
23304         (vsx_xscvspdpn_directmove): Likewise.
23305         (vsx_and<mode>3): Split logical operations into 32-bit and
23306         64-bit. Add support to do logical operations on TImode as well as
23307         VSX vector types.  Allow logical operations to be done in either
23308         VSX registers or in general purpose registers in 64-bit mode.  Add
23309         splitters if GPRs were used. For AND, add clobber of CCmode to
23310         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
23311         encoding.
23312         (vsx_and<mode>3_32bit): Likewise.
23313         (vsx_and<mode>3_64bit): Likewise.
23314         (vsx_ior<mode>3): Likewise.
23315         (vsx_ior<mode>3_32bit): Likewise.
23316         (vsx_ior<mode>3_64bit): Likewise.
23317         (vsx_xor<mode>3): Likewise.
23318         (vsx_xor<mode>3_32bit): Likewise.
23319         (vsx_xor<mode>3_64bit): Likewise.
23320         (vsx_one_cmpl<mode>2): Likewise.
23321         (vsx_one_cmpl<mode>2_32bit): Likewise.
23322         (vsx_one_cmpl<mode>2_64bit): Likewise.
23323         (vsx_nor<mode>3): Likewise.
23324         (vsx_nor<mode>3_32bit): Likewise.
23325         (vsx_nor<mode>3_64bit): Likewise.
23326         (vsx_andc<mode>3): Likewise.
23327         (vsx_andc<mode>3_32bit): Likewise.
23328         (vsx_andc<mode>3_64bit): Likewise.
23329         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
23330         and xxlorc instructions.
23331         (vsx_eqv<mode>3_64bit): Likewise.
23332         (vsx_nand<mode>3_32bit): Likewise.
23333         (vsx_nand<mode>3_64bit): Likewise.
23334         (vsx_orc<mode>3_32bit): Likewise.
23335         (vsx_orc<mode>3_64bit): Likewise.
23337         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
23339         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
23340         instruction.
23341         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
23342         (p8_vmrgow): Likewise.
23343         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
23344         GPRs to be split under VSX.
23345         (p8v_clz<mode>2): Add power8 count leading zero support.
23346         (p8v_popcount<mode>2): Add power8 population count support.
23347         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
23348         support.
23350         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
23351         instruction.
23353         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
23354         builtin functions.
23355         (vec_nand): Likewise.
23356         (vec_vclz): Likewise.
23357         (vec_vclzb): Likewise.
23358         (vec_vclzd): Likewise.
23359         (vec_vclzh): Likewise.
23360         (vec_vclzw): Likewise.
23361         (vec_vgbbd): Likewise.
23362         (vec_vmrgew): Likewise.
23363         (vec_vmrgow): Likewise.
23364         (vec_vpopcnt): Likewise.
23365         (vec_vpopcntb): Likewise.
23366         (vec_vpopcntd): Likewise.
23367         (vec_vpopcnth): Likewise.
23368         (vec_vpopcntw): Likewise.
23370 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
23372         PR rtl-optimization/57468
23373         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
23374         spilled pseudos.
23376 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
23378         PR rtl-optimization/57459
23379         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
23380         type when setting live regs.
23382 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
23384         * config/s390/s390.opt (mlra): New option.
23385         * config/s390/s390.c (s390_decompose_address): Check displacement
23386         for all registers for LRA.
23387         (s390_secondary_reload): Don't used secondary reloads for LRA.
23388         (s390_lra_p): New function.
23389         (TARGET_LRA_P): Define.
23390         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
23391         of attribute cpu_facility to zarch for the last alternative.
23392         (*cmpmem_short): Ditto.
23394 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
23396         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
23397         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
23398         (arm_expand_prologue): Likewise.
23400 2013-06-06  Teresa Johnson  <tejohnson@google.com>
23402         PR c++/53743
23403         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
23404         as this is now done by redirect_edge_and_branch_force.
23405         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
23406         barriers, and fix interaction with splitting.
23407         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
23408         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
23409         reflect changes made in the routine.
23410         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
23411         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
23412         since this is called in cfglayout mode, and replace partition fixup
23413         with assert as that is now done by force_nonfallthru_and_redirect.
23414         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
23415         already be marked with region crossing note.
23416         (insert_section_boundary_note): Make non-static, gate on flag
23417         has_bb_partition, rewrite to also check for multiple partitions.
23418         (rest_of_handle_reorder_blocks): Remove call to
23419         insert_section_boundary_note, now done later during free_cfg.
23420         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
23421         * bb-reorder.h (insert_section_boundary_note): Declare.
23422         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
23423         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
23424         invoke insert_section_boundary_note.
23425         (try_redirect_by_replacing_jump): Remove unnecessary
23426         check for region crossing note.
23427         (fixup_partition_crossing): New function.
23428         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
23429         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
23430         in non-cfglayout mode.
23431         (force_nonfallthru_and_redirect): Fixup partition boundaries,
23432         remove old code that tried to do this. Emit barrier correctly
23433         when we are in cfglayout mode.
23434         (last_bb_in_partition): New function.
23435         (rtl_split_edge): Correctly fixup partition boundaries.
23436         (commit_one_edge_insertion): Remove old code that tried to
23437         fixup region crossing edge since this is now handled in
23438         split_block, and set up insertion point correctly since
23439         block may now end in a jump.
23440         (verify_hot_cold_block_grouping): Guard against checking when not in
23441         linearized RTL mode.
23442         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
23443         notes.
23444         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
23445         rtl_verify_flow_info, so not called in cfglayout mode.
23446         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
23447         (fixup_reorder_chain): Remove old code that attempted to fixup region
23448         crossing note as this is now handled in force_nonfallthru_and_redirect.
23449         (duplicate_insn_chain): Don't duplicate switch section notes.
23450         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
23451         note.
23452         * basic-block.h (emit_barrier_after_bb): Declare.
23454 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23456         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
23457         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
23458         arm_usatsihi): Adjust alternatives for arm_restrict_it.
23460 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23462         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
23463         where appropriate.
23464         * config/arm/ldmstm.md: Regenerate.
23466 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23468         * config/arm/sync.md (atomic_loaddi_1):
23469         Disable predication for arm_restrict_it.
23470         (arm_load_exclusive<mode>): Likewise.
23471         (arm_load_exclusivesi): Likewise.
23472         (arm_load_exclusivedi): Likewise.
23473         (arm_load_acquire_exclusive<mode>): Likewise.
23474         (arm_load_acquire_exclusivesi): Likewise.
23475         (arm_load_acquire_exclusivedi): Likewise.
23476         (arm_store_exclusive<mode>): Likewise.
23477         (arm_store_exclusive<mode>): Likewise.
23478         (arm_store_release_exclusivedi): Likewise.
23479         (arm_store_release_exclusive<mode>): Likewise.
23481 2013-06-06  Richard Biener  <rguenther@suse.de>
23483         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
23484         after LTO_null.
23485         (lto_tag_is_tree_code_p): Adjust.
23486         (lto_tag_is_gimple_code_p): Likewise.
23487         (lto_gimple_code_to_tag): Likewise.
23488         (lto_tag_to_gimple_code): Likewise.
23489         (lto_tree_code_to_tag): Likewise.
23490         (lto_tag_to_tree_code): Likewise.
23491         * data-streamer.h (streamer_write_hwi_in_range): Use
23492         uhwi streaming to stream the normalized range.
23493         (streamer_read_hwi_in_range): Likewise.
23495 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23497         * config/arm/arm.md (enabled_for_depr_it): New attribute.
23498         (predicable_short_it): Likewise.
23499         (predicated): Likewise.
23500         (enabled): Handle above.
23501         (define_cond_exec): Set predicated attribute to yes.
23503 2013-06-05  Mike Stump  <mikestump@comcast.net>
23505         * gdbinit.in (__FUNCTION__): Add.
23507 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
23509         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
23510         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
23512 2013-06-05  Jan Hubicka  <jh@suse.cz>
23514         * varasm.c (mark_decl_referenced): Revert the removal until targets
23515         are fixed.
23517 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
23519         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
23520         instead of mark_decl_referenced.
23522 2013-06-05  Jan Hubicka  <jh@suse.cz>
23524         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
23525         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
23526         and symtab_used_from_object_file_p.
23527         (cgraph_make_node_local_1): Clear forced_by_abi.
23528         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
23529         * cgraph.h (symtab_node_base): Add forced_by_abi.
23530         (decide_is_variable_needed): Remove.
23531         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
23532         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
23533         (decide_is_symbol_needed): ... this one; handle symbols in general;
23534         always analyze virtuals; honnor forced_by_abi.
23535         (cgraph_finalize_function): Update.
23536         (varpool_finalize_decl): Update.
23537         (symbol_defined_and_needed): Remove.
23538         (analyze_functions): Update.
23539         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
23540         output_refs, input_overwrite_node): Handle forced_by_abi.
23541         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
23542         (address_taken_from_non_vtable_p): ... this one.
23543         (comdat_can_be_unshared_p_1): New function.
23544         (cgraph_comdat_can_be_unshared_p): Rename to ...
23545         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
23546         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
23547         (function_and_variable_visibility): Clear forced_by_abi as needed.
23548         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
23549         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
23550         * symtab.c (dump_symtab_base): Dump forced_by_abi.
23551         * varpool.c (decide_is_variable_needed): Remove.
23553 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23555         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
23556         (arm_option_override): Override arm_restrict_it where appropriate.
23557         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
23558         * config/arm/arm.opt (mrestrict-it): New command-line option.
23559         * doc/invoke.texi: Document -mrestrict-it.
23561 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
23563         * tsan.c (tsan_atomic_table): Make const.
23565 2013-06-05  Richard Biener  <rguenther@suse.de>
23567         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
23568         index associated with the tree we are supposed to replace.
23569         * tree-streamer-out.c (pack_ts_base_value_fields): Output
23570         TREE_ASM_WRITTEN as zero for everything but SSA names.
23572 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
23574         * tree-ssa-structalias.c (call_stmt_vars): Make static.
23576 2013-06-04  Jan Hubicka  <jh@suse.cz>
23578         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
23579         (input_node, input_varpool_node): Handle correctly external same
23580         body aliases.
23581         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
23582         nodes at ltrans stage.
23584 2013-06-04  Jan Hubicka  <jh@suse.cz>
23586         * ipa-inline.c (update_caller_keys): Fix availability test.
23587         (update_callee_keys): Likewise.
23588         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
23589         to follow ELF standard.
23591 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
23593         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
23594         (mips64r5900el-*-elf*): New configurations.
23595         * config/mips/mips-cpus.def (r5900): New processor.
23596         * config/mips/mips-tables.opt: Regenerate.
23597         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
23598         (mips_issue_rate): Handle PROCESSOR_R5900.
23599         (mips_reorg_process_insns): Force reorder mode for the R5900.
23600         * config/mips/mips.h (TARGET_MIPS5900): Define.
23601         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
23602         TARGET_MIPS5900.
23603         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
23604         TARGET_MIPS5900.
23605         * config/mips/mips.md (processor): Add r5900.
23606         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
23608 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23610         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
23611         into function to generate MOVI instruction.
23612         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
23613         (aarch64_preferred_simd_mode): Turn into wrapper.
23614         (aarch64_output_scalar_simd_mov_immediate): New function.
23615         * config/aarch64/aarch64-protos.h: Add prototype for above.
23617 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23619         * config/aarch64/aarch64.c (simd_immediate_info): Remove
23620         element_char member.
23621         (sizetochar): Return signed char.
23622         (aarch64_simd_valid_immediate): Remove elchar and other
23623         unnecessary variables.
23624         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
23625         Calculate element_char as required.
23626         * config/aarch64/aarch64-protos.h: Update and move prototype
23627         for aarch64_output_simd_mov_immediate.
23628         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
23629         Update arguments.
23631 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23633         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
23634         information completed by aarch64_simd_valid_immediate.
23635         (aarch64_legitimate_constant_p): Update arguments.
23636         (aarch64_simd_valid_immediate): Work with struct rather than many
23637         pointers.
23638         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
23639         (aarch64_simd_make_constant): Update arguments.
23640         (aarch64_output_simd_mov_immediate): Work with struct rather than
23641         many pointers.  Output immediate directly rather than as operand.
23642         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23643         Update prototype.
23644         * config/aarch64/constraints.md (Dn): Update arguments.
23646 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23648         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
23649         longer static.
23650         (aarch64_simd_immediate_valid_for_move): Remove.
23651         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
23652         (aarch64_simd_make_constant): Update call.
23653         (aarch64_output_simd_mov_immediate): Update call.
23654         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23655         Add prototype.
23656         * config/aarch64/constraints.md (Dn): Update call.
23658 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23660         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
23661         return type to bool for prototype.
23662         (aarch64_legitimate_constant_p): Check for true instead of not -1.
23663         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
23664         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
23666 2013-06-04  Catherine Moore  <clm@codesourcery.com>
23668         * config/mips/mips.opt (meva): New.
23669         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
23670         (ASM_SPEC): Handle -meva.
23671         * doc/invoke.texi (meva):  Document.
23673 2013-06-04  Alan Modra  <amodra@gmail.com>
23675         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
23676         constant output.
23678 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23680         * rtl.def: Add extra fourth optional field to define_cond_exec.
23681         * gensupport.c (process_one_cond_exec): Process attributes from
23682         define_cond_exec.
23683         * doc/md.texi: Document fourth field in define_cond_exec.
23685 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
23687         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
23688         out the processing order as in store_bit_field_1.
23690 2013-06-04  Jan Hubicka  <jh@suse.cz>
23692         PR middle-end/57500
23693         * cgraphunit.c (cgraph_process_same_body_aliases): Create
23694         non-VAR_DECL node if it does not exist yet.
23696 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
23698         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
23699         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
23700         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
23701         target_cpu_default setting.
23703 2013-06-03  Teresa Johnson  <tejohnson@google.com>
23705         * dumpfile.c (opt_info_switch_p): Change -fopt-info
23706         default to -fopt-info=optimized instead of all.
23707         * doc/invoke.texi: Ditto.
23708         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
23709         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
23710         (execute_vect_slp): Emit BB vectorization success under
23711         MSG_OPTIMIZED_LOCATIONS.
23712         * tree-vect-slp.c (vect_slp_transform_bb): Change
23713         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
23714         * tree-vect-loop.c (vect_transform_loop): Ditto.
23716 2013-06-03  Jason Merrill  <jason@redhat.com>
23718         PR c++/57415
23719         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23720         Use TARGET_EXPR for C++.
23722 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
23724         PR rtl-optimization/57268
23725         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
23726         if DEBUG_INSN_P (insn).
23728         Reapply
23729         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
23731         PR rtl-optimization/57268
23732         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23733         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23735 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23737         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
23738         (ix86_avoid_lea_for_addr): Likewise.
23739         (exact_dependency_1): Likewise.
23740         (ix86_adjust_cost): Likewise.
23741         (swap_top_of_ready_list): Fix formatting and !reload_completed check
23742         removed.
23743         (do_reorder_for_imul): Fix typo, formatting and
23744         !reload_completed check removed.
23745         (ix86_sched_reorder): Fix typo and formatting.
23746         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
23747         list.
23749 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
23751         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
23753 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
23755         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
23756         <STRING_CST>: Likewise.
23757         <VECTOR_CST>: Likewise.
23759 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
23760             Mikael Morin  <mikael@gcc.gnu.org>
23762         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
23763         * config.in: Regenerated.
23764         * configure: Regenerated.
23766 2013-06-01  Jan Hubicka  <jh@suse.cz>
23768         PR middle-end/57366
23769         * cgraphunit.c (compile): When weakref is not supported,
23770         set up transparent aliases before final output pass.
23771         * varasm.c (assemble_alias): Do not try to do it here.
23773 2013-06-01  Jan Hubicka  <jh@suse.cz>
23775         PR middle-end/57467
23776         * passes.c (for_per_function): Skip unanalyzed functions.
23778 2013-06-01  Jan Hubicka  <jh@suse.cz>
23780         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
23781         (lto_symtab_merge_symbols_1): ... this one.
23782         (lto_symtab_merge_cgraph_nodes): Rename to ...
23783         (lto_symtab_merge_symbols): ... this one; simplify.
23784         * cgraph.c (same_body_aliases_done): Rename to ...
23785         (cpp_implicit_aliases_done): ... this one.
23786         (cgraph_create_function_alias): Update.
23787         (cgraph_same_body_alias): Update.
23788         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
23789         (verify_edge_corresponds_to_fndecl): Simplify.
23790         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
23791         (cgraph_node): Remove same_body_alias.
23792         (varpool_node): Remove alias_of and extra_name_alias.
23793         (same_body_aliases_done): Rename to ..
23794         (cpp_implicit_aliases_done): ... this one.
23795         (symtab_alias_ultimate_target): Add default parameter.
23796         (symtab_resolve_alias): New function.
23797         (fixup_same_cpp_alias_visibility): Declare.
23798         (cgraph_function_node): Add default parameter.
23799         (cgraph_node_asm_name): Likewise.
23800         (cgraph_function_or_thunk_node): Add default parameter; do
23801         not ICE when it is NULL.
23802         (varpool_variable_node): Likewise.
23803         * tree-emutls.c (create_emultls_var): Update.
23804         (ipa_lower_emutls): Update.
23805         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
23806         (cgraph_reset_node): Reset alias info.
23807         (cgraph_finalize_function): Update.
23808         (fixup_same_cpp_alias_visibility): Move to symtab.c.
23809         (analyze_function): Simplify.
23810         (cgraph_process_same_body_aliases): Simplify.
23811         (analyze_functions): Fixup same body aliases.
23812         (handle_alias_pairs): Simplify.
23813         (assemble_thunk): Update.
23814         (assemble_thunks_and_aliases): Update.
23815         (output_weakrefs): Rewrite.
23816         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
23817         (lto_output_varpool_node): Likewise.
23818         (compute_ltrans_boundary): Remve assert.
23819         (get_alias_symbol): New functoin.
23820         (input_node): Rewrite alias handling.
23821         (input_varpool_node): Likewise.
23822         * ipa-pure-const.c (propagate_pure_const): Fix formating.
23823         * ipa.c (process_references): Handle weakrefs correctly.
23824         (symtab_remove_unreachable_nodes): Likewise.
23825         * trans-mem.c (get_cg_data): Update.
23826         (ipa_tm_create_version_alias): Update.
23827         (ipa_tm_execute): Update.
23828         * symtab.c (dump_symtab_base): Dump aliases.
23829         (verify_symtab_base): Verify aliases.
23830         (symtab_node_availability): New function.
23831         (symtab_alias_ultimate_target): Simplify.
23832         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
23833         handle all the fixup cases.
23834         (symtab_resolve_alias): New function.
23835         * passes.c (ipa_write_summaries): Handle weakrefs.
23836         * varpool.c (varpool_analyze_node): Simplify.
23837         (assemble_aliases): Update.
23838         (varpool_create_variable_alias): Simplify.
23839         (varpool_extra_name_alias): Simplify.
23840         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
23841         (lto_symtab_merge_symbols): ... this one.
23843 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
23845         Revert
23846         PR rtl-optimization/57268
23847         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23848         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23850 2013-06-01  Tobias Burnus  <burnus@net-b.de>
23852         Partially reverted:
23853         2013-05-31  Tobias Burnus  <burnus@net-b.de>
23855         PR middle-end/57073
23856         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
23857         further up.
23859 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
23861         PR rtl-optimization/57268
23862         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23863         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23865 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23867         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
23868         unordered comparison operators when -fno-trapping-math is in effect
23869         on the e500.
23870         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
23871         and implement unordered comparison operators properly on the e500.
23873 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23875         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
23876         for constant scalar integers.
23877         (simplify_relational_operation_1): Likewise.
23879 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
23881         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
23882         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
23883         Fix comment.
23885 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23886             Igor Zamyatin  <igor.zamyatin@intel.com>
23888         Silvermont (SLM) architecture performance tuning.
23889         * config/i386/i386.h (enum ix86_tune_indices): Add
23890         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
23891         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
23893         * config/i386/i386.c (initial_ix86_tune_features)
23894         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
23895         (ix86_lea_outperforms): Handle Silvermont tuning.
23896         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
23897         call.
23898         (ix86_use_lea_for_mov): Likewise.
23899         (ix86_avoid_lea_for_addr): Likewise.
23900         (ix86_lea_for_add_ok): Likewise.
23901         (exact_dependency_1): New function.
23902         (exact_store_load_dependency): Likewise.
23903         (ix86_adjust_cost): Handle Silvermont tuning.
23904         (do_reoder_for_imul): Likewise.
23905         (swap_top_of_ready_list): New function.
23906         (ix86_sched_reorder): Changed to handle Silvermont tuning.
23908         * config/i386/i386.md (peepholes that split memory operand in fp
23909         converts): New.
23911 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23913         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23914         Remove un-necessary braces.
23916 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23918         * config/aarch64/aarch64.c (aarch64_classify_symbol):
23919         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
23921 2013-05-31  Tobias Burnus  <burnus@net-b.de>
23923         PR middle-end/57073
23924         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
23926 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23928         PR target/56315
23929         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
23930         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
23931         * config/arm/neon.md (iordi3_neon): Remove.
23932         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
23933         * config/arm/predicates.md (imm_for_neon_logic_operand):
23934         Move to earlier in the file.
23935         (neon_logic_op2): Likewise.
23936         (arm_iordi_operand_neon): New predicate.
23938 2013-05-31  Richard Biener  <rguenther@suse.de>
23940         PR tree-optimization/57478
23941         PR tree-optimization/57453
23942         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
23943         are life as well.
23945 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23947         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
23948         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
23950 2013-05-30  Tobias Burnus  <burnus@net-b.de>
23951             Thomas Koenig  <tkoenig@gcc.gnu.org>
23953         PR middle-end/57073
23954         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
23955         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
23957 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
23959         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
23961 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
23963         * target.def (register_usage_leveling_p): New hook.
23964         * targhooks.c (default_register_usage_leveling_p): New.
23965         * targhooks.h (default_register_usage_leveling_p): New prototype.
23966         * lra-assigns.c (register_usage_leveling_p): Use the hook.
23967         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
23968         * doc/tm.texi: Update.
23969         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
23971 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
23973         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
23974         (*insv_reg<mode>): New define_insn.
23976 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
23978         PR rtl-optimization/57439
23979         * postreload.c (move2add_valid_value_p): Check that we have
23980         a zero subreg_regno_offset when accessing the register in
23981         the requested mode.
23983 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23984             Igor Zamyatin  <igor.zamyatin@intel.com>
23986         Silvermont (SLM) architecture pipeline model, tuning and
23987         insn selection.
23988         * config.gcc: Add slm config options and target.
23990         * config/i386/slm.md: New.
23992         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
23994         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
23995         PROCESSOR_SLM.
23996         (ix86_target_macros_internal): Likewise.
23998         * config/i386/i386.c (slm_cost): New cost.
23999         (m_SLM): New macro flag.
24000         (initial_ix86_tune_features): Set m_SLM.
24001         (x86_accumulate_outgoing_args): Likewise.
24002         (x86_arch_always_fancy_math_387): Likewise.
24003         (processor_target_table): Add slm cost.
24004         (cpu_names): Add slm cpu name.
24005         (x86_option_override_internal): Set SLM ISA.
24006         (ix86_issue_rate): New case PROCESSOR_SLM.
24007         (ia32_multipass_dfa_lookahead): Likewise.
24008         (fold_builtin_cpu): Add slm.
24010         * config/i386/i386.h (TARGET_SLM): New target macro.
24011         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
24012         (processor_type): Add PROCESSOR_SLM.
24014         * config/i386/i386.md (cpu): Add new value "slm".
24015         (slm.md): Include slm.md.
24017 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
24018             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24020         * config/arm/arm-protos.h: Add and update function protos.
24021         * config/arm/arm.c (use_simple_return_p): New added.
24022         (thumb2_expand_return): Check simple_return flag.
24023         * config/arm/arm.md: Add simple_return and conditional simple_return.
24024         * config/arm/iterators.md: Add iterator for return and simple_return.
24026 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24028         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
24029         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
24030         (arm_emit_vfp_multi_reg_pop): Likewise.
24031         (thumb2_emit_ldrd_pop): Likewise.
24032         (arm_expand_epilogue): Add misc REG_CFA notes.
24033         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
24035 2013-05-29  Lawrence Crowl  <crowl@google.com>
24037         * config/arm/t-arm: Update for below.
24039         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
24040         Change type to hash_table.  Update dependent calls and types.
24042         * config/i386/t-cygming: Update for below.
24044         * config/i386/t-interix: Update for below.
24046         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
24047         Change type to hash_table.  Update dependent calls and types.
24048         (i386_find_on_wrapper_list::wrappers): Likewise.
24050         * config/ia64/t-ia64: Update for below.
24052         * config/ia64/ia64.c (bundle_state_table):
24053         Change type to hash_table.  Update dependent calls and types.
24055         * config/mips/mips.c (mips_reorg_process_insns::htab):
24056         Change type to hash_table.  Update dependent calls and types.
24058         * config/sol2.c (solaris_comdat_htab):
24059         Change type to hash_table.  Update dependent calls and types.
24061         * config/t-sol2: Update for above.
24063 2013-05-29  Teresa Johnson  <tejohnson@google.com>
24065         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
24066         functions are not yet marked as defined.
24068 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
24069             Pat Haugen  <pthaugen@us.ibm.com>
24070             Peter Bergner  <bergner@vnet.ibm.com>
24072         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
24073         instructions.
24074         (VEC_A): Likewise.
24075         (VEC_C): Likewise.
24076         (vrotl<mode>3): Likewise.
24077         (vashl<mode>3): Likewise.
24078         (vlshr<mode>3): Likewise.
24079         (vashr<mode>3): Likewise.
24081         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24082         support for power8 V2DI builtins.
24084         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
24085         power8 V2DI builtins.
24086         (vupkhsw): Likewise.
24087         (vupklsw): Likewise.
24088         (vaddudm): Likewise.
24089         (vminsd): Likewise.
24090         (vmaxsd): Likewise.
24091         (vminud): Likewise.
24092         (vmaxud): Likewise.
24093         (vpkudum): Likewise.
24094         (vpksdss): Likewise.
24095         (vpkudus): Likewise.
24096         (vpksdus): Likewise.
24097         (vrld): Likewise.
24098         (vsld): Likewise.
24099         (vsrd): Likewise.
24100         (vsrad): Likewise.
24101         (vsubudm): Likewise.
24102         (vcmpequd): Likewise.
24103         (vcmpgtsd): Likewise.
24104         (vcmpgtud): Likewise.
24105         (vcmpequd_p): Likewise.
24106         (vcmpgtsd_p): Likewise.
24107         (vcmpgtud_p): Likewise.
24108         (vupkhsw): Likewise.
24109         (vupklsw): Likewise.
24110         (vaddudm): Likewise.
24111         (vmaxsd): Likewise.
24112         (vmaxud): Likewise.
24113         (vminsd): Likewise.
24114         (vminud): Likewise.
24115         (vpksdss): Likewise.
24116         (vpksdus): Likewise.
24117         (vpkudum): Likewise.
24118         (vpkudus): Likewise.
24119         (vrld): Likewise.
24120         (vsld): Likewise.
24121         (vsrad): Likewise.
24122         (vsrd): Likewise.
24123         (vsubudm): Likewise.
24125         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24126         support for power8 V2DI instructions.
24128         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
24129         power8 V2DI instructions.  Combine pack and unpack insns to use an
24130         iterator for each mode.  Check whether a particular mode supports
24131         Altivec instructions instead of just checking TARGET_ALTIVEC.
24132         (UNSPEC_VPKUWUM): Likewise.
24133         (UNSPEC_VPKSHSS): Likewise.
24134         (UNSPEC_VPKSWSS): Likewise.
24135         (UNSPEC_VPKUHUS): Likewise.
24136         (UNSPEC_VPKSHUS): Likewise.
24137         (UNSPEC_VPKUWUS): Likewise.
24138         (UNSPEC_VPKSWUS): Likewise.
24139         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
24140         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
24141         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
24142         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
24143         (UNSPEC_VUPKHSB): Likewise.
24144         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
24145         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
24146         (UNSPEC_VUPKHSH): Likewise.
24147         (UNSPEC_VUPKLSB): Likewise.
24148         (UNSPEC_VUPKLSH): Likewise.
24149         (VI2): Likewise.
24150         (VI_char): Likewise.
24151         (VI_scalar): Likewise.
24152         (VI_unit): Likewise.
24153         (VP): Likewise.
24154         (VP_small): Likewise.
24155         (VP_small_lc): Likewise.
24156         (VU_char): Likewise.
24157         (add<mode>3): Likewise.
24158         (altivec_vaddcuw): Likewise.
24159         (altivec_vaddu<VI_char>s): Likewise.
24160         (altivec_vadds<VI_char>s): Likewise.
24161         (sub<mode>3): Likewise.
24162         (altivec_vsubcuw): Likewise.
24163         (altivec_vsubu<VI_char>s): Likewise.
24164         (altivec_vsubs<VI_char>s): Likewise.
24165         (altivec_vavgs<VI_char>): Likewise.
24166         (altivec_vcmpbfp): Likewise.
24167         (altivec_eq<mode>): Likewise.
24168         (altivec_gt<mode>): Likewise.
24169         (altivec_gtu<mode>): Likewise.
24170         (umax<mode>3): Likewise.
24171         (smax<mode>3): Likewise.
24172         (umin<mode>3): Likewise.
24173         (smin<mode>3): Likewise.
24174         (altivec_vpkuhum): Likewise.
24175         (altivec_vpkuwum): Likewise.
24176         (altivec_vpkshss): Likewise.
24177         (altivec_vpkswss): Likewise.
24178         (altivec_vpkuhus): Likewise.
24179         (altivec_vpkshus): Likewise.
24180         (altivec_vpkuwus): Likewise.
24181         (altivec_vpkswus): Likewise.
24182         (altivec_vpks<VI_char>ss): Likewise.
24183         (altivec_vpks<VI_char>us): Likewise.
24184         (altivec_vpku<VI_char>us): Likewise.
24185         (altivec_vpku<VI_char>um): Likewise.
24186         (altivec_vrl<VI_char>): Likewise.
24187         (altivec_vsl<VI_char>): Likewise.
24188         (altivec_vsr<VI_char>): Likewise.
24189         (altivec_vsra<VI_char>): Likewise.
24190         (altivec_vsldoi_<mode>): Likewise.
24191         (altivec_vupkhsb): Likewise.
24192         (altivec_vupkhs<VU_char>): Likewise.
24193         (altivec_vupkls<VU_char>): Likewise.
24194         (altivec_vupkhsh): Likewise.
24195         (altivec_vupklsb): Likewise.
24196         (altivec_vupklsh): Likewise.
24197         (altivec_vcmpequ<VI_char>_p): Likewise.
24198         (altivec_vcmpgts<VI_char>_p): Likewise.
24199         (altivec_vcmpgtu<VI_char>_p): Likewise.
24200         (abs<mode>2): Likewise.
24201         (vec_unpacks_hi_v16qi): Likewise.
24202         (vec_unpacks_hi_v8hi): Likewise.
24203         (vec_unpacks_lo_v16qi): Likewise.
24204         (vec_unpacks_hi_<VP_small_lc>): Likewise.
24205         (vec_unpacks_lo_v8hi): Likewise.
24206         (vec_unpacks_lo_<VP_small_lc>): Likewise.
24207         (vec_pack_trunc_v8h): Likewise.
24208         (vec_pack_trunc_v4si): Likewise.
24209         (vec_pack_trunc_<mode>): Likewise.
24211         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
24212         V2DI builtins.
24213         (vec_vmaxsd): Likewise.
24214         (vec_vmaxud): Likewise.
24215         (vec_vminsd): Likewise.
24216         (vec_vminud): Likewise.
24217         (vec_vpksdss): Likewise.
24218         (vec_vpksdus): Likewise.
24219         (vec_vpkudum): Likewise.
24220         (vec_vpkudus): Likewise.
24221         (vec_vrld): Likewise.
24222         (vec_vsld): Likewise.
24223         (vec_vsrad): Likewise.
24224         (vec_vsrd): Likewise.
24225         (vec_vsubudm): Likewise.
24226         (vec_vupkhsw): Likewise.
24227         (vec_vupklsw): Likewise.
24229 2013-05-29  Jan Hubicka  <jh@suse.cz>
24231         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
24232         flags; reorder rest of fields in more consistent way.
24233         (varpool_node): Remove analyzed, finalized and alias.
24234         (cgraph_ndoe): Likewise.
24235         (symtab_alias_ultimate_target): New function.
24236         (cgraph_function_node): Move offline.
24237         (cgraph_reset_node): Declare.
24238         (cgraph_comdat_can_be_unshared_p): Remove.
24239         (varpool_remove_initializer): Declare.
24240         (varpool_first_defined_variable, varpool_next_defined_variable
24241         cgraph_first_defined_function, cgraph_next_defined_function): Update.
24242         (cgraph_function_with_gimple_body_p): Update.
24243         (varpool_all_refs_explicit_p): Update.
24244         (symtab_alias_target): New function.
24245         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
24246         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
24247         (cgraph_function_or_thunk_node): Simplify using
24248         symtab_alias_ultimate_target.
24249         (varpool_variable_node): Likewise.
24250         * cgraph.c (cgraph_create_function_alias): Update.
24251         (cgraph_add_thunk): Update.
24252         (cgraph_remove_node): Update.
24253         (dump_cgraph_node): Do not dump removed flags.
24254         (cgraph_function_body_availability): Update.
24255         (cgraph_propagate_frequency): Update.
24256         (verify_cgraph_node): Check sanity of local flag.
24257         (cgraph_function_node): Move here from cgraph.h; revamp for
24258         cgraph_function_or_thunk_node.
24259         * lto-symtab.c (lto_varpool_replace_node): Update.
24260         (lto_symtab_resolve_can_prevail_p): Update.
24261         (lto_symtab_merge_cgraph_nodes): Update.
24262         * ipa-cp.c (determine_versionability, initialize_node_lattices,
24263         propagate_constants_accross_call, devirtualization_time_bonus,
24264         ipcp_propagate_stage): Update.
24265         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
24266         * ipa-inline-transform.c (clone_inlined_nodes,
24267         preserve_function_body_p): Update.
24268         * ipa-reference.c (propagate): Update.
24269         (write_node_summary_p): Update.
24270         * toplev.c (wrapup_global_declaration_2): Update.
24271         * cgraphunit.c (cgraph_analyze_function): Rename to ...
24272         (analyze_function) ... this one.
24273         (cgraph_process_new_functions): Update.
24274         (cgraph_reset_node): Export.
24275         (cgraph_finalize_function): Update.
24276         (cgraph_add_new_function): Update.
24277         (process_function_and_variable_attributes): Update.
24278         (varpool_finalize_decl): Update.
24279         (symbol_finalized): Remove.
24280         (symbol_finalized_and_needed): Rename to ...
24281         (symbol_defined_and_needed): ... update.
24282         (cgraph_analyze_functions): Update.
24283         (handle_alias_pairs): Update.
24284         (mark_functions_to_output): Update.
24285         (assemble_thunk): Update.
24286         (output_in_order): Update.
24287         (output_weakrefs): Update.
24288         (finalize_compilation_unit): Update.
24289         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
24290         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
24291         input_node, input_varpool_node): Update.
24292         * dbxout.c (dbxout_expand_expr): Update.
24293         * cgraphclones.c (cgraph_clone_node): Update.
24294         (cgraph_copy_node_for_versioning): Update.
24295         (cgraph_materialize_clone): Update.
24296         (cgraph_materialize_all_clones): Update.
24297         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
24298         propagate_pure_const, propagate_nothrow): Update.
24299         * lto-streamer-out.c (lto_output, write_symbol): Update.
24300         * ipa-utils.c (ipa_reverse_postorder): Update.
24301         * ipa-inline.c (can_inline_edge_p): Update.
24302         (update_caller_keys, ipa_inline): Update.
24303         * dwarf2out.c (reference_to_unused,
24304         premark_types_used_by_global_vars_helper): Update.
24305         * tree-eh.c (tree_could_trap_p): Update.
24306         * ipa-split.c (consider_split, execute_split_functions): Update.
24307         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24308         has_addr_references_p): Update; move ahead in file for better
24309         readability.
24310         (process_references): Simplify.
24311         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
24312         bodies are removed.
24313         (cgraph_comdat_can_be_unshared_p): Make static.
24314         (cgraph_externally_visible_p): Update.
24315         (varpool_externally_visible_p): Update.
24316         (function_and_variable_visibility): Update.
24317         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
24318         ipa_tm_mark_force_output_node): Update.
24319         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
24320         estimate_edge_devirt_benefit, inline_generate_summary,
24321         inline_write_summary): Update.
24322         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
24323         * ipa-prop.c (ipa_compute_jump_functions): Update.
24324         (ipa_print_node_params, ipa_prop_read_section,
24325         ipa_update_after_lto_read, read_replacements_section): Update.
24326         * varasm.c (mark_decl_referenced): Update.
24327         (assemble_alias, dump_tm_clone_pairs): Update.
24328         * tree-inline.c (copy_bb): Update.
24329         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
24330         Update.
24331         * symtab.c (dump_symtab_base): Print new flags.
24332         (verify_symtab_base): Verify new flags.
24333         (symtab_alias_ultimate_target): New function.
24334         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
24335         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
24336         Update.
24337         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
24338         Update.
24339         * i386.c (ix86_get_function_versions_dispatcher,
24340         ix86_generate_version_dispatcher_body): Update.
24341         (fold_builtin_cpu): Use varpool_add_new_variable.
24342         * varpool.c (varpool_remove_initializer): Break out from ...
24343         (varpool_remove_node): ... this one.
24344         (dump_varpool_node, varpool_node_for_asm,
24345         cgraph_variable_initializer_availability, varpool_analyze_node,
24346         varpool_assemble_decl, varpool_remove_unreferenced_decls,
24347         varpool_finalize_named_section_flags, varpool_create_variable_alias):
24348         Update.
24350 2013-05-29  Jan Hubicka  <jh@suse.cz>
24352         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
24354 2013-05-29  Easwaran Raman  <eraman@google.com>
24356         PR tree-optimization/57442
24357         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
24358         when control exits the main loop.
24360 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
24362         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
24363         and RX600.
24364         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
24365         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
24366         * rx/t-rx: Add rx100 under multi library matches option for nofpu
24367         option.
24369 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24371         PR tree-optimization/57441
24372         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
24373         Don't limit size of incr_vec to number of candidates.
24375 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
24377         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
24378         and mips16 directories.
24379         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
24380         (MULTILIB_DIRNAMES): Ditto.
24381         (MULTILIB_EXCEPTIONS): Add new exceptions.
24382         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
24383         (MULTILIB_DIRNAMES): Ditto.
24384         (MULTILIB_EXCEPTIONS): Add new exceptions.
24386 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24387             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24389         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
24390         SYMBOL_TINY_ABSOLUTE.
24391         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
24392         SYMBOL_TINY_ABSOLUTE.
24393         (aarch64_expand_mov_immediate): Likewise.
24394         (aarch64_classify_symbol): Likewise.
24395         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
24396         Permit SYMBOL_TINY_ABSOLUTE.
24397         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
24399 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24400             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24402         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
24403         Refactor if/switch.  Replace gcc_assert with if.
24405 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
24407         * config/i386/i386.c (initial_ix86_tune_features): Enable
24408         FP Reassociation for AMD bdver1 and bdver2.
24410 2013-05-29  Martin Jambor  <mjambor@suse.cz>
24412         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
24413         and IMAGPART_EXPR do not occur within other handled_components.
24415 2013-05-29  Richard Biener  <rguenther@suse.de>
24417         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
24418         access on whether the use is in the BB we currently try to
24419         vectorize.
24420         (vect_bb_vectorization_profitable_p): Pass the BB we currently
24421         vectorize to vect_bb_slp_scalar_cost.
24423 2013-05-29  Richard Biener  <rguenther@suse.de>
24425         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
24426         computing scalar cost offsetted by stmts that are kept live
24427         by scalar uses.
24428         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
24429         for computation of scalar cost.
24431 2013-05-28  Steve Ellcey  <sellcey@mips.com>
24433         * config/mips/mips-cpus.def (mips32r2): Change processor type.
24435 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
24437         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
24438         array notation built-in reduction functions.
24439         * doc/passes.texi (Passes): Added documentation about changes done
24440         for Cilk Plus.
24441         * doc/invoke.texi (C Dialect Options): Added documentation about
24442         the -fcilkplus flag.
24443         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
24444         (BUILTINS_DEF): Depend on cilkplus.def.
24445         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
24446         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
24447         * cilkplus.def: New file.
24449 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
24451         PR rtl-optimization/57439
24452         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
24454 2013-05-28  Easwaran Raman  <eraman@google.com>
24456         PR tree-optimization/57337
24457         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
24458         (find_insert_point): Correctly identify the insertion point
24459         when two statements with the same UID is compared.
24461 2013-05-28  Richard Biener  <rguenther@suse.de>
24463         PR tree-optimization/56787
24464         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
24465         from the list of data references.
24466         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
24467         clobbers.
24468         (vect_analyze_loop_operations): Likewise.
24469         (vect_transform_loop): Remove clobbers.
24471 2013-05-28  Martin Jambor  <mjambor@suse.cz>
24473         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
24474         and REALPART_EXPRs have scalar type.
24476 2013-05-28  Richard Biener  <rguenther@suse.de>
24478         PR tree-optimization/57411
24479         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
24480         virtual operands.
24481         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
24482         virtual operand propagation.
24484 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
24486         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
24487         destination register for bmasksi_vis.
24488         (vector_init_bshuffle): Likewise.
24489         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
24491 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
24493         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
24494         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
24495         mode if the instruction isn't available in the original mode.
24496         * config/sparc/sparc.opt (mfix-ut699): New option.
24497         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
24498         (divdf3): Turn into expander.
24499         (divdf3_nofix): New insn.
24500         (divdf3_fix): Likewise.
24501         (divsf3): Disable if -mfix-ut699.
24502         (sqrtdf2): Turn into expander.
24503         (sqrtdf2_nofix): New insn.
24504         (sqrtdf2_fix): Likewise.
24505         (sqrtsf2): Disable if -mfix-ut699.
24507 2013-05-27  Richard Biener  <rguenther@suse.de>
24509         PR middle-end/57412
24510         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
24511         block for the new loop.
24513 2013-05-27  Richard Biener  <rguenther@suse.de>
24515         PR tree-optimization/57343
24516         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
24517         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
24518         (number_of_iterations_cond): Do not build the folded tree.
24520 2013-05-27  Richard Biener  <rguenther@suse.de>
24522         Revert
24523         PR middle-end/57381
24524         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24525         OEP_CONSTANT_ADDRESS_OF retained.
24527         PR tree-optimization/57417
24528         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
24529         for unchanged base.
24530         (set_ssa_val_to): Compare addresses using
24531         get_addr_base_and_unit_offset.
24533 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
24535         PR rtl-optimization/56833
24536         * postreload.c (move2add_record_mode): New function.
24537         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
24538         (move2add_use_add2_insn): Use move2add_record_sym_value.
24539         (move2add_use_add3_insn): Likewise.
24540         (reload_cse_move2add): Use move2add_valid_value_p and
24541         move2add_record_mode.  Invalidate call-clobbered and REG_INC
24542         affected regs by setting reg_mode to VOIDmode.
24543         (move2add_note_store): Don't pretend the inside of a SUBREG is
24544         the actual destination.  Invalidate single/leading registers by
24545         setting reg_mode to VOIDmode.
24546         Use move2add_record_sym_value, move2add_valid_value_p and
24547         move2add_record_mode.
24549 2013-05-27  Richard Biener  <rguenther@suse.de>
24551         PR tree-optimization/57396
24552         * tree-affine.c (double_int_constant_multiple_p): Properly
24553         return false for val == 0 and div != 0.
24555 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
24557         * config/mips/mips.h: Use #elif in preprocessor conditions.
24559 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
24561         PR target/53916
24562         * config/mips/constraints.md (kl): New constraint.
24563         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
24564         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
24565         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
24566         from LO for MIPS16.
24567         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
24569 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
24571         PR target/55777
24572         * config/mips/mips.c (mips_can_inline_p): New function.
24573         (TARGET_CAN_INLINE_P): Define.
24575 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24577         * sched-int.h (ds_t, dw_t): Make unsigned int.
24578         Fix documentation that describes how all the ds_t bits are used.
24579         Reserve the last bit for delayed-branch scheduling.
24580         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
24581         (BITS_PER_DEP_WEAK): Fix definition and documentation.
24582         (gen_dep_weak_1): Remove prototype.
24583         * sched-deps.c (get_dep_weak_1): Make static.
24584         * target.def (speculate_insn, needs_block_p, gen_spec_check,
24585         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
24586         * doc/tm.texi: Regenerate.
24587         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
24589 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
24591         PR debug/56950
24592         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
24594 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
24595             Sandra Loosemore  <sandra@codesourcery.com>
24597         * config.gcc (powerpc-*): Allow native for with-cpu.
24599 2013-05-24  Jeff Law  <law@redhat.com>
24601         PR tree-optimization/57124
24602         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
24603         conversion feeding a condition if the range has an overflow
24604         if -fstrict-overflow.  Add warnings for when we do make the
24605         transformation.
24607 2013-05-24  Dehao Chen  <dehao@google.com>
24609         * tree-cfg.c (locus_discrim_map): Fix the typo.
24610         (locus_discrim_hasher): Likewise.
24611         (locus_discrim_hasher::hash): Likewise.
24612         (locus_discrim_hasher::equal): Likewise.
24614 2013-05-24  Martin Jambor  <mjambor@suse.cz>
24616         PR tree-optimization/57294
24617         * cgraph.h (ipa_record_stmt_references): Declare.
24618         * cgraphbuild.c (ipa_record_stmt_references): New function.
24619         (build_cgraph_edges): Use ipa_record_stmt_references.
24620         (rebuild_cgraph_edges): Likewise.
24621         (cgraph_rebuild_references): Likewise.
24622         * ipa-prop.c (ipa_modify_call_arguments): Discard references
24623         associated with the old statement and build references from the
24624         newly built statements.
24625         * ipa-ref.c (ipa_remove_stmt_references): New function.
24626         * ipa-ref.h (ipa_remove_stmt_references): Declare.
24628 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
24630         * lra-constraints.c (emit_spill_move): Use smaller mode for
24631         mem-mem moves.
24632         (check_and_process_move): Consider mem-reg moves for secondary
24633         too.
24634         (curr_insn_transform): Don't lose insns emitted before for
24635         secondary memory moves.
24636         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
24637         reg set up in the current insn.
24639 2013-05-24  Dehao Chen  <dehao@google.com>
24641         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
24642         hash function.
24643         (locus_descrim_hasher::equal): Likewise.
24644         (build_gimple_cfg): New discriminator assignment algorithm.
24645         (make_edges): Likewise.
24646         (next_discriminator_for_locus): Likewise.
24647         (same_line_p): Likewise.
24648         (assign_discriminators): Likewise.
24649         (make_cond_expr_edges): Likewise.
24650         (make_gimple_switch_edges): Likewise.
24651         (make_goto_expr_edges): Likewise.
24652         (make_gimple_asm_edges): Likewise.
24654 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
24656         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
24657         X format specifier to only display bottom 16 bits.
24658         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
24659         immediate to match for operand 2, since it will be masked.
24661 2013-05-24  Richard Biener  <rguenther@suse.de>
24663         PR tree-optimization/57287
24664         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
24665         all SSA names that occur in abnormal PHIs.
24667 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24669         PR tree-ssa/57385
24670         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
24671         that index is not negative.
24673 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
24675         PR rtl-optimization/55177
24676         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
24677         (simplify_byte_swapping_operation): New.
24678         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
24679         (simplify_relational_operation_1): Deal with BSWAP.
24681 2013-05-23  Richard Henderson  <rth@redhat.com>
24683         PR target/56742
24684         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
24685         (ix86_reorg): Call it.
24687 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
24689         PR target/57379
24690         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
24691         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
24692         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
24694 2013-05-23  Christian Bruel  <christian.bruel@st.com>
24696         PR debug/57351
24697         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
24699 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24700             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24702         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
24703         * config/aarch64/constraints.md (Usa): Remove.
24704         * doc/md.texi (AArch64 Usa): Remove.
24706 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24707             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24709         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
24710         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
24711         * config/aarch64/predicates.md (aarch64_const_address): Remove.
24712         (aarch64_mov_operand): Use aarch64_mov_operand_p.
24714 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
24716         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
24717         instruction (AdvSIMD).
24718         * config/aarch64/aarch64-builtins.c
24719         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
24720         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
24722 2013-05-23  Martin Jambor  <mjambor@suse.cz>
24724         PR middle-end/57347
24725         * tree.h (contains_bitfld_component_ref_p): Declare.
24726         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
24727         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
24728         caller.
24729         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
24730         not access a bit-field.  Assert all final offsets are byte-aligned.
24732 2013-05-23  Richard Biener  <rguenther@suse.de>
24734         PR tree-optimization/57380
24735         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
24736         least one invariant or re-used load.
24737         * passes.c (init_optimization_passes): Move pass_phiprop before
24738         pass_forwprop.
24740 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
24742         * config/aarch64/aarch64-simd.md
24743         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
24745 2013-05-23  Richard Biener  <rguenther@suse.de>
24747         PR middle-end/57381
24748         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24749         OEP_CONSTANT_ADDRESS_OF retained.
24751 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
24753         PR middle-end/57344
24754         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
24755         don't lower unit.  Handle unit not being always BITS_PER_WORD.
24757 2013-05-23  Richard Biener  <rguenther@suse.de>
24759         PR rtl-optimization/57341
24760         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
24761         instead of true_dependence.
24763 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
24765         * bb-reorder.c (branch_threshold): Make const.
24766         (exec_threshold): Ditto.
24768 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
24769             Pat Haugen  <pthaugen@us.ibm.com>
24770             Peter Bergner  <bergner@vnet.ibm.com>
24772         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
24773         documentation for the power8 crypto builtins.
24775         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
24777         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
24778         macros for defining power8 builtin functions.
24779         (BU_P8V_AV_2): Likewise.
24780         (BU_P8V_AV_P): Likewise.
24781         (BU_P8V_VSX_1): Likewise.
24782         (BU_P8V_OVERLOAD_1): Likewise.
24783         (BU_P8V_OVERLOAD_2): Likewise.
24784         (BU_CRYPTO_1): Likewise.
24785         (BU_CRYPTO_2): Likewise.
24786         (BU_CRYPTO_3): Likewise.
24787         (BU_CRYPTO_OVERLOAD_1): Likewise.
24788         (BU_CRYPTO_OVERLOAD_2): Likewise.
24789         (XSCVSPDP): Fix typo, point to the correct instruction.
24790         (VCIPHER): Add power8 crypto builtins.
24791         (VCIPHERLAST): Likewise.
24792         (VNCIPHER): Likewise.
24793         (VNCIPHERLAST): Likewise.
24794         (VPMSUMB): Likewise.
24795         (VPMSUMH): Likewise.
24796         (VPMSUMW): Likewise.
24797         (VPERMXOR_V2DI): Likewise.
24798         (VPERMXOR_V4SI: Likewise.
24799         (VPERMXOR_V8HI: Likewise.
24800         (VPERMXOR_V16QI: Likewise.
24801         (VSHASIGMAW): Likewise.
24802         (VSHASIGMAD): Likewise.
24803         (VPMSUM): Likewise.
24804         (VPERMXOR): Likewise.
24805         (VSHASIGMA): Likewise.
24807         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24808         __CRYPTO__ if the crypto instructions are available.
24809         (altivec_overloaded_builtins): Add support for overloaded power8
24810         builtins.
24812         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
24813         support for power8 crypto builtins.
24814         (builtin_function_type): Likewise.
24815         (altivec_init_builtins): Add support for builtins that take vector
24816         long long (V2DI) arguments.
24818         * config/rs6000/crypto.md: New file, define power8 crypto
24819         instructions.
24821 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
24822             Pat Haugen  <pthaugen@us.ibm.com>
24823             Peter Bergner  <bergner@vnet.ibm.com>
24825         * doc/invoke.texi (Option Summary): Add power8 options.
24826         (RS/6000 and PowerPC Options): Likewise.
24828         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
24829         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
24830         wm, wn, wr documentation.
24832         * config/rs6000/constraints.md (wm): New constraint for VSX
24833         registers if direct move instructions are enabled.
24834         (wn): New constraint for no registers.
24835         (wq): New constraint for quad word even GPR registers.
24836         (wr): New constraint if 64-bit instructions are enabled.
24837         (wv): New constraint if power8 vector instructions are enabled.
24838         (wQ): New constraint for quad word memory locations.
24840         * config/rs6000/predicates.md (const_0_to_15_operand): New
24841         constraint for 0..15 for crypto instructions.
24842         (gpc_reg_operand): If VSX allow registers in VSX registers as well
24843         as GPR and floating point registers.
24844         (int_reg_operand): New predicate to match only GPR registers.
24845         (base_reg_operand): New predicate to match base registers.
24846         (quad_int_reg_operand): New predicate to match even GPR registers
24847         for quad memory operations.
24848         (vsx_reg_or_cint_operand): New predicate to allow vector logical
24849         operations in both GPR and VSX registers.
24850         (quad_memory_operand): New predicate for quad memory operations.
24851         (reg_or_indexed_operand): New predicate for direct move support.
24853         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
24854         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
24855         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
24856         (POWERPC_MASKS): Add power8 options.
24857         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
24858         various options.
24860         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24861         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
24863         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
24864         (-mpower8-fusion): New power8 options.
24865         (-mpower8-fusion-sign): Likewise.
24866         (-mpower8-vector): Likewise.
24867         (-mcrypto): Likewise.
24868         (-mdirect-move): Likewise.
24869         (-mquad-memory): Likewise.
24871         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
24872         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
24873         registers.
24874         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
24875         (rs6000_debug_vector_unit): Add p8_vector.
24876         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
24877         definitions.  Also print fusion state.
24878         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
24879         (rs6000_builtin_mask_calculate): Add power8 builtin support.
24880         (rs6000_option_override_internal): Add support for power8.
24881         (rs6000_common_init_builtins): Add debugging for skipped builtins
24882         if -mdebug=builtin.
24883         (rs6000_adjust_cost): Add power8 support.
24884         (rs6000_issue_rate): Likewise.
24885         (insn_must_be_first_in_group): Likewise.
24886         (insn_must_be_last_in_group): Likewise.
24887         (force_new_group): Likewise.
24888         (rs6000_register_move_cost): Likewise.
24889         (rs6000_opt_masks): Likewise.
24891         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
24892         power8 capable assembler, default to power7 options.
24893         (TARGET_DIRECT_MOVE): Likewise.
24894         (TARGET_CRYPTO): Likewise.
24895         (TARGET_P8_VECTOR): Likewise.
24896         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
24897         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
24898         (VECTOR_MEM_P8_VECTOR_P): Likewise.
24899         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
24900         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
24901         (TARGET_XSCVDPSPN): Likewise.
24902         (TARGET_XSCVSPDPN): Likewsie.
24903         (TARGET_SYNC_HI_QI): Likewise.
24904         (TARGET_SYNC_TI): Likewise.
24905         (MASK_CRYPTO): Likewise.
24906         (MASK_DIRECT_MOVE): Likewise.
24907         (MASK_P8_FUSION): Likewise.
24908         (MASK_P8_VECTOR): Likewise.
24909         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
24910         temporary used by some of the direct move instructions to get two FP
24911         temporary registers does not force creation of a stack frame.
24912         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
24913         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
24914         that any VSX registers are tieable, even if they are also an
24915         Altivec vector mode.
24916         (r6000_reg_class_enum): Add wm, wr, wv constraints.
24917         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
24918         (RS6000_BTM_CRYPTO): Likewise.
24919         (RS6000_BTM_COMMON): Likewise.
24921         * config/rs6000/rs6000.md (cpu attribute): Add power8.
24922         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
24923         (enum rs6000_vector): Add power8 vector support.
24925 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24927         PR target/19599
24928         PR target/57340
24929         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
24930         (any_sibcall_could_use_r3): this and handle indirect calls.
24931         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
24933 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24935         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
24937 2013-05-22  Richard Biener  <rguenther@suse.de>
24939         PR middle-end/57349
24940         * profile.c (branch_prob): Do not split blocks that are
24941         abnormally receiving from ECF_RETURNS_TWICE functions.
24943 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24945         * recog.c (offsettable_address_addr_space_p): Fix calculation of
24946         address mode.  Move pointer mode initialization to the same place.
24948 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24950         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
24951         while it has any effect.
24953 2013-05-21  Easwaran Raman  <eraman@google.com>
24955         PR tree-optimization/57322
24956         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
24957         UID of the statement added to the BB to be 1.
24959 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
24961         PR tree-optimization/57331
24962         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
24963         of conversion from pointer type to integral type with integer.
24965 2013-05-21  Martin Jambor  <mjambor@suse.cz>
24967         PR lto/57289
24968         * ipa-prop.c (ipa_read_node_info): Process param_used and
24969         controlled_uses in the same order as when writing.
24971 2013-05-21  Magnus Granberg  <baldrick@free.fr>
24973         PR plugins/56754
24974         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
24976 2013-05-21  Richard Biener  <rguenther@suse.de>
24978         PR tree-optimization/57318
24979         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
24980         estimate stmts with side-effects as likely eliminated.
24982 2013-05-21  Richard Biener  <rguenther@suse.de>
24984         PR tree-optimization/57330
24985         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
24986         preserve the call stmts fntype.
24988 2013-05-21  Richard Biener  <rguenther@suse.de>
24990         PR tree-optimization/57303
24991         * tree-ssa-sink.c (statement_sink_location): Improve killing
24992         stmt detection and properly handle self-assignments.
24994 2013-05-21  Christian Bruel  <christian.bruel@st.com>
24996         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
24997         spanning registers. LEAF_REG_REMAP is supported only for contiguous
24998         registers. Set register size out of the PARALLEL loop.
25000 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
25002         PR target/56547
25003         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
25004         (*fmasf4, *fmasf4_media): New insns.
25006 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25008         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
25009         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
25010         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
25011         (mips_idiv_insns): Update the comments to say that the returned
25012         instruction counts are in units of BASE_INSN_LENGTH.
25013         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
25014         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
25015         using 2 rather than 4 as the length of indirect MIPS16 and
25016         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
25017         length of a NOP.  Don't divide MIPS16 lengths by 2.
25018         (mips16_split_long_branches): Assume a branch is long if the
25019         length is greater than 4 rather than 8.
25020         * config/mips/mips.md (length): Give MIPS16 lengths directly,
25021         rather than multiplying them by 2.  Multiply instruction counts
25022         by BASE_INSN_LENGTH rather than 4.
25023         (*jump_mips16, tls_get_tp_mips16_<mode>)
25024         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
25026 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25028         * config/mips/mips.md (extended_mips16): Remove branch case.
25029         (length): Remove duplicated extended_mips16 test.
25031 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25033         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
25035 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
25037         * recog.h (Recog_data): Rename to...
25038         (recog_data_d): ...this.
25039         (recog_data): Update accordingly.
25040         * recog.c (recog_data): Likewise.
25041         * reload.c (save_recog_data): Likewise.
25042         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
25043         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
25045 2013-05-17  Julian Brown  <julian@codesourcery.com>
25047         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
25048         found in a REG_EQUAL note, invalidate it.
25050 2013-05-17  Easwaran Raman  <eraman@google.com>
25052         * tree-ssa-reassoc.c (find_insert_point): New function.
25053         (insert_stmt_after): Likewise.
25054         (get_def_stmt): Likewise.
25055         (ensure_ops_are_available): Likewise.
25056         (not_dominated_by): Likewise.
25057         (rewrite_expr_tree): Do not move statements beyond what is
25058         necessary. Remove call to swap_ops_for_binary_stmt...
25059         (reassociate_bb): ... and move it here.
25060         (build_and_add_sum): Assign UIDs for new statements.
25061         (linearize_expr): Likewise.
25062         (do_reassoc): Renumber gimple statement UIDs.
25064 2013-05-17  Jan Hubicka  <jh@suse.cz>
25066         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
25067         weakrefs.
25068         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
25069         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
25070         weakrefs.
25071         (output_weakrefs): Update.
25073 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
25074             Martin Jambor  <mjambor@suse.cz>
25076         PR middle-end/57276
25077         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
25078         value that corresponds to the given aggval is found in values vector.
25080 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
25082         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
25083         sse, sse2, sse3, ssse3 and sse4a flags to options.
25085 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
25087         * gengtype-state.c: (s_expr_writer): New class, to handle
25088         prettifying of output layout of s-expressions.
25089         (state_writer): New class, to write out gtype.state.
25090         (state_written_type_count): Move this variable into member data of
25091         state_writer.
25092         (s_expr_writer::s_expr_writer): New code: constructor for new class
25093         (state_writer::state_writer(): ditto
25094         (s_expr_writer::write_new_line): New function
25095         (s_expr_writer::write_any_indent): ditto
25096         (s_expr_writer::begin_s_expr): ditto
25097         (s_expr_writer::end_s_expr): ditto
25098         (write_state_fileloc): convert to method of state_writer...
25099         (state_writer:: write_state_fileloc): ...and use methods of
25100         s_expr_writer to write indentation into the gtype.state output file
25101         to visually represent the hierarchical structure of the list
25102         structures
25103         (write_state_fields): ditto, renaming to...
25104         (state_writer::write_state_fields)
25105         (write_state_a_string): ditto, renaming to...
25106         (state_writer::write_state_a_string)
25107         (write_state_string_option): ditto, renaming to...
25108         (state_writer::write_state_string_option)
25109         (write_state_type_option): ditto, renaming to...
25110         (state_writer::write_state_type_option)
25111         (write_state_nested_option): ditto, renaming to...
25112         (state_writer::write_state_nested_option)
25113         (write_state_option): ditto, renaming to...
25114         (state_writer::write_state_option)
25115         (write_state_options): ditto, renaming to...
25116         (state_writer::write_state_options)
25117         (write_state_lang_bitmap): ditto, renaming to...
25118         (state_writer::write_state_lang_bitmap)
25119         (write_state_version): ditto, renaming to...
25120         (state_writer::write_state_version)
25121         (write_state_scalar_type): ditto, renaming to...
25122         (state_writer::write_state_scalar_type)
25123         (write_state_string_type): ditto, renaming to...
25124         (state_writer::write_state_string_type)
25125         (write_state_undefined_type): ditto, renaming to...
25126         (state_writer::write_state_undefined_type)
25127         (write_state_struct_union_type): ditto, renaming to...
25128         (state_writer::write_state_struct_union_type)
25129         (write_state_struct_type): ditto, renaming to...
25130         (state_writer::write_state_struct_type)
25131         (write_state_user_struct_type): ditto, renaming to...
25132         (state_writer::write_state_user_struct_type)
25133         (write_state_lang_struct_type): ditto, renaming to...
25134         (state_writer::write_state_lang_struct_type)
25135         (write_state_param_struct_type): ditto, renaming to...
25136         (state_writer::write_state_param_struct_type)
25137         (write_state_pointer_type): ditto, renaming to...
25138         (state_writer::write_state_pointer_type)
25139         (write_state_array_type): ditto, renaming to...
25140         (state_writer::write_state_array_type)
25141         (write_state_gc_used): ditto, renaming to...
25142         (state_writer::write_state_gc_used)
25143         (write_state_common_type_content): ditto, renaming to...
25144         (state_writer::write_state_common_type_content)
25145         (write_state_type): ditto, renaming to...
25146         (state_writer::write_state_type)
25147         (write_state_pair_list): ditto, renaming to...
25148         (state_writer::write_state_pair_list)
25149         (write_state_pair): ditto, renaming to...
25150         (state_writer::write_state_pair)
25151         (write_state_typedefs): ditto, renaming to...
25152         (state_writer::write_state_typedefs)
25153         (write_state_structures): ditto, renaming to...
25154         (state_writer::write_state_structures)
25155         (write_state_param_structs): ditto, renaming to...
25156         (state_writer::write_state_param_structs)
25157         (write_state_variables): ditto, renaming to...
25158         (state_writer::write_state_variables)
25159         (write_state_srcdir): ditto, renaming to...
25160         (state_writer::write_state_srcdir)
25161         (write_state_files_list): ditto, renaming to...
25162         (state_writer::write_state_files_list)
25163         (write_state_languages): ditto, renaming to...
25164         (state_writer::write_state_languages)
25165         (write_state): create a state_writer instance and use it when
25166         writing out the state file
25168 2013-05-17  Mike Stump  <mikestump@comcast.net>
25170         PR rtl-optimization/57304
25171         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
25172         accessing DF_REF_REAL_LOC.
25174 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25176         PR rtl-optimization/57281
25177         PR rtl-optimization/57300
25178         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
25179         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
25180         what the other splitter did if the registers are dead.
25182 2013-05-17  Richard Biener  <rguenther@suse.de>
25184         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
25185         MEM_REF offsets.
25187 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25189         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
25190         linking.
25192 2013-05-17  Marek Polacek  <polacek@redhat.com>
25194         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
25195         length when doing non-zero store of storing '\0' to '\0'.
25197 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25199         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
25200         vect_external_def oprnd1 with loop_vinfo, try to emit
25201         optional cast, negation and and stmts on the loop preheader
25202         edge instead of into the pattern def seq.
25204         PR tree-optimization/57051
25205         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
25206         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
25208 2013-05-16  Nick Clifton  <nickc@redhat.com>
25210         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
25211         (rl78_is_naked_func): New function.
25212         (rl78_expand_prologue): Skip prologue generation for naked functions.
25213         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
25214         * doc/extend.texi (naked): Add RL78 to the list of processors
25215         that supports this attribute.
25217 2013-05-16  Jeff Law  <law@redhat.com>
25219         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
25221 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
25223         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
25224         cache parameters using detect_caches_amd also for CYRIX,
25225         NSC and TM2 signatures.
25227 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
25228             Dzianis Kahanovich  <mahatma@eu.by>
25230         PR target/45359
25231         PR target/46396
25232         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25233         VIA/Centaur processors and determine their cache parameters
25234         using detect_caches_amd.
25236 2013-05-16  Teresa Johnson  <tejohnson@google.com>
25238         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
25239         (rtl_verify_edges): New function.
25240         (rtl_verify_bb_insns): Ditto.
25241         (rtl_verify_bb_pointers): Ditto.
25242         (rtl_verify_bb_insn_chain): Ditto.
25243         (rtl_verify_fallthru): Ditto.
25244         (rtl_verify_bb_layout): Ditto.
25245         (rtl_verify_flow_info_1): Outline checks into new functions.
25246         (rtl_verify_flow_info): Ditto.
25248 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
25250         * cfghooks.c (copy_bbs): Add update_dominance argument.
25251         * cfghooks.h (copy_bbs): Update prototype.
25252         * tree-cfg.c (gimple_duplicate_sese_region):
25253         Add update_dominance argument.
25254         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
25255         * tree-ssa-loop-ch.c (copy_loop_headers): Update
25256         gimple_duplicate_sese_region call.
25257         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
25258         Update copy_bbs call.
25259         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
25260         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
25262 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
25264         * tree-vectorizer.h (NUM_PATTERNS): Increment.
25265         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
25266         vect_recog_rotate_pattern.
25267         (vect_recog_rotate_pattern): New function.
25269 2013-05-16  Jason Merrill  <jason@redhat.com>
25271         * Makefile.in (LLINKER): New variable.
25272         (mostlyclean): Remove link mutex.
25273         * configure.ac: Handle --enable-link-mutex.
25274         * lock-and-run.sh: New script.
25276 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25278         PR target/19599
25279         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
25280         for NULL decl.
25282 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25284         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
25286 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
25288         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
25289         * config/arm/arm.c (next_consecutive_mem): New function.
25290         (gen_movmem_ldrd_strd): Likewise.
25291         * config/arm/arm.md (movmemqi): Update condition and code.
25292         (unaligned_loaddi, unaligned_storedi): New patterns.
25294 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25296         * config.gcc: Obsolete *-*-solaris2.9*.
25297         * doc/install.texi (Specific, *-*-solaris2*): Document it.
25299 2013-05-16  Richard Biener  <rguenther@suse.de>
25301         * passes.c (init_optimization_passes): Move pass_parallelize_loops
25302         earlier, after GRAPHITE transforms and IV canonicalization.
25304 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
25306         * omp-low.c (extract_omp_for_data): For collapsed loops,
25307         if at least one of the loops is known at compile time to
25308         iterate zero times, set count to 0.
25309         (expand_omp_regimplify_p): New function.
25310         (expand_omp_for_generic): For collapsed loops, if at least
25311         one of the loops isn't known to iterate at least once,
25312         add runtime check with setting count to 0.
25313         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25314         For unsigned types if it isn't known at compile time that
25315         the loop will iterate at least once, add runtime check to bypass
25316         the whole loop if initial condition isn't true.
25318 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
25320         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
25322 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
25324         PR middle-end/57286
25325         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
25326         transformations to avoid an infinite loop.
25328 2013-05-16  Marek Polacek  <polacek@redhat.com>
25330         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
25332 2013-05-15  Leif Ekblad  <leif@rdos.net>
25334         * config/i386/i386.c (ix86_decompose_address): Use
25335         DEFAULT_TLS_SEG_REG to access TLS segment register.
25336         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
25337         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
25338         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
25340 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
25342         PR target/57260
25343         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
25344         sibling calls to functions that would normally be lazily bound,
25345         unless $gp is call-clobbered.
25347 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
25349         * config/i386/i386.c (ix86_option_override_internal): Update
25350         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
25351         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
25352         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
25353         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
25354         of TARGET_3DNOW.
25355         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
25357 2013-05-15  Andreas Schwab  <schwab@suse.de>
25359         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
25360         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
25361         third operand.
25363 2013-05-15  Teresa Johnson  <tejohnson@google.com>
25365         * loop-unroll.c (report_unroll_peel): Check decision before
25366         emitting unroll/peel message.
25368 2013-05-15  Teresa Johnson  <tejohnson@google.com>
25370         * function.h (has_bb_partition): New rtl_data flag.
25371         (bb_reorder_complete): Ditto.
25372         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
25373         instead of flag_reorder_blocks_and_partition.
25374         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
25375         with some enhancements.
25376         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
25377         * bb-reorder.c (connect_traces): Check for has_bb_partition
25378         instead of flag_reorder_blocks_and_partition.
25379         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
25380         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
25381         verify_hot_cold_block_grouping.
25382         (partition_hot_cold_basic_blocks): Set has_bb_partition.
25384 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25386         PR target/19599
25387         * config/arm/predicates.md (call_insn_operand): New predicate.
25388         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
25389         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
25390         if insn is not a tail call.
25391         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
25392         registers.
25393         * config/arm/arm.h (enum reg_class): New caller save register class.
25394         (REG_CLASS_NAMES): Likewise.
25395         (REG_CLASS_CONTENTS): Likewise.
25396         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
25397         without decls.
25399 2013-05-15  Richard Biener  <rguenther@suse.de>
25401         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
25402         of MSG_OPTIMIZED_LOCATIONS.
25403         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
25404         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
25405         message.
25406         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
25407         of MSG_OPTIMIZED_LOCATIONS.
25408         (execute_vect_slp): Likewise.
25409         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
25410         (vect_create_cond_for_alias_checks): Likewise.
25411         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
25412         (vect_recog_widen_mult_pattern): Likewise.
25413         (vect_recog_widen_sum_pattern): Likewise.
25414         (vect_recog_over_widening_pattern): Likewise.
25415         (vect_recog_widen_shift_pattern): Likewise.
25416         (vect_recog_vector_vector_shift_pattern): Likewise.
25417         (vect_recog_divmod_pattern): Likewise.
25418         (vect_recog_mixed_size_cond_pattern): Likewise.
25419         (vect_recog_bool_pattern): Likewise.
25420         (vect_pattern_recog_1): Likewise.
25422 2013-05-15  Martin Jambor  <mjambor@suse.cz>
25424         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
25425         non-functions to builtin_unreachable.
25426         * ipa-inline-transform.c (inline_call): Do not assert estimates were
25427         correct when new direct edges were discovered.
25429 2013-05-15  Martin Jambor  <mjambor@suse.cz>
25431         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
25432         header, print symbol order instead of node uid, print more information
25433         about indirect edge targets.
25434         (ipa_make_edge_direct_to_target): Print symbol order instead of node
25435         uids.
25436         (ipa_make_edge_direct_to_target): Likewise.
25437         (remove_described_reference): Likewise.
25438         (propagate_controlled_uses): Likewise.
25439         (ipa_print_node_params): Also print symbol order.
25440         (ipcp_transform_function): Print symbol order instead of node uids.
25441         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
25442         (cgraph_get_create_real_symbol_node): Likewise.
25443         * ipa-cp.c (print_lattice): Likewise.
25444         (print_all_lattices): Likewise.
25445         (determine_versionability): Likewise.
25446         (initialize_node_lattices): Likewise.
25447         (estimate_local_effects): Likewise.
25448         (update_profiling_info): Likewise.
25449         (create_specialized_node): Likewise.
25450         (perhaps_add_new_callers): Likewise.
25451         (decide_about_value): Likewise.
25452         (decide_whether_version_node): Likewise.
25453         (identify_dead_nodes): Likewise.
25454         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
25455         (dump_inline_summary): Likewise.
25456         (estimate_node_size_and_time): Likewise.
25457         (inline_analyze_function): Likewise.
25458         * ipa-inline.c (report_inline_failed_reason): Likewise.
25459         (want_early_inline_function_p): Likewise.
25460         (edge_badness): Likewise.
25461         (update_edge_key): Likewise.
25462         (inline_small_functions): Likewise.  Add dumping of order to two other
25463         dumps.
25464         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
25465         instead of node uids.
25466         (propagate_pure_const): Likewise.
25467         (propagate_pure_const): Likewise.
25468         * ipa-utils.c (dump_cgraph_node_set): Likewise.
25469         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
25470         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
25471         of node uids.
25472         * tree-pretty-print.c (dump_function_header): Likewise.
25473         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
25474         Print symbol order instead of node uids.
25476 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25478         * config/s390/s390.c (s390_register_move_cost): Don't impose the
25479         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
25481 2013-05-15  Richard Biener  <rguenther@suse.de>
25483         PR tree-optimization/57275
25484         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
25485         return value for fail to do runtime alias checks for gather loads.
25487 2013-05-15  Jan Hubicka  <jh@suse.cz>
25489         PR lto/57038
25490         PR lto/47375
25491         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
25492         weakrefs are not external.
25493         (lto_symtab_merge_decls): Fix thinko when dealing with
25494         non-lto_symtab decls.
25495         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
25496         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
25497         * varpool.c (dump_varpool_node): Dump more flags.
25499 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25501         * config/i386/i386.c (processor_alias_table): Add instruction
25502         FSGSBASE for AMD bdver3 architecture.
25504 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
25506         * tree.c (warn_deprecated_use): Print file:line using locus color.
25507         * diagnostic.c (diagnostic_report_current_module): Print file:line
25508         and file:line:column using locus color.
25510 2013-05-14  Mike Stump  <mikestump@comcast.net>
25512         * gdbinit.in: Add __null.
25514 2013-05-14  Mike Stump  <mikestump@comcast.net>
25516         * recog.h: Rename struct recog_data to Recog_data.
25517         * recog.c: Likewise.
25518         * reload.c (can_reload_into): Likewise.
25519         * config/picochip/picochip.c: Likewise.
25521 2013-05-14  Mike Stump  <mikestump@comcast.net>
25523         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
25525 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
25527         * resource.h (struct resources): Remove unch_memory member.
25528         (CLEAR_RESOURCE): Don't clear unch_memory.
25529         * resource.c (mark_referenced_resources): Don't set it.
25530         (mark_set_resources): Likewise.
25531         (mark_target_live_regs): Don't clear it.
25532         (init_resource_info): Likewise.
25533         * reorg.c (resource_conflicts_p): Don't compare it.
25534         (redundant_insn): Don't set it.
25536         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
25537         Remove prototypes.
25538         * emit-rtl.c (next_label): Remove unused function.
25539         (skip_consecutive_labels, link_cc0_insns): Move to ...
25540         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
25541         only place where these functions are used, and make them static.
25543 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
25545         * fold-const.c (fold_negate_expr): Handle vectors.
25546         (fold_truth_not_expr): Make it static.
25547         (fold_invert_truthvalue): New static function.
25548         (invert_truthvalue_loc): Handle vectors. Do not call
25549         fold_truth_not_expr directly.
25550         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
25551         <TRUTH_NOT_EXPR>: Do not cast to boolean.
25552         (fold_comparison): Handle vector constants.
25553         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
25554         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
25555         * tree.h (fold_truth_not_expr): Remove declaration.
25557 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
25559         * config/aarch64/aarch64-simd.md
25560         (aarch64_vcond_internal<mode>): Rename to...
25561         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
25562         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
25563         float modes. Clarify all iterator modes.
25564         (vcond<mode><mode>): Use new name for vcond expanders.
25565         (vcond<v_cmp_result><mode>): Likewise.
25566         (vcondu<mode><mode>: Likewise.
25567         * config/aarch64/iterators.md (VDQF_COND): New.
25569 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
25571         PR bootstrap/57266
25572         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
25573         variable for the shift amount. Check that we shift by non-negative
25574         amounts.
25576 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
25578         PR target/42017
25579         * config/arm/arm.h (EPILOGUE_USES): Only return true
25580         for LR_REGNUM after epilogue_completed.
25582 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
25584         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
25585         is error_mark_node.
25587 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25589         PR target/57261
25590         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
25591         and Solaris 11+/x86 with gld.
25592         * configure: Regenerate.
25594 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
25596         * expmed.c (expand_shift_1): Canonicalize rotates by
25597         constant bitsize / 2 to bitsize - 1.
25598         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
25599         case ROTATERT>: Likewise.
25601         Revert:
25602         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
25604         * config/i386/i386.md (rotateinv): New code attr.
25605         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25606         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25607         roll $31, %eax, etc.
25609 2013-05-14  Richard Biener  <rguenther@suse.de>
25611         PR middle-end/57235
25612         * tree-eh.c (sink_clobbers): Give up for successors with
25613         multiple predecessors and no virtual uses.
25615 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25617         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
25618         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
25620 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
25622         PR middle-end/57251
25623         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
25624         the case when both op0 and op1 have VOIDmode.
25626 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25628         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
25629         in multiply-accumulate mode.
25631 2013-05-13  Guozhi Wei  <carrot@google.com>
25633         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
25635 2013-05-13  Kai Tietz  <ktietz@redhat.com>
25637         PR target/56975
25638         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
25639         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
25640         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
25641         * config/i386/i386.c (ix86_option_override_internal): Likewise.
25642         (ix86_expand_prologue): Likewise.
25643         (ix86_expand_split_stack_prologue): Likewise.
25644         (legitimate_pic_address_disp_p): Likewise.
25645         (legitimize_pic_address): Likewise.
25646         (legitimize_tls_address): Likewise.
25647         (legitimize_pe_coff_symbol): Likewise.
25648         (output_pic_addr_const): Likewise.
25649         (construct_plt_address): Likewise.
25650         (ix86_expand_call): Likewise.
25651         (x86_output_mi_thunk): Likewise.
25652         (x86_function_profiler): Likewise.
25654 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
25656         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
25657         similar switch cases.
25658         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
25659         (aarch64_simd_mov_to_<mode>low): Delete.
25660         (aarch64_simd_mov_to_<mode>high): Delete.
25661         (move_lo_quad_<mode>): Add w<-r alternative.
25662         (aarch64_simd_move_hi_quad_<mode>): Likewise.
25663         (aarch64_simd_mov_from_*): Update type attribute.
25664         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
25665         statement.
25667 2013-05-13  Jan Hubicka  <jh@suse.cz>
25669         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
25670         * config/i386/i386.c (ix86_compute_frame_layout,
25671         ix86_expand_epilogue, emit_i387_cw_initialization,
25672         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
25673         ix86_local_alignment): Fix use of size/speed predicates.
25675 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
25677         PR tree-optimization/45216
25678         PR tree-optimization/57157
25679         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
25680         the (-Y) & (B - 1) variant if OP is |.
25681         * expmed.c (expand_shift_1): For rotations by const0_rtx just
25682         return shifted.  Use (-op1) & (prec - 1) as other_amount
25683         instead of prec - op1.
25685 2013-05-13  Martin Jambor  <mjambor@suse.cz>
25687         PR middle-end/42371
25688         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
25689         (ipa_constant_data): New type.
25690         (ipa_jump_func): Use ipa_constant_data to hold information about
25691         constant jump functions.
25692         (ipa_get_jf_constant): Adjust to jump function type changes.
25693         (ipa_get_jf_constant_rdesc): New function.
25694         (ipa_param_descriptor): New field controlled_uses.
25695         (ipa_get_controlled_uses): New function.
25696         (ipa_set_controlled_uses): Likewise.
25697         * ipa-ref.h (ipa_find_reference): Declare.
25698         * ipa-prop.c (ipa_cst_ref_desc): New type.
25699         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
25700         changes.
25701         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
25702         New parameter cs.  Adjust all callers.
25703         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
25704         (remove_described_reference): New function.
25705         (jfunc_rdesc_usable): Likewise.
25706         (try_make_edge_direct_simple_call): Decrement controlled use count,
25707         attempt to remove reference if it hits zero.
25708         (combine_controlled_uses_counters): New function.
25709         (propagate_controlled_uses): Likewise.
25710         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
25711         (ipa_edge_duplication_hook): Duplicate reference descriptions.
25712         (ipa_print_node_params): Print described use counter.
25713         (ipa_write_jump_function): Adjust to jump function type changes.
25714         (ipa_read_jump_function): New parameter CS, pass it to
25715         ipa_set_jf_constant.  Adjust caller.
25716         (ipa_write_node_info): Stream controlled use count
25717         (ipa_read_node_info): Likewise.
25718         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
25719         asserting.
25720         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
25721         count.  Remove cloning-added reference if it reaches zero.
25722         * ipa-ref.c (ipa_find_reference): New function.
25724 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25726         * config/i386/i386.c (processor_target_table): Modified default
25727         alignment values for AMD BD and BT architectures.
25729 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
25731         * tree-vect-generic.c (uniform_vector_p): Move ...
25732         * tree.c (uniform_vector_p): ... here.
25733         * tree.h (uniform_vector_p): Declare it.
25734         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
25735         into a scalar.
25737 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
25739         PR tree-optimization/57230
25740         * tree-ssa-strlen.c (handle_char_store): Record length for
25741         array store from STRING_CST.
25743         PR tree-optimization/57230
25744         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
25745         check.
25747 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
25749         * config/epiphany/epiphany.c (epiphany_init): Check size of
25750         NUM_MODES_FOR_MODE_SWITCHING.
25751         (epiphany_expand_prologue):
25752         Remove CONFIG_REGNUM initial value handling code.
25753         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
25754         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
25755         (emit_set_fp_mode, epiphany_mode_after): Likewise.
25756         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
25757         Don't return 1 for FP_MODE_NONE.
25758         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
25759         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
25760         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
25761         * config/epiphany/epiphany.md (save_config): New pattern.
25763 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
25765         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
25767 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
25769         * config/i386/i386.md (memory): Handle sseishft1.
25770         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
25771         (*vec_extractv2di_1): Ditto.
25773 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
25775         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
25776         saved registers.
25778 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25780         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
25781         Add mthumb/march=armv7-a multilib.
25782         Add mthumb/march=armv7-r multilib.
25783         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
25785 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
25787         * config/v850/t-rtems: Add more multilibs.
25789 2013-05-10  Richard Biener  <rguenther@suse.de>
25791         PR tree-optimization/57214
25792         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
25793         not propagate from SSA names that occur in abnormal PHI nodes.
25795 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
25797         * stor-layout.c (element_precision): New function.
25798         * machmode.h (element_precision): Declare it.
25799         * tree.c (build_minus_one_cst): New function.
25800         (element_precision): Likewise.
25801         * tree.h (build_minus_one_cst): Declare new function.
25802         (element_precision): Likewise.
25803         * fold-const.c (operand_equal_p): Use element_precision.
25804         (fold_binary_loc): Handle vector types.
25805         * convert.c (convert_to_integer): Use element_precision.
25806         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
25807         separately.
25809 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
25811         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
25812         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
25813         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
25814         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25815         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
25816         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
25817         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
25818         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25819         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
25820         (Uuw8): New constraints.
25821         (Usb4): Move into alphabetical order.
25822         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
25823         (sd8_operand, ub8_operand, uw8_operand): New predicates.
25824         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
25825         previously unnamed patterns.
25826         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
25827         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
25828         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
25829         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
25830         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
25831         of specific lengths.
25833 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
25835         * config/i386/i386.md (rotateinv): New code attr.
25836         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25837         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25838         roll $31, %eax, etc.
25840         PR tree-optimization/45216
25841         PR tree-optimization/57157
25842         * tree-ssa-forwprop.c (simplify_rotate): New function.
25843         (ssa_forward_propagate_and_combine): Call it.
25845 2013-05-10  Richard Biener  <rguenther@suse.de>
25847         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
25848         disable peeling when we version for aliasing.
25849         (vector_alignment_reachable_p): Honor explicit user alignment.
25850         (vect_supportable_dr_alignment): Likewise.
25851         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
25852         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
25853         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
25854         then peeling to arrange for the cost-model check to come first.
25856 2013-05-10  Alan Modra  <amodra@gmail.com>
25858         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
25859         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
25860         * configure: Regenerate.
25862 2013-05-10  Alan Modra  <amodra@gmail.com>
25864         PR target/55033
25865         * varasm.c (default_elf_select_section): Move !DECL_P check..
25866         (get_named_section): ..to here before calling get_section_name.
25867         Adjust assertion.
25868         (default_section_type_flags): Add DECL_P check.
25869         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
25870         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
25872 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
25874         * config/epiphany/epiphany.c (epiphany_expand_prologue):
25875         When using gen_stack_adjust_str with a register offset, add a
25876         REG_FRAME_RELATED_EXPR note.
25878 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
25880         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
25881         (*vec_extractv4si_zext_mem): Ditto.
25882         (*vec_extractv2di): Add 0->x and x->x alternatives.
25883         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
25884         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
25886 2013-05-09  Jason Merrill  <jason@redhat.com>
25888         N3639 C++1y VLA support
25889         * gimplify.c (gimplify_vla_decl): Don't touch an existing
25890         DECL_VALUE_EXPR.
25892         * tree.c (build_constructor_va): New.
25893         * tree.h: Declare it.
25895 2013-05-09  Martin Jambor  <mjambor@suse.cz>
25897         PR lto/57084
25898         * gimple-fold.c (canonicalize_constructor_val): Call
25899         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
25901 2013-05-09  Jan Hubicka  <jh@suse.cz>
25902             Richard Biener  <rguenther@suse.de>
25904         PR lto/54095
25905         * symtab.c (symtab_make_decl_local): Do not add private names.
25907 2013-05-09  Jan Hubicka  <jh@suse.cz>
25909         PR lto/54095
25910         * symtab.c (insert_to_assembler_name_hash): Handle clones.
25911         (unlink_from_assembler_name_hash): Likewise.
25912         (symtab_prevail_in_asm_name_hash, symtab_register_node,
25913         symtab_unregister_node, symtab_initialize_asm_name_hash,
25914         change_decl_assembler_name): Update.
25916 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
25918         * config/aarch64/aarch64.md: New movtf split.
25919         (*movtf_aarch64): Update.
25920         (aarch64_movdi_tilow): Handle TF modes and rename to
25921         aarch64_movdi_<mode>low.
25922         (aarch64_movdi_tihigh): Handle TF modes and rename to
25923         aarch64_movdi_<mode>high
25924         (aarch64_movtihigh_di): Handle TF modes and rename to
25925         aarch64_mov<mode>high_di
25926         (aarch64_movtilow_di): Handle TF modes and rename to
25927         aarch64_mov<mode>low_di
25928         (aarch64_movtilow_tilow): Remove spurious whitespace.
25929         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
25930         splits.
25931         (aarch64_print_operand): Update.
25933 2013-05-09  Alan Modra  <amodra@gmail.com>
25935         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
25936         powerpc64le.
25937         * configure: Regenerate.
25939 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
25941         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
25942         splitter preparation statements.
25943         * config/i386/sse.md (*vec_extract* splitters): Ditto.
25944         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
25945         adjust_address_nv.
25947 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25949         * gimple-ssa-strength-reduction.c (count_candidates): Change
25950         return value to int.
25951         (analyze_candidates_and_replace): Change type of length to int.
25953 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
25955         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
25956         (*vec_extract<mode>): Use VI12_128 mode iterator.
25957         (*vec_extract<mode>_mem): Ditto.
25958         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
25959         attribute.
25961 2013-05-08  Diego Novillo  <dnovillo@google.com>
25963         PR bootstrap/54659
25965         Revert:
25966         2012-08-17  Diego Novillo  <dnovillo@google.com>
25968         PR bootstrap/54281
25969         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
25970         * config.in: Regenerate.
25971         * configure: Regenerate.
25972         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
25974 2013-05-08  Jan Hubicka  <jh@suse.cz>
25976         PR lto/54095
25977         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
25978         * cgraph.h (symtab_node_base): Add unique_name.
25979         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25980         input_overwrite_node, input_varpool_node): Stream unique_name.
25981         * cgraphclones.c (cgraph_create_virtual_clone,
25982         cgraph_function_versioning): Set unique_name.
25983         * ipa.c (function_and_variable_visibility): Set unique_name.
25985 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25987         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
25988         (alloc_cand_and_find_basis): Restrict conditional candidate
25989         processing to CAND_MULTs.
25991 2013-05-08  Jan Hubicka  <jh@suse.cz>
25993         PR lto/54095
25994         lto-symtab.c (lto_symtab_symbol_p): New function.
25995         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
25996         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
25997         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
25998         Skip static symbols.
26000 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
26002         PR tree-optimization/57200
26003         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
26004         Only call inform if the preceding warning_at returns true.
26006 2013-05-07  Han Shen  <shenhan@google.com>
26008         * cfgexpand.c (record_or_union_type_has_array_p): New function.
26009         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
26010         * common.opt (fstack-protector-strong): New option.
26011         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
26012         * doc/invoke.texi (Optimization Options): Document
26013         "-fstack-protector-strong".
26014         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
26016 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
26018         * config/mips/mips.c (mips_machine_reorg2): Return 0.
26020 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
26022         * ira.c (update_equiv_regs): Add insn having equiv memory even if
26023         it is not lhs of the insn.
26024         (setup_reg_equiv): Remove insn having equiv memory which it is not
26025         lhs of the insn.
26026         * lra-constraints.c (process_address): Try to improve generation
26027         code for address base + disp.
26028         (lra_constraints): Make correct the code for checking insn setting
26029         up backward equivalence.  Remove insn only if it is in the init
26030         insn list.
26031         * lra-eliminations.c (update_reg_eliminate): Change return value.
26032         (lra_eliminate): Use the result.
26034 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
26036         * config/i386/sse.md (ssescalarnummask): New mode attribute.
26037         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
26038         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
26039         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
26040         register target operands.
26041         (*vec_extractv8hi_sse2): New pattern.
26042         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
26043         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
26044         (*vec_extract<mode>_mem): New insn and split pattern.
26046 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
26048         * config/arm/arm.c (arm_asan_shadow_offset): New function.
26049         (TARGET_ASAN_SHADOW_OFFSET): Define.
26050         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
26051         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
26053 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26055         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
26056         (incr_vec_index): Return -1 if increment not found.
26057         (create_add_on_incoming_edge): Assert if increment not found.
26058         (record_increment): Limit number of increments recorded.
26059         (all_phi_incrs_profitable): Return false if an increment not found.
26060         (replace_profitable_candidates): Don't process increments that were
26061         not recorded.
26062         (analyze_candidates_and_replace): Limit size of incr_vec.
26064 2013-05-07  Richard Biener  <rguenther@suse.de>
26066         * calls.c (special_function_p): setjmp-like functions are leaf.
26067         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
26068         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
26070 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
26072         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
26073         (aarch64_simd_mov<mode>): New expander.
26074         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
26075         (aarch64_simd_mov_to_<mode>high): Likewise.
26076         (aarch64_simd_mov_from_<mode>low): Likewise.
26077         (aarch64_simd_mov_from_<mode>high): Likewise.
26078         (aarch64_dup_lane<mode>): Update.
26079         (aarch64_dup_lanedi): New instruction pattern.
26080         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
26081         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
26083 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26085         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
26086         (replace_mult_candidate): Remove unnecessary argument; remove
26087         unnecessary parameter from call to introduce_cast_before_cand.
26088         (replace_unconditional_candidate): Remove unnecessary parameter
26089         from call to replace_mult_candidate.
26090         (replace_conditional_candidate): Likewise.
26091         (insert_initializers): Use make_temp_ssa_name.
26092         (introduce_cast_before_cand): Remove unnecessary argument; use
26093         make_temp_ssa_name.
26094         (replace_one_candidate): Remove unnecessary argument; remove
26095         unnecessary parameter from calls to introduce_cast_before_cand.
26096         (replace_profitable_candidates): Remove unnecessary parameters
26097         from calls to replace_one_candidate.
26099 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26101         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
26102         phi def as possibly hiding a basis for a CAND_ADD whose operands
26103         have been commuted in the analysis.
26104         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
26106 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26108         * config/aarch64/aarch64.md
26109         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
26110         shift value between 0-4.
26112 2013-05-07  Richard Biener  <rguenther@suse.de>
26114         * double-int.h (rshift): New overload.
26115         * double-int.c (rshift): New function.
26116         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
26117         (create_reference_ops_from_ref): Remove.
26118         (vn_reference_insert): Use shared ops for constructing the
26119         reference and copy it.
26121 2013-05-07  Richard Biener  <rguenther@suse.de>
26123         PR middle-end/57190
26124         * tree-eh.c (sink_clobbers): Properly propagate
26125         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26127 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
26129         PR tree-optimization/57149
26130         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
26131         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
26132         collect_phi_def_edges, execute_late_warn_uninitialized): Use
26133         uninit_undefined_value_p instead of ssa_undefined_value_p.
26135         PR debug/57184
26136         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
26137         for modifier == EXPAND_INITIALIZER.
26139 2013-05-07  Anton Blanchard  <anton@samba.org>
26141         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
26142         for powerpc64 little endian.
26143         * configure: Regenerate.
26145 2013-05-06  Graham Stott  <grahams@btinternet.com>
26147         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
26148         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
26149         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
26150         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
26152 2013-05-06  Graham Stott  <grahams@btinternet.com>
26154         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
26155         codes which allow non-lvalues.
26157 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
26159         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
26160         components are all 1s.
26161         (integer_minus_onep): New function.
26162         * tree.h (integer_minus_onep): Declare it.
26163         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
26164         integer_minus_onep instead of integer_all_onesp.
26166 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26168         PR target/52933
26169         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
26170         variations of these patterns.
26172 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
26174         * config/i386/i386.md (isa): Add x64_sse4 member.
26175         (enabled): Handle x64_sse4.
26176         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
26177         instruction for 64bit SSE4_1 targets.  Update insn attributes.
26178         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
26179         instruction for SSE4_1 targets.  Update insn attributes.
26180         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26181         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
26182         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
26183         const_1 selector.
26184         (*vec_extractv4si): Rename from *sse4_1_pextrd.
26185         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
26186         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
26188 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26190         PR target/57108
26191         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
26193 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
26195         * final.c (do_assembler_dialects): Don't handle curly braces and
26196         vertical bar escaped by % as dialect delimiters.
26197         (output_asm_insn): Print curly braces and vertical bar if escaped
26198         by % and ASSEMBLER_DIALECT defined.
26199         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
26200         * doc/tm.texi: Regenerated.
26202 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
26204         * config/mips/mips.c: Include tree-pass.h.
26205         (mips_reorg): Split in pre- and post-dbr_schedule parts.
26206         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
26207         (pass_mips_machine_reorg2): New machine specific pass.
26208         (insert_pass_mips_machine_reorg2): New pass plugin definition.
26209         (mips_option_override): Register the new pass.
26210         * rtl.h (cleanup_barriers): Remove prototype.
26211         (dbr_schedule): Likewise.
26212         * jump.c (cleanup_barriers): Make static.
26213         * reorg.c (dbr_schedule): Likewise.
26215 2013-05-06  Richard Biener  <rguenther@suse.de>
26217         PR tree-optimization/57185
26218         * tree-parloops.c (add_field_for_reduction): Handle anonymous
26219         SSA names properly.
26221 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
26223         PR target/57106
26224         * config/i386/i386.c (add_parameter_dependencies): Add dependence
26225         between "first_arg" and "insn", not "last" and "insn".
26227 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26229         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
26230         (find_candidates_in_block): Re-enable slsr_process_phi.
26231         (create_phi_basis): Fix double counting of candidate adjustment.
26233 2013-05-06  Richard Biener  <rguenther@suse.de>
26235         PR middle-end/57147
26236         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
26237         the edge is also fallthru, preserve it and just clear the
26238         abnormal flag.
26239         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
26240         also complex, preserve that and just clear the fallthru flag.
26241         * tree-inline.c (update_ssa_across_abnormal_edges): Also
26242         update virtual operands.
26244 2013-05-06  Alan Modra  <amodra@gmail.com>
26246         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
26247         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
26248         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
26249         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
26250         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26251         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
26253 2013-05-06  Alan Modra  <amodra@gmail.com>
26255         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
26256         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
26257         (DEFAULT_ASM_ENDIAN): Define.
26258         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26259         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
26260         Update -K PIC clause from sysv4.h.
26261         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
26262         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
26264 2013-05-06  Alan Modra  <amodra@gmail.com>
26266         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
26267         twice for little-endian.
26268         (ashrdi3_no_power, ashrdi3): Support little-endian.
26270 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26272         PR target/55303
26273         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
26274         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
26275         related expanders.
26276         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
26277         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
26278         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
26279         New predicates.
26281 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
26282             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26284         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
26285         * config/pa/pa.opt: Make mbig-switch a no-op.
26286         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
26287         (CASE_VECTOR_MODE): Always return SImode.
26288         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
26289         for the !TARGET_BIG_SWITCH case.
26290         * config/pa/pa-linux.h: Likewise.
26291         * config/pa/pa-openbsd.h: Likewise.
26292         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
26293         * config/pa/pa.md (short_jump): Remove define_insn.
26294         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
26295         (casesi0): Remove define_insn.
26296         (type): Remove btable_branch.
26297         (pa_combine_type): Likewise.
26298         (in_nullified_branch_delay): Likewise.
26299         (in_call_delay): Likewise.
26300         (define_delay): Likewise.
26301         (define_insn_reservation "Z3"): Likewise.
26302         (define_insn_reservation "Z4"): Likewise.
26303         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
26304         (pa_adjust_insn_length): Remove adjustment for btable branches.
26305         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
26306         and mno-big-switch
26308 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
26310         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26311         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
26312         Add m->r,x alternatives.
26313         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
26314         splitters using SWI48x mode iterator.
26315         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
26316         TARGET_64BIT.  Add m->x alternative.
26317         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
26318         Add o->x alternative.  Enable for TARGET_SSE.
26319         (sse_storeq): Remove expander.
26320         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
26321         with memory input operand.
26322         (*vec_extractv2di_1 splitter): New.
26323         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
26324         * config/i386/i386.md (ssevecmodelower): New mode attribute.
26326 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
26328         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
26329         (INT_LOWPART): Delete.
26330         (extract_MB): Adjust.
26331         (extract_ME): Adjust.
26332         (print_operand): Adjust.
26334 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
26336         * config/rs6000/predicates.md (reg_or_add_cint_operand,
26337         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26338         (reg_or_logical_cint_operand, easy_fp_constant,
26339         logical_const_operand): Delete "CONST_DOUBLE" case.
26340         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
26341         "HOST_BITS_PER_WIDE_INT == 64" test.
26342         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
26343         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
26344         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
26345         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
26346         test.
26347         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
26348         CONST_DOUBLE DImode/VOIDmode case.
26349         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
26350         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
26351         CONST_DOUBLE VOIDmode case.
26352         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26353         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
26354         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
26355         Delete CONST_DOUBLE case.
26356         (splitters for mov FMOVE64 const_double): Delete
26357         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
26358         "HOST_BITS_PER_WIDE_INT >= 64" test.
26359         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
26360         case.
26361         (mov DI const_double): Delete.
26363 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
26365         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
26366         on op shows all bits zero in mode of a lowpart subreg, return zero.
26368 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
26370         PR target/57150
26371         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
26372         to save TFmode registers and DImode to save TImode registers for
26373         caller save operations.
26374         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
26375         mark being partially clobbered since they only use the first
26376         double word.
26378         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
26379         and TDmode only use the upper 64-bits of each VSX register.
26381 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26383         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
26384         (find_candidates_in_block): Disable slsr_process_phi.
26386 2013-05-03  Guozhi Wei  <carrot@google.com>
26388         * coverage.c (coverage_obj_init): Move the construction of gcov
26389         constructor to ...
26390         (build_init_ctor): ... here.
26392 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26394         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
26395         (slsr_cand_d): Redefine def_phi.
26396         (stride_status, phi_adjust_status, count_phis_status): New enums.
26397         (find_phi_def): New.
26398         (find_basis_for_base_expr): New.
26399         (find_basis_for_candidate): Handle hidden bases.
26400         (alloc_cand_and_find_basis): Handle phi candidates.
26401         (slsr_process_phi): New.
26402         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
26403         (create_mul_imm_cand): Likewise.
26404         (create_add_ssa_cand): Exclude phi base candidates.
26405         (create_add_imm_cand): Likewise.
26406         (slsr_process_cast): Likewise.
26407         (slsr_process_copy): Likewise.
26408         (find_candidates_in_block): Handle phi candidates.
26409         (dump_candidate): Likewise.
26410         (unconditional_cands): Delete.
26411         (unconditional_cands_with_known_stride_p): Delete.
26412         (phi_dependent_cand_p): New.
26413         (cand_increment): Handle phi-dependent candidates.
26414         (replace_dependent): Delete.
26415         (replace_mult_candidate): New.
26416         (replace_unconditional_candidate): New.
26417         (incr_vec_index): Move to avoid forward reference.
26418         (create_add_on_incoming_edge): New.
26419         (create_phi_basis): New.
26420         (replace_dependents): Delete.
26421         (replace_conditional_candidate): New.
26422         (phi_add_costs): New.
26423         (replace_uncond_cands_and_profitable_phis): New.
26424         (record_increment): Handle phi adjustments.
26425         (record_phi_increments): New.
26426         (record_increments): Handle phi adjustments.
26427         (phi_incr_cost): New.
26428         (lowest_cost_path): Handle phis.
26429         (total_savings): Likewise.
26430         (analyze_increments): Likewise.
26431         (ncd_with_phi): New.
26432         (ncd_of_cand_and_phis): New.
26433         (nearest_common_dominator_for_cands): Handle phi increments.
26434         (all_phi_incrs_profitable): New.
26435         (replace_profitable_candidates): Handle phi-dependent candidates.
26436         (analyze_candidates_and_replace): Likewise.
26438 2013-05-03  Teresa Johnson  <tejohnson@google.com>
26440         PR bootstrap/57154
26441         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
26442         do not exceed REG_BR_PROB_BASE.
26444 2013-05-03  Jeff Law  <law@redhat.com>
26446         PR tree-optimization/57144
26447         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
26448         operand of the condition will bit into the new type when eliminating
26449         a cast feeding a condition.
26451 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
26453         PR rtl-optimization/57130
26454         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
26455         of COMPARE as in_code to the recursive call if needed.
26457 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
26459         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
26460         (enabled): Handle new members.
26461         * config/i386/sse.md (*vec_concatv2si): Merge from
26462         *vec_concatv2si_sse2 and vec_concatv2si_sse.
26463         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
26465 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
26467         PR tree-optimization/57027
26468         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
26469         for fnms opportunity, check we got the prerequisite kind
26470         of tree / gimple before using accessor functions.
26472 2013-05-03  Richard Biener  <rguenther@suse.de>
26474         * double-int.h (lshift): New overload without precision
26475         and arith argument.
26476         (operator *=, operator +=, operator -=): Move ...
26477         * double-int.c (operator *=, operator +=, operator -=): ... here
26478         and implement more efficiently.
26479         (mul_double_with_sign): Remove.
26480         (lshift_double): Adjust to take unsinged shift argument, push
26481         dispatching code to callers.
26482         (mul_double_wide_with_sign): Add early out for callers that
26483         are not interested in high parts or overflow.
26484         (lshift): New function.
26485         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
26486         dispatch code here.
26487         (lrotate, rrotate): Use logical shifts.
26488         * expr.c (get_inner_reference): Use lshift.
26489         * fixed-value.c (do_fixed_divide): Likewise.
26490         * tree-dfa.c (get_ref_base_and_extent): Likewise.
26491         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26492         (indirect_refs_may_alias_p): Likewise.
26493         (stmt_kills_ref_p_1): Likewise.
26495 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
26497         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
26499 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
26501         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
26502         scalar form of FABD instruction.
26504 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
26506         * lra-constraints.c (process_alt_operands): Add checking alt
26507         number to choose the best alternative.
26509 2013-05-02  Richard Biener  <rguenther@suse.de>
26511         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
26512         bitmap and its handling.
26513         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
26515 2013-05-02  Richard Biener  <rguenther@suse.de>
26517         PR middle-end/57140
26518         * tree-inline.c (copy_loops): Properly handle removed loops.
26519         (copy_cfg_body): Mark destination loops for fixup if source
26520         loops needed fixup.
26522 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
26524         PR target/56732
26525         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
26526         generating simple_return for naked functions.
26528 2013-05-02  Martin Jambor  <mjambor@suse.cz>
26530         PR middle-end/56988
26531         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
26532         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
26533         flags match.
26534         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
26535         ipa_agg_replacement_value structures.
26536         (known_aggs_to_agg_replacement_list): Likewise.
26537         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
26538         (read_agg_replacement_chain): Likewise.
26539         (ipcp_transform_function): Also check that by_ref flags match.
26541 2013-05-02  Richard Biener  <rguenther@suse.de>
26543         * graphds.h (struct graph): Add obstack member.
26544         * graphds.c (new_graph): Initialize obstack and allocate
26545         vertices from it.
26546         (add_edge): Allocate edge from the obstack.
26547         (free_graph): Free the obstack instead of all edges and vertices.
26549 2013-05-02  Teresa Johnson  <tejohnson@google.com>
26551         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
26552         divides.
26553         * cfg.c (update_bb_profile_for_threading): Ditto.
26554         * tree-inline.c (copy_bb): Ditto.
26555         (copy_edges_for_bb): Ditto.
26556         (initialize_cfun): Ditto.
26557         (copy_cfg_body): Ditto.
26558         (expand_call_inline): Ditto.
26559         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
26560         (estimate_node_size_and_time): Ditto.
26561         (inline_merge_summary): Ditto.
26562         * cgraphclones.c (cgraph_clone_edge): Ditto.
26563         (cgraph_clone_node): Ditto.
26564         * sched-rgn.c (compute_dom_prob_ps): Ditto.
26565         (compute_trg_info): Ditto.
26567 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
26569         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
26570         S reg when fp attribute set.
26571         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
26573 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
26575         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
26576         New pattern.
26577         (*and_one_cmplsi3_compare0_uxtw): Likewise.
26578         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
26579         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
26581 2013-05-02  Richard Biener  <rguenther@suse.de>
26583         * tree-scalar-evolution.c (scev_info_hasher): Remove.
26584         (struct instantiate_cache_entry): New type.
26585         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
26586         (struct instantiate_cache_type): New type.
26587         (set_instantiated_value, get_instantiated_value): Remove.
26588         (get_instantiated_value_entry): New function.
26589         (instantiate_scev_name): Use the new cache and adjust.
26590         (instantiate_scev_poly): Adjust.
26591         (instantiate_scev_binary): Likewise.
26592         (instantiate_array_ref): Likewise.
26593         (instantiate_scev_convert): Likewise.
26594         (instantiate_scev_not): Likewise.
26595         (instantiate_scev_3): Likewise.
26596         (instantiate_scev_2): Likewise.
26597         (instantiate_scev_r): Likewise.
26598         (instantiate_scev): Likewise.
26599         (resolve_mixers): Likewise.
26601 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
26603         PR target/57091
26604         * lra-constraints.c (best_small_class_operands_num): Remove.
26605         (process_alt_operands): Remove small_class_operands_num.  Take
26606         small classes operands into losers and only if the operand is not
26607         matched.  Modify debugging output.
26608         (curr_insn_transform): Remove best_small_class_operands_num.
26609         Print insn name.
26611 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26613         * config/aarch64/aarch64-builtins.c
26614         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
26615         * config/aarch64/aarch64-simd-builtins.def
26616         (reduc_splus_): Add new modes.
26617         (reduc_uplus_): New.
26618         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
26619         (reduc_uplus_v4sf): Likewise.
26620         (reduc_splus_v4sf): Likewise.
26621         (aarch64_addv<mode>): Likewise.
26622         (reduc_uplus_<mode>): Likewise.
26623         (reduc_splus_<mode>): Likewise.
26624         (aarch64_addvv2di): Likewise.
26625         (reduc_uplus_v2di): Likewise.
26626         (reduc_splus_v2di): Likewise.
26627         (aarch64_addvv2si): Likewise.
26628         (reduc_uplus_v2si): Likewise.
26629         (reduc_splus_v2si): Likewise.
26630         (reduc_<sur>plus_<mode>): New.
26631         (reduc_<sur>plus_v2di): Likewise.
26632         (reduc_<sur>plus_v2si): Likewise.
26633         (reduc_<sur>plus_v4sf): Likewise.
26634         (aarch64_addpv4sf): Likewise.
26635         * config/aarch64/arm_neon.h
26636         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
26637         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
26638         add UNSPEC_SADDV, UNSPEC_UADDV.
26639         (SUADDV): New.
26640         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
26642 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26644         * config/aarch64/arm_neon.h
26645         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
26647 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26649         * config/aarch64/aarch64-builtins
26650         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
26652 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26654         * config/aarch64/aarch64-simd-builtins.def
26655         (reduc_smax_): New.
26656         (reduc_smin_): Likewise.
26657         (reduc_umax_): Likewise.
26658         (reduc_umin_): Likewise.
26659         (reduc_smax_nan_): Likewise.
26660         (reduc_smin_nan_): Likewise.
26661         (fmax): Remove.
26662         (fmin): Likewise.
26663         (smax): Update for V2SF, V4SF and V2DF modes.
26664         (smin): Likewise.
26665         (smax_nan): New.
26666         (smin_nan): Likewise.
26667         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
26668         (<su><maxmin><mode>3): ...This, refactor.
26669         (s<maxmin><mode>3): New.
26670         (<maxmin_uns><mode>3): Likewise.
26671         (reduc_<maxmin_uns>_<mode>): Refactor.
26672         (reduc_<maxmin_uns>_v4sf): Likewise.
26673         (reduc_<maxmin_uns>_v2si): Likewise.
26674         (aarch64_<fmaxmin><mode>: Remove.
26675         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
26676         new builtin names.
26677         (vmin<q>_f<32,64>): Likewise.
26678         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26679         (FMAXMIN): New.
26680         (su): Add mappings for smax, smin, umax, umin.
26681         (maxmin): New.
26682         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26683         (FMAXMIN): Rename as...
26684         (FMAXMIN_UNS): ...This.
26685         (maxminv): Remove.
26686         (fmaxminv): Likewise.
26687         (fmaxmin): Likewise.
26688         (maxmin_uns): New.
26689         (maxmin_uns_op): Likewise.
26691 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26693         * config/aarch64/arm_neon.h
26694         (vac<ge, gt><sd>_f<32, 64>): Rename to...
26695         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
26696         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
26698 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26700         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
26701         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
26703 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26705         * config/aarch64/aarch64-simd.md
26706         (vcond<mode>_internal): Handle special cases for constant masks.
26707         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
26708         (vcondu<mode><mode>): Likewise.
26709         (vcond<v_cmp_result><mode>): New.
26711 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26713         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
26714         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
26715         * config/aarch64/aarch64-simd-builtins.def
26716         (cmeq): Update to BUILTIN_VALLDI.
26717         (cmgt): Likewise.
26718         (cmge): Likewise.
26719         (cmle): Likewise.
26720         (cmlt): Likewise.
26721         * config/aarch64/arm_neon.h
26722         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
26723         to builtins or C as appropriate.
26725 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26727         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
26728         (cmgeu): ...This.
26729         (cmhi): Rename to...
26730         (cmgtu): ...This.
26731         * config/aarch64/aarch64-simd.md
26732         (simd_mode): Add SF.
26733         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
26734         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
26735         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
26736         (cstore<mode>_neg): ...This.
26737         * config/aarch64/iterators.md
26738         (VALLF): new.
26739         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
26740         (COMPARISONS): New.
26741         (UCOMPARISONS): Likewise.
26742         (optab): Add missing comparisons.
26743         (n_optab): New.
26744         (cmp_1): Likewise.
26745         (cmp_2): Likewise.
26746         (CMP): Likewise.
26747         (cmp): Remove.
26748         (VCMP_S): Likewise.
26749         (VCMP_U): Likewise.
26750         (V_cmp_result): Add DF, SF modes.
26751         (v_cmp_result): Likewise.
26752         (v): Likewise.
26753         (vmtype): Likewise.
26754         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
26756 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
26758         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
26759         define_insn to define_insn_and_split.
26760         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
26761         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
26762         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
26763         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
26764         (thumb2_negscc): Likewise.
26766 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
26768         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
26770 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
26772         * config/arm/thumb2.md: Remove trailing whitespaces.
26774 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26776         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
26777         Use gen_int_mode rather than GEN_INT.
26779 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
26781         * value-prof.c (stream_in_histogram_value): Remove the strayed
26782         debug_gimple_stmt.
26784 2013-04-30  Richard Biener  <rguenther@suse.de>
26786         PR middle-end/57122
26787         * cfghooks.c (split_edge): Properly check for the loop latch edge.
26789 2013-04-30  Richard Biener  <rguenther@suse.de>
26791         PR middle-end/57107
26792         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
26794 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
26796         PR rtl-optimization/56957
26797         PR rtl-optimization/57105
26798         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
26799         variable.  Use just INSN_UID for determining whether an insn
26800         should be only disconnected from the insn stream.
26801         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
26803 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
26805         PR tree-optimization/57104
26806         * tsan.c (instrument_expr): Don't instrument accesses to
26807         DECL_HARD_REGISTER VAR_DECLs.
26809 2013-04-30  Richard Biener  <rguenther@suse.de>
26811         * function.h (loops_for_fn): New inline function.
26812         (set_loops_for_fn): Likewise.
26813         * cfgloop.h (place_new_loop): Add struct function parameter.
26814         (get_loop): Likewise.
26815         (get_loops): Likewise.
26816         (number_of_loops): Likewise.
26817         (fel_next): Adjust.
26818         (fel_init): Likewise.
26819         * cfg.c (get_loop_copy): Adjust.
26820         * cfgloop.c (flow_loops_dump): Likewise.
26821         (record_loop_exits): Likewise.
26822         (verify_loop_structure): Likewise.
26823         * cfgloopanal.c (mark_irreducible_loops): Likewise.
26824         (estimate_reg_pressure_cost): Likewise.
26825         (mark_loop_exit_edges): Likewise.
26826         * cfgloopmanip.c (place_new_loop): Likewise.
26827         (add_loop): Likewise.
26828         (duplicate_loop): Likewise.
26829         * graph.c (draw_cfg_nodes): Likewise.
26830         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
26831         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
26832         (extract_affine_chrec): Likewise.
26833         (build_scop_iteration_domain): Likewise.
26834         * graphite.c (graphite_initialize): Likewise.
26835         * ira-build.c (create_loop_tree_nodes): Likewise.
26836         (more_one_region_p): Likewise.
26837         (rebuild_regno_allocno_maps): Likewise.
26838         (mark_loops_for_removal): Likewise.
26839         (mark_all_loops_for_removal): Likewise.
26840         (remove_unnecessary_regions): Likewise.
26841         (ira_build): Likewise.
26842         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
26843         * loop-init.c (fix_loop_structure): Likewise.
26844         (gate_rtl_move_loop_invariants): Likewise.
26845         (gate_rtl_unswitch): Likewise.
26846         (gate_rtl_unroll_and_peel_loops): Likewise.
26847         (rtl_doloop): Likewise.
26848         * lto-streamer-in.c (input_cfg): Likewise.
26849         * lto-streamer-out.c (output_cfg): Likewise.
26850         * modulo-sched.c (sms_schedule): Likewise.
26851         * predict.c (tree_estimate_probability): Likewise.
26852         (tree_estimate_probability_driver): Likewise.
26853         (estimate_loops): Likewise.
26854         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
26855         (move_sese_region_to_fn): Likewise.
26856         (debug_loop_num): Likewise.
26857         * tree-chrec.c (chrec_evaluate): Likewise.
26858         (hide_evolution_in_other_loops_than_loop): Likewise.
26859         (chrec_component_in_loop_num): Likewise.
26860         (reset_evolution_in_loop): Likewise.
26861         (evolution_function_is_invariant_rec_p): Likewise.
26862         * tree-if-conv.c (main_tree_if_conversion): Likewise.
26863         * tree-inline.c (copy_loops): Likewise.
26864         (copy_cfg_body): Likewise.
26865         (tree_function_versioning): Likewise.
26866         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
26867         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26868         Likewise.
26869         (add_to_evolution_1): Likewise.
26870         (scev_const_prop): Likewise.
26871         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
26872         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
26873         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
26874         (tree_ssa_lim_initialize): Likewise.
26875         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
26876         (verify_loop_closed_ssa): Likewise.
26877         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
26878         (tree_ssa_loop_im): Likewise.
26879         (tree_ssa_loop_unswitch): Likewise.
26880         (tree_vectorize): Likewise.
26881         (check_data_deps): Likewise.
26882         (tree_ssa_loop_ivcanon): Likewise.
26883         (tree_ssa_loop_bounds): Likewise.
26884         (tree_complete_unroll): Likewise.
26885         (tree_complete_unroll_inner): Likewise.
26886         (tree_parallelize_loops): Likewise.
26887         (tree_ssa_loop_prefetch): Likewise.
26888         (tree_ssa_loop_ivopts): Likewise.
26889         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
26890         * tree-vectorizer.c (vectorize_loops): Likewise.
26892 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
26894         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
26895         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
26896         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
26897         with EABI_LINK_SPEC.
26899 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
26901         PR target/44578
26902         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
26903         alternative.
26905 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
26907         PR target/57097
26908         * lra-constraints.c (process_alt_operands): Discourage a bit more
26909         using memory for pseudos.  Print cost dump for alternatives.
26910         Modify cost values for conflicts with early clobbers.
26911         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
26913 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
26915         PR target/57098
26916         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
26918 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
26920         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
26921         from/to S register.
26922         (movdi_aarch64): Support LDR/STR from/to D register.
26924 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
26926         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
26927         or higher by default.
26929 2013-04-29  Richard Biener  <rguenther@suse.de>
26931         PR middle-end/57075
26932         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
26933         even if not adding abnormal edges for calls that can make
26934         abnormal gotos.
26936 2013-04-29  Richard Biener  <rguenther@suse.de>
26938         PR middle-end/57103
26939         * tree-cfg.c (move_stmt_op): Fix condition under which to update
26940         TREE_BLOCK.
26941         (move_stmt_r): Remove redundant checking.
26943 2013-04-29  Teresa Johnson  <tejohnson@google.com>
26945         PR bootstrap/57077
26946         * basic-block.h (apply_scale): New function.
26947         (apply_probability): Use apply_scale.
26948         * gimple-streamer-in.c (input_bb): Ditto.
26949         * lto-streamer-in.c (input_cfg): Ditto.
26950         * lto-cgraph.c (merge_profile_summaries): Ditto.
26951         * tree-optimize.c (execute_fixup_cfg): Ditto.
26952         * tree-inline.c (copy_bb): Update comment to use apply_scale.
26953         (copy_edges_for_bb): Ditto.
26954         (copy_cfg_body): Ditto.
26956 2013-04-29  Tom de Vries  <tom@codesourcery.com>
26958         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
26959         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
26960         (tail_merge_optimize): Handle current_loops == NULL.
26962 2013-04-26  Jeff Law  <law@redhat.com>
26964         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
26965         (simplify_cond_using_ranges): Generalize code to simplify
26966         COND_EXPRs where one argument is a constant and the other
26967         is an SSA_NAME created by an integral type conversion.
26969 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26971         * config/arm/arm.md (store_minmaxsi): Use only when
26972         optimize_insn_for_size_p.
26974 2013-04-29  Christian Bruel  <christian.bruel@st.com>
26976         PR target/57108
26977         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
26979 2013-04-29  Richard Biener  <rguenther@suse.de>
26981         PR middle-end/57089
26982         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
26983         loop tree make sure to schedule a fixup for the child as well.
26984         (expand_omp_for_generic): Properly add loops.
26985         (expand_omp_for_static_nochunk): Likewise.
26986         (expand_omp_for_static_chunk): Likewise.
26987         (expand_omp_for): For the degenerate case fixup loops.
26988         (expand_omp_sections): Fix default bb placement in loops.
26989         (expand_omp_atomic_pipeline): Properly add loops.
26991 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26993         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
26995 2013-04-29  Tom de Vries  <tom@codesourcery.com>
26997         * tree-ssa-tail-merge.c: Update header comment.
26999 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27001         * config/aarch64/arm_neon.h
27002         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
27003         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
27004         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
27005         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
27006         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
27007         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
27008         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
27009         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
27011 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27013         * config/aarch64/aarch64-simd.md
27014         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
27015         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
27016         fix_trunc, fixuns_trunc.
27017         (ftrunc<VDQF:mode>2): New.
27018         * config/aarch64/iterators.md (optab): Add fix, fixuns.
27019         (fix_trunc_optab): New.
27021 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27023         * config/aarch64/aarch64-builtins.c
27024         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
27025         iceilf, lround, iroundf.
27027 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27029         PR target/54349
27030         * config/i386/i386.h (enum ix86_tune_indices)
27031         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
27032         New, split from X86_TUNE_INTER_UNIT_MOVES.
27033         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
27034         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
27035         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
27036         (TARGET_INTER_UNIT_MOVES): Remove.
27037         * config/i386/i386.c (initial_ix86_tune_features): Update.
27038         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
27039         (ix86_expand_convert_uns_didf_sse): Use
27040         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27041         (ix86_expand_vector_init_one_nonzero): Ditto.
27042         (ix86_expand_vector_init_interleave): Ditto.
27043         (inline_secondary_memory_needed): Return true for moves from SSE class
27044         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
27045         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
27046         * config/i386/constraints.md (Yi, Ym): Depend on
27047         TARGET_INTER_UNIT_MOVES_TO_VEC.
27048         (Yj, Yn): New constraints.
27049         * config/i386/i386.md (*movdi_internal): Change constraints of
27050         operand 1 from Yi to Yj and from Ym to Yn.
27051         (*movsi_internal): Ditto.
27052         (*movdf_internal): Ditto.
27053         (*movsf_internal): Ditto.
27054         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
27055         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27056         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
27057         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
27058         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
27059         * config/i386/sse.md (movdi_to_sse): Ditto.
27060         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
27061         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
27062         TARGET_INTER_UNIT_MOVES.
27063         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
27064         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
27065         instead of TARGET_INTER_UNIT_MOVES.
27066         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
27067         operand 1 from Yi to Yj and from Ym to Yn.
27069 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27071         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
27072         (float_truncate_hi_): Likewise.
27073         (float_extend_lo_): Likewise.
27074         (float_truncate_lo_): Likewise.
27075         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
27076         (aarch64_float_extend_lo_v2df): Likewise.
27077         (vec_unpacks_hi_v4sf): Likewise.
27078         (aarch64_float_truncate_lo_v2sf): Likewise.
27079         (aarch64_float_truncate_hi_v4sf): Likewise.
27080         (vec_pack_trunc_v2df): Likewise.
27081         (vec_pack_trunc_df): Likewise.
27083 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27085         * config/aarch64/aarch64-builtins.c
27086         (aarch64_fold_builtin): Fold float conversions.
27087         * config/aarch64/aarch64-simd-builtins.def
27088         (floatv2si, floatv4si, floatv2di): New.
27089         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
27090         * config/aarch64/aarch64-simd.md
27091         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
27092         * config/aarch64/iterators.md (FLOATUORS): New.
27093         (optab): Add float, floatuns.
27094         (su_optab): Likewise.
27096 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27098         * config/aarch64/aarch64-builtins.c
27099         (aarch64_builtin_vectorized_function): Use new names for
27100         fcvt builtins.
27101         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
27102         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
27103         (fcvtzu): Split as...
27104         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
27105         (fcvtas): Split as...
27106         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
27107         (fcvtau): Split as...
27108         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
27109         (fcvtps): Split as...
27110         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
27111         (fcvtpu): Split as...
27112         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
27113         (fcvtms): Split as...
27114         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
27115         (fcvtmu): Split as...
27116         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
27117         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
27118         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
27119         (lfrintnusf, lfrintnudf): Likewise.
27120         * config/aarch64/aarch64-simd.md
27121         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
27122         define_insn.
27123         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
27124         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
27125         (fcvt_pattern): Likewise.
27127 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27129         * config/aarch64/aarch64-simd.md
27130         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
27131         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
27133 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27135         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
27136         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
27137         (vrnd<a,m,n,p>_f32): Implement using builtins.
27138         (vrnd<i,x><q>_f<32, 64>): New.
27140 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27142         * config/aarch64/aarch64-builtins.c
27143         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
27144         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
27145         (frintz): Rename to...
27146         (btrunc): ...this.
27147         (frintp): Rename to...
27148         (ceil): ...this.
27149         (frintm): Rename to...
27150         (floor): ...this.
27151         (frinti): Rename to...
27152         (nearbyint): ...this.
27153         (frintx): Rename to...
27154         (rint): ...this.
27155         (frinta): Rename to...
27156         (round): ...this.
27157         * config/aarch64/aarch64-simd.md
27158         (aarch64_frint<frint_suffix><mode>): Delete.
27159         (<frint_pattern><mode>2): Convert to insn.
27160         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
27161         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
27162         (frint_pattern): Likewise.
27163         (frint_suffix): Likewise.
27165 2013-04-29  Richard Biener  <rguenther@suse.de>
27167         PR tree-optimization/57081
27168         * loop-init.c: Include tree-flow.h.
27169         (loop_optimizer_finalize): Free number of iteration estimates.
27170         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
27172 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
27174         PR tree-optimization/57083
27175         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
27176         non-singleton shift count range, zero extend low_bound for uns case.
27178         * config/i386/predicates.md (general_vector_operand): New predicate.
27179         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
27180         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
27181         if they aren't nonimmediate operands.  If their original values
27182         satisfy const_vector_equal_evenodd_p, don't shift them.
27183         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
27184         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
27185         if not nonimmediate_operand.
27186         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
27187         instead of register_operand.
27188         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
27190 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27192         * stor-layout.c (finalize_size_functions): Allocate a structure and
27193         reset cfun before dumping the functions.
27195 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
27197         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
27199         PR target/56866
27200         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
27201         use xop_pmacsdqh if uns_p.
27202         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
27203         the immediate rotate count.
27205 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
27207         * rtl.h (struct rtx_def): Add comment for field jump.
27208         (LRA_SUBREG_P): New macro.
27209         * recog.c (register_operand): Check LRA_SUBREG_P.
27210         * lra.c (lra): Add note at the end of RTL code. Align non-empty
27211         stack frame.
27212         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27213         (lra_final_code_change): Skip subreg change for operators.
27214         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27215         if there are no operand changes.
27216         * lra-constraints.c (curr_insn_set): New.
27217         (match_reload): Set LRA_SUBREG_P.
27218         (emit_spill_move): Ditto.
27219         (check_and_process_move): Use curr_insn_set. Process only single
27220         set insns.  Don't initialize sec_mem_p and change_p.
27221         (simplify_operand_subreg): Use LRA_SUBREG_P.
27222         (reg_in_class_p): New function.
27223         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
27224         of #ifdef.  Add code to remove cycling.
27225         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27226         non-null disp.  Reload inner instead of disp when base and index
27227         are null.  Try to put lo_sum into register.
27228         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27229         (check_and_process_move): Move code for move cost check to
27230         simple_move_p.  Remove equiv_substitution.
27231         (simple_move_p): New function.
27232         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
27233         curr_insn_set.  Call check_and_process_move only for single set
27234         insns.  Use the new function.  Move call of check_and_process_move
27235         after operand equiv substitution and address process.
27237 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27239         PR go/57045
27240         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
27241         with nonlocal goto receivers or returns twice calls, ignore
27242         unininitialized values from abnormal edges to nl goto receiver
27243         or returns twice call.
27245 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27247         PR tree-optimization/57051
27248         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
27249         and VEC_RSHIFT_EXPR if shift count is a multiple of element
27250         bitsize.
27252 2013-04-26  Richard Biener  <rguenther@suse.de>
27254         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
27255         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
27256         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
27257         (fixup_loop_arrays_after_move): New function.
27258         (move_sese_region_to_fn): Properly outline the loop tree parts
27259         of the SESE region.
27261 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
27263         * config/i386/i386.md (type, unit): Fix long lines.
27265 2013-04-26  Richard Biener  <rguenther@suse.de>
27267         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
27268         (lto-streamer-out.o): Likewise.
27269         * cfgloop.c (init_loops_structure): Export, add struct function
27270         argument and adjust.
27271         (flow_loops_find): Adjust.
27272         * cfgloop.h (enum loop_estimation): Add EST_LAST.
27273         (init_loops_structure): Declare.
27274         * lto-streamer-in.c: Include cfgloop.h.
27275         (input_cfg): Input the loop tree.
27276         * lto-streamer-out.c: Include cfgloop.h.
27277         (output_cfg): Output the loop tree.
27278         (output_struct_function_base): Do not drop PROP_loops.
27280 2013-03-26  Richard Biener  <rguenther@suse.de>
27282         * tree-cfg.c (execute_build_cfg): Build the loop tree.
27283         (pass_build_cfg): Provide PROP_loops.
27284         (move_sese_region_to_fn): Remove loops that are outlined into fn
27285         for now.
27286         * tree-inline.c: Include cfgloop.h.
27287         (initialize_cfun): Do not drop PROP_loops.
27288         (copy_loops): New function.
27289         (copy_cfg_body): Copy loop structure.
27290         (tree_function_versioning): Initialize destination loop tree.
27291         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
27292         (pass_parallelize_loops): Do IL verification.
27293         * loop-init.c (loop_optimizer_init): Fixup loops if required.
27294         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
27295         the CFG make sure we fixup loops as well.
27296         * tree-ssa-tail-merge.c: Include cfgloop.h.
27297         (replace_block_by): When merging loop latches mark loops for fixup.
27298         * lto-streamer-out.c (output_struct_function_base): Drop
27299         PROP_loops for now.
27300         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
27301         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
27302         * ipa-split.c: Include cfgloop.h.
27303         (split_function): Add the new return block to the loop tree root.
27304         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
27305         whether we have removed the forwarder block.
27306         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
27307         * cfgloop.h (place_new_loop): Declare.
27308         * cfgloopmanip.c (place_new_loop): Export.
27309         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
27310         (tree-switch-conversion.o): Likewise.
27311         (tree-complex.o): Likewise.
27312         (tree-inline.o): Likewise.
27313         (tree-ssa-tailmerge.o): Likewise.
27314         (ipa-split.o): Likewise.
27315         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
27316         (tree-ssa-copy.o): Likewise.
27317         * tree-switch-conversion.c: Include cfgloop.h
27318         (process_switch): If we emit a bit-test cascade, schedule loops
27319         for fixup.
27320         * tree-complex.c: Include cfgloop.h.
27321         (expand_complex_div_wide): Properly add new basic-blocks to loops.
27322         * asan.c: Include cfgloop.h.
27323         (create_cond_insert_point): Properly add new basic-blocks to
27324         loops, schedule loop fixup.
27325         * cfgloop.c (verify_loop_structure): Check that looks are not
27326         marked for fixup.
27327         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
27328         to loops.
27329         (expand_omp_for_generic): Likewise.
27330         (expand_omp_sections): Likewise.
27331         (expand_omp_atomic_pipeline): Schedule loops for fixup.
27332         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
27333         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
27334         is initialized, not when loops are present.
27335         * tree-parloops.c (parallelize_loops): Remove checking here.
27336         * passes.c (init_optimization_passes): Schedule a copy-propagation
27337         pass before complete unrolling of inner loops.
27339 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27341         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
27342         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
27343         (colorize_init): Add argument to _WIN32 version.
27344         * toplev.c: Include diagnostic-color.h.
27345         (process_options): Default to -fdiagnostics-color=auto if
27346         GCC_COLORS env var is in the environment.
27347         * common.opt (fdiagnostics-color=): Add Var and Init.
27348         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
27349         env var is in the environment, the default is auto rather than never.
27351         * diagnostic.h (file_name_as_prefix): Add context argument.
27352         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
27353         the string as locus.
27354         * langhooks.c (lhd_print_error_function): Adjust caller.
27356 2013-04-25  Lawrence Crowl  <crowl@google.com>
27358         * var-tracking.c (shared_hash_def::htab):
27359         Change type to hash_table.  Update dependent calls and types.
27361 2013-04-25  Lawrence Crowl  <crowl@google.com>
27363         * Makefile.in: Update as needed below.
27365         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
27366         Move declaration to after the type's method definitons.
27368         * attribs.c (htab_t scoped_attributes::attribute_hash):
27369         Change type to hash_table.  Update dependent calls and types.
27371         * bitmap.c (htab_t bitmap_desc_hash):
27372         Change type to hash_table.  Update dependent calls and types.
27374         * cselib.c (htab_t cselib_hash_table):
27375         Change type to hash_table.  Update dependent calls and types.
27377         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
27378         (hash_string_slot_node): Move implementation into lto-streamer.h
27379         struct string_slot_hasher.
27380         (eq_string_slot_node): Likewise.
27382         * data-streamer-out.c: Update output_block::string_hash_table
27383         dependent calls and types.
27385         * dwarf2cfi.c (htab_t trace_index):
27386         Change type to hash_table.  Update dependent calls and types.
27388         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
27389         Change type to hash_table.  Update dependent calls and types.
27390         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
27391         (htab_t optimize_external_refs::map): Likewise.
27392         (htab_t output_comp_unit::extern_map): Likewise.
27393         (htab_t output_comdat_type_unit::extern_map): Likewise.
27394         (htab_t output_macinfo::macinfo_htab): Likewise.
27395         (htab_t optimize_location_lists::htab): Likewise.
27396         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
27398         * except.c (htab_t ehspec_hash_type):
27399         Change type to hash_table.  Update dependent calls and types.
27400         (assign_filter_values::ttypes): Likewise.
27401         (assign_filter_values::ehspec): Likewise.
27402         (sjlj_assign_call_site_values::ar_hash): Likewise.
27403         (convert_to_eh_region_ranges::ar_hash): Likewise.
27405         * gcse.c (htab_t pre_ldst_table):
27406         Change type to hash_table.  Update dependent calls and types.
27408         * ggc-common.c (htab_t saving_htab):
27409         Change type to hash_table.  Update dependent calls and types.
27410         (htab_t loc_hash): Likewise.
27411         (htab_t ptr_hash): Likewise.
27412         (call_count): Rename ggc_call_count.
27413         (call_alloc): Rename ggc_call_alloc.
27414         (loc_descriptor): Rename make_loc_descriptor.
27415         (add_statistics): Rename ggc_add_statistics.
27417         * ggc-common.c (saving_htab):
27418         Change type to hash_table.  Update dependent calls and types.
27420         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
27421         (push_gimplify_context): Likewise.
27422         (pop_gimplify_context): Likewise.
27423         (struct gimple_temp_hash_elt): Added.
27424         (struct gimplify_hasher): Likewise.
27425         (struct gimplify_ctx.temp_htab):
27426         Change type to hash_table.  Update dependent calls and types.
27428         * gimple-fold.c: Include gimplify-ctx.h.
27430         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
27431         Change type to hash_table.  Update dependent calls and types.
27432         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
27433         avoid potential global name collision.
27435         * gimplify.c: Include gimplify-ctx.h.
27436         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
27437         (htab_t gimplify_ctx::temp_htab):
27438         Update dependent calls and types for new type hash_table.
27439         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
27440         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
27442         * gimplify-ctx.h: New.
27443         (struct gimple_temp_hash_elt): Move from gimplify.c.
27444         (class gimplify_hasher): New.
27445         (struct gimplify_ctx): Move from gimple.h.
27446         (htab_t gimplify_ctx::temp_htab):
27447         Change type to hash_table.  Update dependent calls and types.
27449         * graphite-clast-to-gimple.c: Include graphite-htab.h.
27450         (htab_t ivs_params::newivs_index):
27451         Change type to hash_table.  Update dependent calls and types.
27452         (htab_t ivs_params::params_index): Likewise.
27453         (htab_t print_generated_program::params_index): Likewise.
27454         (htab_t gloog::newivs_index): Likewise.
27455         (htab_t gloog::params_index): Likewise.
27457         * graphite.c: Include graphite-htab.h.
27458         4htab_t graphite_transform_loops::bb_pbb_mapping):
27459         Change type to hash_table.  Update dependent calls and types.
27461         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
27462         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
27463         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
27465         * graphite-dependences.c: Include graphite-htab.h.
27466         (loop_is_parallel_p): Change hash table type of parameter.
27468         * graphite-htab.h: New.
27469         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
27470         (extern find_pbb_via_hash): Move from graphite-poly.h.
27471         (extern loop_is_parallel_p): Move from graphite-poly.h.
27472         (extern get_loop_body_pbbs): Move from graphite-poly.h.
27474         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
27475         (extern loop_is_parallel_p): Move to graphite-htab.h.
27476         (extern get_loop_body_pbbs): Move to graphite-htab.h.
27478         * haifa-sched.c (htab_t delay_htab):
27479         Change type to hash_table.  Update dependent calls and types.
27480         (htab_t delay_htab_i2): Likewise.
27482         * ira-color.c (htab_t allocno_hard_regs_htab):
27483         Change type to hash_table.  Update dependent calls and types.
27485         * ira-costs.c (htab_t cost_classes_htab):
27486         Change type to hash_table.  Update dependent calls and types.
27488         * loop-invariant.c (htab_t merge_identical_invariants::eq):
27489         Change type to hash_table.  Update dependent calls and types.
27491         * loop-iv.c (htab_t bivs):
27492         Change type to hash_table.  Update dependent calls and types.
27494         * loop-unroll.c (htab_t opt_info::insns_to_split):
27495         Change type to hash_table.  Update dependent calls and types.
27496         (htab_t opt_info::insns_with_var_to_expand): Likewise.
27498         * lto-streamer.h (struct string_slot): Move from data-streamer.h
27499         (struct string_slot_hasher): New.
27500         (htab_t output_block::string_hash_table):
27501         Change type to hash_table.  Update dependent calls and types.
27503         * lto-streamer-in.c (freeing_string_slot_hasher): New.
27504         (htab_t file_name_hash_table):
27505         Change type to hash_table.  Update dependent calls and types.
27507         * lto-streamer-out.c: Update output_block::string_hash_table dependent
27508         calls and types.
27510         * lto-streamer.c (htab_t tree_htab):
27511         Change type to hash_table.  Update dependent calls and types.
27513         * omp-low.c: Include gimplify-ctx.h.
27515         * passes.c (htab_t name_to_pass_map):
27516         Change type to hash_table.  Update dependent calls and types.
27517         (pass_traverse): Rename to passes_pass_traverse.
27519         * plugin.c (htab_t event_tab):
27520         Change type to hash_table.  Update dependent calls and types.
27522         * postreload-gcse.c (htab_t expr_table):
27523         Change type to hash_table.  Update dependent calls and types.
27524         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
27526         * sese.c (debug_rename_map_1): Make extern.
27527         (htab_t copy_bb_and_scalar_dependences::rename_map):
27528         Change type to hash_table.  Update dependent calls and types.
27530         * sese.h (extern debug_rename_map): Move to .c file.
27532         * store-motion.c (htab_t store_motion_mems_table):
27533         Change type to hash_table.  Update dependent calls and types.
27535         * trans-mem.c (htab_t tm_new_mem_hash):
27536         Change type to hash_table.  Update dependent calls and types.
27538         * tree-browser.c (htab_t TB_up_ht):
27539         Change type to hash_table.  Update dependent calls and types.
27541         * tree-cfg.c (htab_t discriminator_per_locus):
27542         Change type to hash_table.  Update dependent calls and types.
27544         * tree-complex.c: Include tree-hasher.h
27545         (htab_t complex_variable_components):
27546         Change type to hash_table.  Update dependent calls and types.
27548         * tree-eh.c (htab_t finally_tree):
27549         Change type to hash_table.  Update dependent calls and types.
27551         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
27552         struct int_tree_hasher.
27553         (extern int_tree_map_eq): Likewise.
27554         (uid_decl_map_hash): Removed.
27555         (extern decl_tree_map_eq): Likewise.
27557         * tree-hasher.h: New.
27558         (struct int_tree_hasher): New.
27559         (typedef int_tree_htab_type): New.
27561         * tree-inline.c: Include gimplify-ctx.h.
27563         * tree-mudflap.c: Include gimplify-ctx.h.
27565         * tree-parloops.c: Include tree-hasher.h.
27566         (htab_t eliminate_local_variables_stmt::decl_address):
27567         Change type to hash_table.  Update dependent calls and types.
27568         (htab_t separate_decls_in_region::decl_copies): Likewise.
27570         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
27571         Change type to hash_table.  Update dependent calls and types.
27573         * tree-sra.c (candidates):
27574         Change type to hash_table.  Update dependent calls and types.
27576         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
27577         in tree-flow.h.
27578         (int_tree_map_hash): Likewise.
27580         * tree-ssa-dom.c (htab_t avail_exprs):
27581         Change type to hash_table.  Update dependent calls and types.
27583         * tree-ssa-live.c (var_map_base_init::tree_to_index):
27584         Change type to hash_table.  Update dependent calls and types.
27586         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
27587         Change type to hash_table.  Update dependent calls and types.
27589         * tree-ssa-phiopt.c (seen_ssa_names):
27590         Change type to hash_table.  Update dependent calls and types.
27592         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
27593         Change type to hash_table.  Update dependent calls and types.
27595         * tree-ssa-uncprop.c (equiv):
27596         Change type to hash_table.  Update dependent calls and types.
27598 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
27600         PR rtl-optimization/57003
27601         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
27602         call note_stores with kill_clobbered_value callback again after
27603         killing regs_invalidated_by_call.
27605 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27607         * config/aarch64/aarch64-simd.md
27608         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
27609         (aarch64_simd_bsl<mode>): Likewise.
27610         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
27612 2013-04-25  Marek Polacek  <polacek@redhat.com>
27614         PR tree-optimization/57066
27615         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
27617 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27619         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
27621 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27623         * config/aarch64/aarch64-builtins.c
27624         (aarch64_fold_builtin): New.
27625         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
27626         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
27627         * config/aarch64/aarch64-simd-builtins.def (abs): New.
27628         * config/aarch64/arm_neon.h
27629         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
27631 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27632             Tejas Belagod  <tejas.belagod@arm.com>
27634         * config/aarch64/aarch64-builtins.c
27635         (aarch64_gimple_fold_builtin): New.
27636         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
27637         * config/aarch64/aarch64-simd-builtins.def (addv): New.
27638         * config/aarch64/aarch64-simd.md (addpv4sf): New.
27639         (addvv4sf): Update.
27640         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
27642 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27644         * config/aarch64/aarch64.md
27645         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
27647 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27649         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
27650         (*ngcsi_uxtw): New pattern.
27652 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27653             Julian Brown  <julian@codesourcery.com>
27655         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
27656         (TB_DREG): Add T_V4HF.
27657         (v4hf_UP): New macro.
27658         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27659         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27660         Handle initialisation of V4HF. Adjust initialisation of reinterpret
27661         built-ins.
27662         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27663         (arm_vector_mode_supported_p): Handle V4HF.
27664         (arm_mangle_map): Handle V4HFmode.
27665         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
27666         * config/arm/arm_neon_builtins.def: Add entries for
27667         vcvtv4hfv4sf, vcvtv4sfv4hf.
27668         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
27669         (neon_vcvtv4hfv4sf): Likewise.
27670         * config/arm/neon-gen.ml: Handle half-precision floating point
27671         features.
27672         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
27673         * config/arm/arm_neon.h: Regenerate.
27674         * config/arm/neon.ml (type elts): Add F16.
27675         (type vectype): Add T_float16x4, T_floatHF.
27676         (type vecmode): Add V4HF.
27677         (type features): Add Requires_FP_bit feature.
27678         (elt_width): Handle F16.
27679         (elt_class): Likewise.
27680         (elt_of_class_width): Likewise.
27681         (mode_of_elt): Refactor.
27682         (type_for_elt): Handle F16, fix error messages.
27683         (vectype_size): Handle T_float16x4.
27684         (vcvt_sh): New function.
27685         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
27686         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
27687         (string_of_mode): Handle V4HF.
27688         * doc/arm-neon-intrinsics.texi: Regenerate.
27690 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27692         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
27693         format specifier in 'X' case.
27695 2013-04-25  Alan Modra  <amodra@gmail.com>
27697         PR target/57052
27698         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
27699         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
27700         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
27701         Repeat for many other rotate/shift and mask patterns using subregs.
27702         Name lshiftrt insns.
27703         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
27704         on WORDS_BIG_ENDIAN.
27706 2013-04-25  Alan Modra  <amodra@gmail.com>
27708         * config.gcc: Support little-endian powerpc-linux targets.
27709         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
27710         (LINK_OS_LINUX_SPEC): Define.
27711         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
27712         Preserve MASK_LITTLE_ENDIAN.
27713         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
27714         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
27715         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
27716         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
27717         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
27718         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
27719         Correct fp word order for little-endian.  Don't shift toc entries
27720         smaller than a word for little-endian.
27721         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
27722         (bswapdi2 splits): Correct low-part subreg for little-endian.
27723         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
27724         low/high where such is correct only for be.
27725         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
27726         little-endian for -mcall-aixdesc.
27728 2013-04-25  Alan Modra  <amodra@gmail.com>
27730         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27731         replace_equiv_address_nv.
27733 2013-04-25  Alan Modra  <amodra@gmail.com>
27735         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
27737 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27739         Revert:
27740         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27741         * rtl.h (struct rtx_def): ...
27743 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27745         PR rtl-optimizations/57046
27746         * lra-constraints (split_reg): Set up lra_risky_transformations_p
27747         for multi-reg splits.
27749 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
27751         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
27753 2013-04-24  Sterling Augustine  <saugustine@google.com>
27755         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
27756         (comp_dir_string, debug_str_dwo_section): New.
27757         (DEBUG_STR_DWO_SECTION): Rename to ...
27758         (DEBUG_DWO_STR_SECTION): ... this.
27759         (DEBUG_NORM_STR_SECTION): Delete.
27760         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
27761         (DEBUG_STR_DWO_SECTION_FLAGS): New.
27762         (find_AT_string): Move most logic to ...
27763         (find_AT_string_in_table): ... here.  New.
27764         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
27765         add_skeleton_AT_string.  Delete logic.
27766         (output_skeleton_debug_sections): Remove call to
27767         add_top_level_skeleton_die_attrs.
27768         (add_comp_dir_attribute): Move logic to comp_dir_string.
27769         (dwarf2out_init): Initialize debug_str_dwo_section.
27770         (output_indirect_string): Call find_string_form.
27771         (output_indirect_strings): Rewrite.
27772         (prune_unused_types): Empty skeleton_debug_str_hash.
27773         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
27774         (dwarf2out_finish):  Call output_indirect_strings.
27776 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
27778         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
27780 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27782         * rtl.h (struct rtx_def): Add comment for field jump.
27783         (LRA_SUBREG_P): New macro.
27784         * recog.c (register_operand): Check LRA_SUBREG_P.
27785         * lra.c (lra): Add note at the end of RTL code. Align non-empty
27786         stack frame.
27787         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27788         (lra_final_code_change): Skip subreg change for operators.
27789         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27790         if there are no operand changes.
27791         * lra-constraints.c (curr_insn_set): New.
27792         (match_reload): Set LRA_SUBREG_P.
27793         (emit_spill_move): Ditto.
27794         (check_and_process_move): Use curr_insn_set. Process only single
27795         set insns.  Don't initialize sec_mem_p and change_p.
27796         (simplify_operand_subreg): Use LRA_SUBREG_P.
27797         (reg_in_class_p): New function.
27798         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
27799         of #ifdef.  Add code to remove cycling.
27800         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27801         non-null disp.  Reload inner instead of disp when base and index
27802         are null.  Try to put lo_sum into register.
27803         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27804         (check_and_process_move): Move code for move cost check to
27805         simple_move_p.  Remove equiv_substitution.
27806         (simple_move_p): New function.
27807         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
27808         curr_insn_set.  Call check_and_process_move only for single set
27809         insns.  Use the new function.  Move call of check_and_process_move
27810         after operand equiv substitution and address process.
27812 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
27814         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
27815         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
27816         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
27818 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
27820         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
27822 2013-04-24  Marek Polacek  <polacek@redhat.com>
27824         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
27825         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
27826         (select_loops_exit_conditions): Likewise.
27827         (number_of_iterations_for_all_loops): Likewise.
27828         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
27829         (scev_analysis): Likewise.
27831 2013-04-02  Catherine Moore  <clm@codesourcery.com>
27832             Chao-ying Fu  <fu@mips.com>
27834         * config/mips/micromips.md (jraddiusp): New pattern.
27835         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
27836         instruction if possible.
27838 2013-04-24  Alan Modra  <amodra@gmail.com>
27840         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
27842 2013-04-24  Julian Brown  <julian@codesourcery.com>
27843             Chung-Lin Tang  <cltang@codesourcery.com>
27845         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
27846         dependency behavior in enumeration type DIE generation. Add TODO note
27847         to comments about future DW_FORM_sdata/udata re-work of related code.
27849 2013-04-23  Lawrence Crowl  <crowl@google.com>
27851         * Makefile.in: Update as needed below.
27853         * hash-table.h (class hash_table):
27854         Correct many methods with parameter types compare_type to the correct
27855         value_type.  (Correct code was unlikely to notice the change.)
27856         (hash_table::elements_with_deleted) New.
27857         (class hashtable::iterator): New.
27858         (hashtable::begin()): New.
27859         (hashtable::end()): New.
27860         (FOR_EACH_HASH_TABLE_ELEMENT): New.
27862         * statistics.c (statistics_hashes):
27863         Change type to hash_table.  Update dependent calls and types.
27865         * tree-into-ssa.c (var_infos):
27866         Change type to hash_table.  Update dependent calls and types.
27868         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
27869         Change type to hash_table.  Update dependent calls and types.
27871         * tree-ssa-loop-im.c (struct mem_ref.refs):
27872         Change type to hash_table.  Update dependent calls and types.
27874         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
27875         Change type to hash_table.  Update dependent calls and types.
27877         * tree-ssa-sccvn.c (vn_tables_s::nary):
27878         Change type to hash_table.  Update dependent calls and types.
27879         (vn_tables_s::phis): Likewise.
27880         (vn_tables_s::references): Likewise.
27882         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
27883         (vn_reference_eq): Update parameter and return types.
27885         * tree-ssa-structalias.c (pointer_equiv_class_table):
27886         Change type to hash_table.  Update dependent calls and types.
27887         (location_equiv_class_table): Likewise.
27889         * tree-vect-data-refs.c: Consequential changes for making
27890         peeling a hash_table.
27892         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
27893         (destroy_loop_vec_info): Dependent hash_table update.
27895         * tree-vectorizer.h (peeling_htab):
27896         Change type to hash_table.  Update dependent calls and types.
27898 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
27900         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
27901         to check the register content is equal or not.
27902         * lra-constraints.c (match_reload): Use lra_assign_reg_val
27903         to assign register content record.
27904         * lra-eliminations.c (update_reg_eliminate): Use
27905         lra_update_reg_val_offset to update register content offset.
27906         * lra-int.h (struct lra_reg): Add offset member.
27907         (lra_reg_val_equal_p): New static inline function.
27908         (lra_update_reg_val_offset): New static inline function.
27909         (lra_assign_reg_val): New static inline function.
27910         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
27911         to assign register content record.
27912         (initialize_lra_reg_info_element): Initial offset to zero.
27914 2013-04-23  Catherine Moore  <clm@codesourcery.com>
27916         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
27917         operands.  Record compression.
27919 2013-04-23  Xinliang David Li  <davidxl@google.com>
27921         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
27923 2013-04-23  Richard Biener  <rguenther@suse.de>
27925         PR middle-end/57036
27926         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
27927         parameter, only add abnormal goto edges from the copied body
27928         if the call could perform abnormal gotos.
27929         (copy_cfg_body): Adjust.
27931 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
27933         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
27935 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
27937         * coretypes.h (gimple_stmt_iterator): Add struct to make
27938         compatible with C.
27940 2013-04-23  Richard Biener  <rguenther@suse.de>
27942         PR tree-optimization/57026
27943         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
27944         from SSA names occuring in abnormal PHI nodes.
27946 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27948         * lto/lto.c (print_lto_report_1): Fix LTO report names.
27950 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27952         * lto/lto.c (print_lto_report_1): Declare early.
27953         (read_cgraph_and_symbols): Call print_lto_report_1 early.
27955 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27957         * common.opt (-flto-report-wpa): Add.
27958         * doc/invoke.texi (-flto-report-wpa): Add.
27959         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
27960         (lto_main): dito.
27962 2013-04-22  Xinliang David Li  <davidxl@google.com>
27964         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
27965         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
27966         * Makefile.in: New dependency
27968             David Daney <ddaney.cavm@gmail.com>
27970         * configure.ac (gcc_cv_as_micromips_support):  Use the
27971         --fatal-warnings option.
27972         * configure: Regenerate.
27974 2013-04-22  Marek Polacek  <polacek@redhat.com>
27976         PR sanitizer/56990
27977         * tsan.c (instrument_expr): Don't instrument expression
27978         in case its size is zero.
27980 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
27982         PR target/57032
27983         Revert:
27984         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
27986         * config/alpha/alpha.c (TARGET_LRA_P): New define.
27988 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27990         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
27991         (gimple_stmt_iterator): New typedef.
27992         * gimple.h (gimple_stmt_iterator): Rename to...
27993         (gimple_stmt_iterator_d): ... This.
27994         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
27995         trees be valid for GIMPLE and GENERIC.
27996         (TARGET_GIMPLE_FOLD_BUILTIN): New.
27997         * gimple-fold.c (gimple_fold_call): Call target hook
27998         gimple_fold_builtin.
27999         * hooks.c (hook_bool_gsiptr_false): New.
28000         * hooks.h (hook_bool_gsiptr_false): New.
28001         * target.def (fold_stmt): New.
28002         * doc/tm.texi: Regenerate.
28004 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
28006         PR target/57018
28007         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
28008         a set sp if no stack realignment.
28010 2013-04-22  Nick Clifton  <nickc@redhat.com>
28012         * config.gcc (tilegx-linux): Extend extra_objs rather than
28013         overwriting it.
28014         (tilepro-linux): Likewise.
28016 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28018         * config/aarch64/aarch64-builtins.c
28019         (CF): Remove.
28020         (CF0, CF1, CF2, CF3, CF4, CF10): New.
28021         (VAR<1-12>): Add MAP parameter.
28022         (BUILTIN_*): Likewise.
28023         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
28024         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
28025         (aarch64_ushl_n<mode>): Likewise.
28026         (aarch64_sshr_n<mode>): Likewise.
28027         (aarch64_ushr_n<mode>): Likewise.
28028         (aarch64_<maxmin><mode>): Likewise.
28029         (aarch64_sqrt<mode>): Likewise.
28030         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
28031         (vshr<q>_n_*): Likewise.
28033 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28035         * config/aarch64/aarch64-builtins.c
28036         (aarch64_simd_builtin_type_mode): Handle SF types.
28037         (sf_UP): Define.
28038         (BUILTIN_GPF): Define.
28039         (aarch64_init_simd_builtins): Handle SF types.
28040         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
28041         (frecps): Likewise.
28042         (frecpx): Likewise.
28043         * config/aarch64/aarch64-simd.md
28044         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
28045         (aarch64_frecpe<mode>): New.
28046         (aarch64_frecps<mode>): Likewise.
28047         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
28048         (v8type): Add frecp<esx>.
28049         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
28050         (aarch64_frecps<mode>): Likewise.
28051         * config/aarch64/iterators.md (FRECP): New.
28052         (frecp_suffix): Likewise.
28053         * config/aarch64/arm_neon.h
28054         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
28056 2013-04-22  Christian Bruel  <christian.bruel@st.com>
28058         PR target/56995
28059         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
28060         (REG_CLASS_NAMES): Idem.
28061         (REG_CLASS_CONTENTS): Idem.
28062         (REGCLASS_HAS_FP_REG): Idem.
28063         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
28064         (sh_conditional_register_usage): Idem.
28066 2013-04-21  Jeff Law  <law@redhat.com>
28068         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
28069         (ssa_forward_propagate_and_combine): Use it.
28071 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28073         * lra.c: Update the flow chart diagram.
28075 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28077         PR rtl-optimization/56847
28078         * lra-constraints.c (process_alt_operands): Discourage alternative
28079         with non-matche doffsettable memory constraint fro memory with
28080         known offset.
28082 2013-04-19  Richard Biener  <rguenther@suse.de>
28084         PR tree-optimization/56982
28085         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
28086         function.
28087         * gimplify.c (gimplify_call_expr): Notice special calls.
28088         (gimplify_modify_expr): Likewise.
28089         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
28090         abnormal control flow receivers.
28091         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
28092         in the same way as cfun->has_nonlocal_labels.
28093         (gimple_purge_dead_abnormal_call_edges): Likewise.
28094         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
28095         receivers start a basic-block.
28097 2013-04-19  Richard Biener  <rguenther@suse.de>
28099         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
28100         member ...
28101         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
28102         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
28103         (SLP_TREE_LOAD_PERMUTATION): Add.
28104         (vect_transform_slp_perm_load): Adjust prototype.
28105         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
28106         (vect_free_slp_instance): Likewise.
28107         (vect_create_new_slp_node): Likewise.
28108         (vect_supported_slp_permutation_p): Remove.
28109         (vect_slp_rearrange_stmts): Adjust.
28110         (vect_supported_load_permutation_p): Likewise.  Inline
28111         vect_supported_slp_permutation_p here.
28112         (vect_analyze_slp_instance): Compute load permutations per
28113         slp node instead of per instance.
28114         (vect_get_slp_defs): Adjust.
28115         (vect_transform_slp_perm_load): Likewise.
28116         (vect_schedule_slp_instance): Remove redundant code.
28117         (vect_schedule_slp): Remove hack for PR56270, add it ...
28118         * tree-vect-stmts.c (vectorizable_load): ... here, do not
28119         CSE loads for SLP.  Adjust.
28121 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
28123         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
28124         spelling in two comments.
28126 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
28128         PR target/56797
28129         * config/arm/arm.c (load_multiple_sequence): Require SP
28130         as base register for loads if SP is in the register list.
28132 2013-04-19  Martin Jambor  <mjambor@suse.cz>
28134         PR tree-optimization/56718
28135         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
28136         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
28137         and made public.  Adjusted all callers.
28138         (ipa_intraprocedural_devirtualization): New function.
28139         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
28140         (ipa_intraprocedural_devirtualization): Likewise.
28141         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
28143 2013-04-19  Richard Biener  <rguenther@suse.de>
28145         PR tree-optimization/57000
28146         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
28148 2013-04-19  Terry Guo  <terry.guo@arm.com>
28150         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
28151         Replace with ...
28152         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
28153         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
28154         (cortex_m4_fmacs): Use new reservations.
28155         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
28157 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
28159         PR rtl-optimization/56999
28160         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
28161         related code.
28162         (lra_coalesce): Remove split_origin_bitmap and related code.
28163         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
28164         ranges if necessary.
28166 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
28168         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
28169         New array.
28170         (ix86_expand_call): Remove clobbered_registers array and use
28171         x86_64_ms_sysv_extra_clobbered_registers instead.
28172         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
28173         Declare here.
28174         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
28175         predicate.
28176         * config/i386/i386.md (*call_rex64_ms_sysv): Use
28177         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
28178         (*call_value_rex64_ms_sysv): Ditto.
28180 2013-04-18  Cary Coutant  <ccoutant@google.com>
28182         * dwarf2out.c (output_pubnames): Check die_perennial_p of
28183         parent instead of die_mark.
28185 2013-04-18  Diego Novillo  <dnovillo@google.com>
28187         * gimple.c (create_gimple_tmp): New.
28188         (get_expr_type): New.
28189         (build_assign): New.
28190         (build_type_cast): New.
28191         * gimple.h (enum ssa_mode): Define.
28192         (gimple_seq_set_location): New.
28193         * asan.c (build_check_stmt): Change some gimple_build_* calls
28194         to use build_assign and build_type_cast.
28196 2013-04-18  Richard Biener  <rguenther@suse.de>
28198         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28199         handle negative step.  Remove redundant checks.
28200         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
28201         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
28202         for negative step and grouped loads fail to vectorize.
28204 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
28206         * emit-rtl.c (reset_insn_used_flags): New function.
28207         (reset_all_used_flags): Use it.
28208         (verify_insn_sharing): New function.
28209         (verify_rtl_sharing): Fix verification for SEQUENCEs.
28211 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
28213         PR tree-optimization/56984
28214         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
28215         and (x >> M) >= N don't register any assertion if N << M is the
28216         minimum value.
28218 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
28220         * lower-subreg.c (resolve_simple_move): If called self-recursive,
28221         do not delete_insn insns that have not yet been emitted, only
28222         unlink them with remove_insn.
28223         * df-scan.c (df_insn_delete): Revert r197492.
28225 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
28227         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
28228         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
28230 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
28232         * config/arm/arm.md (movsicc_insn): Convert define_insn into
28233         define_insn_and_split.
28234         (and_scc,ior_scc,negscc): Likewise.
28235         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
28237 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
28239         * config/arm/arm.c (use_return_insn): Return 0 for targets that
28240         can benefit from using a sequence of LDRD instructions in epilogue
28241         instead of a single LDM instruction.
28243 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28245         PR 45688
28246         * doc/extend.texi: Fix typo.
28248 2013-04-17  Richard Biener  <rguenther@suse.de>
28250         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
28251         (vect_build_slp_tree): ... here.
28252         (vect_build_slp_tree_1): Compute which stmts of the SLP group
28253         match.  Remove special-casing of mismatched complex loads.
28254         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
28255         re-try the match with swapped commutative operands.
28256         (vect_supported_load_permutation_p): Remove special-casing of
28257         mismatched complex loads.
28258         (vect_analyze_slp_instance): Adjust.
28260 2013-04-17  Richard Biener  <rguenther@suse.de>
28262         PR rtl-optimization/56921
28263         * cfgloop.h (struct loop): Add simple_loop_desc member.
28264         (struct niter_desc): Mark with GTY(()).
28265         (simple_loop_desc): Do not use aux field but simple_loop_desc.
28266         * loop-iv.c (get_simple_loop_desc): Likewise.
28267         (free_simple_loop_desc): Likewise.
28269         Revert
28270         2013-04-16  Richard Biener  <rguenther@suse.de>
28272         PR rtl-optimization/56921
28273         * loop-init.c (pass_rtl_move_loop_invariants): Add
28274         TODO_do_not_ggc_collect to todo_flags_finish.
28275         (pass_rtl_unswitch): Same.
28276         (pass_rtl_unroll_and_peel_loops): Same.
28277         (pass_rtl_doloop): Same.
28279 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
28281         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
28282         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
28283         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
28284         references.
28285         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
28286         * tree-streamer.c (record_common_node): Adjust reference in comment.
28288 2013-04-17  Terry Guo  <terry.guo@arm.com>
28290         * config/arm/cortex-m4.md: Add a new bypass.
28292 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28294         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
28295         New pattern.
28296         (*subs_<optab><mode>_multp2): New pattern.
28297         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28298         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28300 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28302         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
28303         (*subs_mul_imm_<mode>): New pattern.
28305 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
28307         PR target/56948
28308         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
28309         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
28310         (vsx_movti_32bit): Change j->wa to O->wa.
28312 2013-04-16  Richard Biener  <rguenther@suse.de>
28314         PR rtl-optimization/56921
28315         * loop-init.c (pass_rtl_move_loop_invariants): Add
28316         TODO_do_not_ggc_collect to todo_flags_finish.
28317         (pass_rtl_unswitch): Same.
28318         (pass_rtl_unroll_and_peel_loops): Same.
28319         (pass_rtl_doloop): Same.
28321 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
28323         * config/arm/arm.c (emit_multi_reg_push): New declaration
28324         for an existing function.
28325         (arm_emit_strd_push): New function.
28326         (arm_expand_prologue): Used here.
28327         (arm_emit_ldrd_pop): New function.
28328         (arm_expand_epilogue): Used here.
28329         (arm_get_frame_offsets): Update condition.
28330         (arm_emit_multi_reg_pop): Add a special case for load of a single
28331         register with writeback.
28333 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
28335         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
28336         description.
28338 2013-04-16  Richard Biener  <rguenther@suse.de>
28340         PR tree-optimization/56756
28341         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
28342         (first_mem_ref_loc): New.
28343         (execute_sm): Place the load temporarily before a previous
28344         access instead of in the latch edge to ensure its SSA dependencies
28345         are defined at points dominating the load.
28347 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
28349         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
28350         correct fix by moving header and footer insn to the footer of
28351         the merged basic block.  Clear BB_END of the merged-away block.
28353         PR middle-end/43631
28354         * emit-rtl.c (make_note_raw): New function.
28355         (link_insn_into_chain): New static inline function.
28356         (add_insn): Use it.
28357         (add_insn_before, add_insn_after): Factor insn chain linking code...
28358         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
28359         using link_insn_into_chain.
28360         (note_outside_basic_block_p): New helper function for emit_note_after
28361         and emit_note_before.
28362         (emit_note_after): Use nobb variant of add_insn_after if the note
28363         should not be contained in a basic block.
28364         (emit_note_before): Use nobb variant of add_insn_before if the note
28365         should not be contained in a basic block.
28366         (emit_note_copy): Use make_note_raw.
28367         (emit_note): Likewise.
28368         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
28369         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
28370         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
28371         the moved barrier the tail of the basic block it follows.
28372         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
28374 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
28376         PR tree-optimization/56962
28377         * gimple-ssa-strength-reduction.c (record_increment): Only set
28378         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
28379         either rhs1 or rhs2 is equal to c->base_expr.
28381 2013-04-15  Richard Biener  <rguenther@suse.de>
28383         PR tree-optimization/56933
28384         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
28385         member.
28386         (GROUP_READ_WRITE_DEPENDENCE): Remove.
28387         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
28388         * tree-vect-data-refs.c (vect_analyze_group_access): Move
28389         dependence check ...
28390         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
28391         ... here.
28392         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
28393         GROUP_READ_WRITE_DEPENDENCE.
28395 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28397         * emit-rtl.c (reset_all_used_flags): New function.
28398         (verify_rtl_sharing): Call reset_all_used_flags before and after
28399         performing the checks.
28401 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28403         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
28404         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
28405         * config/arm/constraints.md (De): New constraint.
28406         * config/arm/neon.md (anddi3_neon): Delete.
28407         (neon_vand<mode>): Expand to standard anddi3 pattern.
28408         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
28409         Move earlier in the file.
28410         (neon_inv_logic_op2): Likewise.
28411         (arm_anddi_operand_neon): New predicate.
28413 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28415         * configure.ac (gcc_cv_ld_as_needed): Set
28416         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
28417         Use -z ignore, -z record on *-*-solaris2*.
28418         (HAVE_LD_AS_NEEDED): Update comment.
28419         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
28420         * configure: Regenerate.
28421         * config.in: Regenerate.
28422         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
28423         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
28424         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
28425         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
28426         equivalents.  Fix markup.
28427         * doc/tm.texi: Regenerate.
28429 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
28431         * config/i386/i386.opt: New option mstack-protector-guard=.
28432         * config/i386/i386-opts.h: Add enum stack_protector_guard.
28433         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
28434         TARGET_SSP_TLS_GUARD.
28435         * config/i386/i386.c (ix86_option_override_internal): Set
28436         ix86_stack_protector_guard.
28437         * config/i386/i386.md (stack_protect_set): Enable for
28438         TARGET_SSP_TLS_GUARD only.
28439         (stack_protect_set_<mode>): Ditto.
28440         (stack_protect_test): Ditto.
28441         (stack_protect_test_<mode>): Ditto.
28442         * doc/invoke.texi (i386 Option): Document.
28444 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
28446         PR target/56890
28447         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
28448         (S_MODES): Set H_MODE bit.
28449         (SF_MODES): Set only S_MODE and SF_MODE bits.
28450         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
28451         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
28452         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
28453         <MODE_FLOAT>: Likewise.
28455 2013-04-15  Joey Ye  <joey.ye@arm.com>
28457         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
28459 2013-04-15  Joey Ye  <joey.ye@arm.com>
28461         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
28462         for real far jump.
28463         (thumb_far_jump_used_p): Count instruction size and set
28464         far_jump_used.
28466 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
28468         * reorg.c (fill_simple_delay_slots): Reindent block of code.
28469         * resource.c (mark_target_live_regs): Reformat conditional block.
28471 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
28473         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
28474         notes, they are emitted only just before final.
28475         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
28477 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
28479         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
28480         * cfgrtl.c (delete_insn): Call it here instead.
28481         * lra-spills.c (lra_final_code_change): Use delete_insn.
28482         * haifa-sched.c (sched_remove_insn): Likewise.
28483         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
28484         returning to the nop pool.
28485         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
28486         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
28488 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
28490         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
28491         * doc/tm.texi: Regenerated.
28493 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
28495         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
28496         QImode checks.
28498 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
28500         * df-core.c (df_find_def): Compare register numbers.
28501         (df_find_use): Likewise.
28503 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
28505         PR target/56903
28506         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
28507         lra_in_progress for return.
28509 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
28511         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
28512         define_insn into define_insn_and_split and emit movsicc patterns.
28514 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
28516         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
28518 2013-04-12  Richard Biener  <rguenther@suse.de>
28520         * tree-pass.h (TODO_do_not_ggc_collect): New.
28521         * passes.c (execute_one_ipa_transform_pass): Honor
28522         TODO_do_not_ggc_collect.
28523         (execute_one_pass): Likewise.
28525         Revert
28526         2013-04-10  Richard Biener  <rguenther@suse.de>
28528         * passes.c (init_optimization_passes): Remove reload pass.
28529         * ira.c (do_reload): Merge into ...
28530         (ira): ... this.
28531         (rest_of_handle_reload): Remove.
28532         (pass_reload): Likewise.
28533         * config/i386/i386.c (ix86_option_override): Refer to ira instead
28534         of reload for vzeroupper pass placement.
28536 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
28538         PR tree-optimization/56918
28539         PR tree-optimization/56920
28540         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
28541         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
28542         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
28543         use wide_mul_with_sign method.
28545 2013-04-12  Richard Biener  <rguenther@suse.de>
28547         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
28548         not be considered a gimple constant.
28550 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
28552         * fold-const.c (const_binop): Handle vector shifts by a scalar.
28553         (fold_binary_loc): Call const_binop also for mixed vector-scalar
28554         operations.
28556 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28557             Jakub Jelinek  <jakub@redhat.com>
28559         * opts.c: Include diagnostic-color.h.
28560         (common_handle_option): Handle OPT_fdiagnostics_color_.
28561         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
28562         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
28563         (diagnostic-color.o): New.
28564         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
28565         (diagnostic_color_rule): New enum.
28566         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
28567         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
28568         the location string.
28569         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
28570         either NULL, or color kind.
28571         * diagnostic-color.c: New file.
28572         * diagnostic-color.h: New file.
28573         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
28574         arguments.
28575         * doc/invoke.texi (-fdiagnostics-color): Document.
28576         * pretty-print.h (pp_show_color): Define.
28577         (struct pretty_print_info): Add show_color field.
28578         * diagnostic.c: Include diagnostic-color.h.
28579         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
28580         macros.  Colorize error:, warning: etc. strings and also the location
28581         string.
28582         (diagnostic_show_locus): Colorize the caret line.
28583         * pretty-print.c: Include diagnostic-color.h.
28584         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
28585         inside of %< %> quotes or quoted through q format modifier.
28587 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28589         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
28591 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28593         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
28594         code in CC_NZ mode.
28595         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
28596         pattern.
28598 2013-04-11  Marek Polacek  <polacek@redhat.com>
28600         PR tree-optimization/48184
28601         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
28603 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
28605         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
28606         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
28607         (skip_simple_arithmetic): Tidy up.
28608         * tree.h (skip_simple_constant_arithmetic): Declare.
28610 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28612         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
28614 2013-04-11  Richard Biener  <rguenther@suse.de>
28616         * tree-vect-loop.c (get_initial_def_for_induction): Properly
28617         generate vector constants.
28619 2013-04-11  Richard Biener  <rguenther@suse.de>
28621         PR tree-optimization/56878
28622         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
28623         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
28624         New function.
28625         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28626         Prefer to align the DR with the most invariant base address.
28628 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28630         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
28631         comment.
28633 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
28635         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
28636         floating-point vector comparisons against 0.
28638 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
28640         PR tree-optimization/56899
28641         * fold-const.c (extract_muldiv_1): Apply distributive law
28642         only if TYPE_OVERFLOW_WRAPS (ctype).
28644 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
28646         PR target/56124
28647         * ira-costs.c (scan_one_insn): Check whether the source rtx of
28648         loading has side effect.
28650 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
28652         * config/sparc/sparc.c: Include tree-pass.h.
28653         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
28654         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
28655         head of file.  Change return type.  Split off gate function.
28656         (sparc_gate_work_around_errata): New function.
28657         (pass_work_around_errata): New pass definition.
28658         (insert_pass_work_around_errata) New pass insert definition to
28659         insert pass_work_around_errata just after delayed-branch scheduling.
28660         (sparc_option_override): Insert the pass.
28661         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
28663 2013-04-10  David S. Miller  <davem@davemloft.net>
28665         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
28666         or -mcpu=hypersparc.
28668         * target.def (cstore_mode): New hook.
28669         * target.h: Include insn-codes.h
28670         * targhooks.c: Likewise.
28671         (default_cstore_mode): New function.
28672         * targhooks.h: Declare it.
28673         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
28674         * doc/tm.texi: Rebuild.
28675         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
28676         target hook, rather than inspecting the insn_data.
28677         * config/sparc/sparc.c (sparc_cstore_mode): New function.
28678         (TARGET_CSTORE_MODE): Redefine.
28679         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
28680         result patterns.
28681         * config/sparc/predicates.md (cstore_result_operand): New special
28682         predicate.
28683         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
28684         Use it for operand 0.
28685         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
28686         (*snesi_special): Likewise.
28687         (*snesi_zero): Likewise.
28688         (*seqsi_zero): Likewise.
28689         (*sltu_insn): Likewise.
28690         (*sgeu_insn): Likewise.
28691         (*seqdi_special): Make operand 0 and comparison operation be of
28692         DImode.
28693         (*snedi_special): Likewise.
28694         (*snedi_special_vis3): Likewise.
28695         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
28696         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
28697         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
28698         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
28699         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
28700         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
28701         (*sltu_extend_sp64): Likewise.
28702         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
28703         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
28704         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
28705         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
28706         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
28708 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
28710         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
28711         (aarch64_start_file): Use the new function.
28713 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28714             Jason Merrill  <jason@redhat.com>
28716         * common.opt: Add -gdwarf.
28717         * opts.c (common_handle_option): Handle it.
28718         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
28720 2013-04-10  Richard Biener  <rguenther@suse.de>
28722         * passes.c (execute_todo): Do not call ggc_collect conditional here.
28723         (execute_one_ipa_transform_pass): But unconditionally here.
28724         (execute_one_pass): And here.
28725         (init_optimization_passes): Remove reload pass.
28726         * tree-pass.h (TODO_ggc_collect): Remove.
28727         (pass_reload): Likewise.
28728         * ira.c (do_reload): Merge into ...
28729         (ira): ... this.
28730         (rest_of_handle_reload): Remove.
28731         (pass_reload): Likewise.
28732         * config/i386/i386.c (ix86_option_override): Refer to ira instead
28733         of reload for vzeroupper pass placement.
28734         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
28735         and todo_flags_finish of all passes.
28737 2013-04-10  Richard Biener  <rguenther@suse.de>
28739         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
28740         first_const_oprnd field, rename first_def_type to first_op_type.
28741         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
28742         (vect_get_and_check_slp_defs): Always use the type of the
28743         operand.  Allow mixed vect_external_def, vect_constant_def types.
28744         (vect_get_constant_vectors): Handle mixed vect_external_def,
28745         vect_constant_def types.
28747 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
28749         PR tree-optimization/55524
28750         * tree-ssa-math-opts.c
28751         (convert_mult_to_fma): Don't use an fms construct
28752         when we don't have an fms operation, but fnma, and it looks
28753         likely that we'll be able to use the latter.
28755 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
28757         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
28758         function.
28759         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
28760         inline fail caused by overwritable functions.
28762 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
28764         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
28765         unnecessary bits in the constant power of two case.
28767 2013-04-10  Richard Biener  <rguenther@suse.de>
28769         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
28770         broken code swapping operands.
28771         (vect_build_slp_tree): Do not compute load permutations here.
28772         (vect_analyze_slp_instance): Compute load permutations here,
28773         after building the SLP tree.
28775 2013-04-09  Christian Bruel  <christian.bruel@st.com>
28777         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
28778         of next/prev_real_insn.
28780 2013-04-09  Jan Hubicka  <jh@suse.cz>
28782         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
28783         Drop aliased parameter.
28784         (function_and_variable_visibility): Do not handle alias pairs.
28785         * cgraph.c (varpool_externally_visible_p): Update prototype.
28786         * varpool.c (varpool_add_new_variable): Update.
28788 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28790         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
28792 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
28794         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
28796         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
28798 2013-04-09  Marek Polacek  <polacek@redhat.com>
28800         PR tree-optimization/48762
28801         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
28803 2013-04-09  Richard Biener  <rguenther@suse.de>
28805         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
28806         dealing with cost.
28807         (vect_build_slp_tree): Likewise.
28808         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
28809         calculating the cost of a SLP instance.
28810         (vect_analyze_slp_instance): Use it from here, after building
28811         the SLP tree.
28813 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
28815         PR middle-end/56883
28816         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
28817         expand_omp_for_static_chunk): Use simple_p = true in
28818         force_gimple_operand_gsi calls when assigning to addressable decls.
28820 2013-04-09  Jeff Law  <law@redhat.com>
28822         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
28823         when the boolean was created by converting a wider object which
28824         had a boolean range.
28826 2013-04-09  Richard Biener  <rguenther@suse.de>
28828         * tree-vectorizer.h (slp_void_p): Remove.
28829         (slp_tree): Typedef before _slp_tree declaration.
28830         (struct _slp_tree): Use a vector of slp_tree as children.
28831         (vect_get_place_in_interleaving_chain): Remove.
28832         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
28833         Move ...
28834         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
28835         and make static.
28836         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
28837         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
28838         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
28839         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
28840         Use slp_node instead of slp_void_p and adjust.
28842 2013-04-09  Richard Biener  <rguenther@suse.de>
28844         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
28845         work that is not necessary.
28847 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
28849         PR tree-optimization/56854
28850         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
28851         forward into clobber stmts if it would change MEM_REF lhs into
28852         non-MEM_REF.
28854 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
28856         * tree.c (type_hash_lookup, type_hash_add): Make static.
28857         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
28859 2013-04-09  Richard Biener  <rguenther@suse.de>
28861         * tree.h (unsave_expr_now): Remove.
28862         * tree-inline.c (mark_local_for_remap_r): Remove.
28863         (unsave_expr_1): Likewise.
28864         (unsave_r): Likewise.
28865         (unsave_expr_now): Likewise.
28866         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
28867         (propagate_tree_value): Likewise.
28869 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
28871         * doc/rtl.texi (sequence): Rewrite documentation to match the
28872         current use of SEQUENCE rtl objects.
28873         * rtl.def (SEQUENCE): Likewise.
28875         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
28876         Update documentation.
28877         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
28878         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
28880         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
28882 2013-04-08  Teresa Johnson  <tejohnson@google.com>
28884         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
28885         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
28886         methods.
28887         (estimate_edge_size_and_time): Add comment to suggest using rounding
28888         methods.
28889         (estimate_node_size_and_time): Ditto.
28890         (remap_edge_change_prob): Use helper rounding divide methods.
28891         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
28892         (gimple_mod_pow2_value_transform): Ditto.
28893         (gimple_mod_subtract_transform): Ditto.
28894         (gimple_ic_transform): Ditto.
28895         (gimple_stringops_transform): Ditto.
28896         * stmt.c (conditional_probability): Ditto.
28897         (emit_case_dispatch_table): Ditto.
28898         * lto-cgraph.c (merge_profile_summaries): Ditto.
28899         * tree-optimize.c (execute_fixup_cfg): Ditto.
28900         * cfgcleanup.c (try_forward_edges): Ditto.
28901         * cfgloopmanip.c (scale_loop_profile): Ditto.
28902         (loopify): Ditto.
28903         (duplicate_loop_to_header_edge): Ditto.
28904         (lv_adjust_loop_entry_edge): Ditto.
28905         * tree-vect-loop.c (vect_transform_loop): Ditto.
28906         * profile.c (compute_branch_probabilities): Ditto.
28907         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
28908         * lto-streamer-in.c (input_cfg): Ditto.
28909         * gimple-streamer-in.c (input_bb): Ditto.
28910         * ipa-cp.c (update_profiling_info): Ditto.
28911         (update_specialized_profile): Ditto.
28912         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
28913         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
28914         rounding methods.
28915         * sched-rgn.c (compute_dom_prob_ps): Ditto.
28916         (compute_trg_info): Ditto.
28917         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
28918         (purge_dead_edges): Ditto.
28919         * loop-unswitch.c (unswitch_loop): Ditto.
28920         * cgraphclones.c (cgraph_clone_edge): Ditto.
28921         (cgraph_clone_node): Ditto.
28922         * tree-inline.c (copy_bb): Ditto.
28923         (copy_edges_for_bb): Ditto.
28924         (initialize_cfun): Ditto.
28925         (copy_cfg_body): Ditto.
28926         (expand_call_inline): Ditto.
28928 2013-04-08  Kai Tietz  <ktietz@redhat.com>
28930         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
28931         TARGET_CYGWIN64 by TARGET_64BIT.
28933 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
28935         * config/epiphany/epiphany.md (GPR_1): New constant.
28936         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
28937         * config/epiphany/epiphany.c (gen_compare_reg):
28938         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
28939         is already in place.
28940         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
28941         Don't require being called during rtl expansion; If y operlaps r0,
28942         return 0.
28943         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
28944         (epiphany_expand_epilogue): Likewise.
28946         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
28947         Don't use CC_FPmode for ORDERED / UNORDERED.
28948         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
28950         * config/epiphany/constraints.md (CnL): New constraint.
28951         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
28952         * config/epiphany/predicates.md (add_operand): Allow 1024.
28954         * config/epiphany/epiphany.md (logical_op): New code iterator.
28955         (op_mnc): New code attribute.
28956         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
28957         (mov_f+1, mov_f+2): New peephole2 patterns.
28959         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
28960         (cstoresi4): Also allow re-use of zero result when doing a NE
28961         comparison to a non-zero operand.
28962         Use (clobber (scratch)) for first insn if the gpr output is not needed.
28964         * config/epiphany/epiphany.md (<insn_opname>v2si3):
28965         Use gen_addsi3_i / gen_subsi3_i.
28967 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
28969         PR c++/34949
28970         PR c++/50243
28971         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
28972         contain anything but clobbers, at most one __builtin_stack_restore,
28973         optionally debug stmts and final resx, and if it has at least one
28974         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
28975         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
28976         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
28977         which isn't defaut definition, remove them.
28978         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
28979         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
28980         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
28981         with MEM_REF LHS with SSA_NAME address.
28983 2013-04-08  Jeff Law  <law@redhat.com>
28985         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
28987 2013-04-08  Richard Biener  <rguenther@suse.de>
28989         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
28990         extra newline.
28991         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
28992         determined vector type.
28993         (vect_analyze_data_refs): Likewise.
28994         (vect_get_new_vect_var): Adjust.
28995         (vect_create_destination_var): Preserve SSA name versions.
28996         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
28997         not dump anything here.
28999 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29001         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
29002         Add member lr_slot_known.
29003         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
29004         if necessary.
29005         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
29006         Remove code that sets lr_slot_offset according to what a previous
29007         version of epiphany_emit_save_restore used to do.
29008         (epiphany_emit_save_restore): When doing an lr save or restore,
29009         set/verify lr_slot_known and lr_slot_offset.
29011 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
29013         PR target/54338
29014         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
29015         in ALL_REGS.
29017 2013-04-08  Richard Biener  <rguenther@suse.de>
29019         * alias.c (find_base_term): Fix thinko in previous change.
29021 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
29023         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
29024         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
29025         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
29026         if possible to compute val.
29027         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
29028         For QImode integers don't require anything about precision.  Use
29029         const_with_all_bytes_same to find out if the constant doesn't have
29030         repeated bytes in it.
29032 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29034         * config/s390/s390.c (s390_expand_insv): Only accept insertions
29035         within mode size.
29037 2013-04-08  Marek Polacek  <polacek@redhat.com>
29039         PR rtl-optimization/48182
29040         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
29041         value to 1.
29043 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29045         PR target/55487
29046         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
29047         nuses, make sure we have a label.
29049 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29051         PR target/56843
29052         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
29053         (rs6000_emit_swdiv_low_precision): Remove.
29054         (rs6000_emit_swdiv): Rewrite to handle between one and four
29055         iterations of Newton-Raphson generally; modify required number of
29056         iterations for some cases.
29057         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
29059 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
29061         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
29062         set-but-unused variable.
29064         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
29065         basic blocks of released function bodies garbage-collectable.
29067         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
29068         (struct rtl_opt_pass): Add TODO_df_finish.
29070         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
29072 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29074         * config/arm/constraints.md (q): New constraint.
29075         * config/arm/ldrdstrd.md: New file.
29076         * config/arm/arm.md (ldrdstrd.md) New include.
29077         (arm_movdi): Use "q" instead of "r" constraint
29078         for double-word memory access.
29079         (movdf_soft_insn): Likewise.
29080         * config/arm/vfp.md (movdi_vfp): Likewise.
29081         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
29082         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
29083         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
29084         (mem_ok_for_ldrd_strd): Likewise.
29085         (output_move_double): Update assertion.
29087 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29089         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
29091 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29093         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
29094         define_insn_and_split.
29095         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
29097 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29099         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
29100         define_insn_and_split.
29101         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
29102         (shiftsi3_compare): New pattern.
29103         (rrx): New pattern.
29104         * config/arm/unspecs.md (UNSPEC_RRX): New.
29106 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29108         * config/arm/arm.md (negdi_extendsidi): New pattern.
29109         (negdi_zero_extendsidi): Likewise.
29111 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29113         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
29114         define_insn_and_split.
29115         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
29116         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
29118 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29120         * config/arm/arm.md (arm_subdi3): Convert define_insn into
29121         define_insn_and_split.
29122         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
29123         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
29125 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29127         * config/arm/arm.md (subsi3_carryin): New pattern.
29128         (subsi3_carryin_const): Likewise.
29129         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
29130         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
29132 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29134         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
29136 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29138         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
29139         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
29141 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29143         * config/arm/arm.c (arm_expand_builtin): Change fcode
29144         type to unsigned int.
29146 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29148         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
29150 2013-04-04  Ian Lance Taylor  <iant@google.com>
29152         * doc/standards.texi (Standards): The Go frontend supports the Go 1
29153         language standard.
29155 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
29157         PR middle-end/56729
29158         * df-scan.c (df_insn_delete): Disable failing assert.
29160 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29162         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
29163         New function prototype.
29164         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
29165         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
29166         (arm_builtin_vectorized_function): New function.
29168 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29170         * config/arm/arm_neon_builtins.def: New file.
29171         * config/arm/arm.c (neon_builtin_data): Move contents to
29172         arm_neon_builtins.def.
29173         (enum arm_builtins): Include neon builtin definitions.
29174         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
29175         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
29177 2013-04-04  Marek Polacek  <polacek@redhat.com>
29179         PR tree-optimization/48186
29180         * predict.c (maybe_hot_frequency_p): Return false if
29181         HOT_BB_FREQUENCY_FRACTION is 0.
29182         (cgraph_maybe_hot_edge_p): Likewise.
29184 2013-04-04  Richard Biener  <rguenther@suse.de>
29186         PR tree-optimization/56826
29187         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
29188         more accurately.
29190 2013-04-04  Richard Biener  <rguenther@suse.de>
29192         PR tree-optimization/56213
29193         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
29194         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
29196 2013-04-04  Richard Biener  <rguenther@suse.de>
29198         PR tree-optimization/56837
29199         * tree-loop-distribution.c (classify_partition): For non-zero
29200         values require that the value has the same precision as its
29201         mode to be useful as memset value.
29203 2013-04-03  Nick Clifton  <nickc@redhat.com>
29205         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
29206         (fmssf4): Use fmsf.s on E3V5 architectures.
29207         (fnmasf4): Use fnmaf.s on E3V5 architectures.
29208         (fnmssf4): Use fnmsf.s on E3V5 architectures.
29210 2013-04-03  Jeff Law  <law@redhat.com>
29212         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
29213         (lra-eliminations.o): Likewise.
29215 2013-04-03  Teresa Johnson  <tejohnson@google.com>
29217         * gcov-io.c (compute_working_sets): Moved most of body of old
29218         compute_working_sets here from profile.c.
29219         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
29220         (gcov_working_set_t): Moved typedef here from basic-block.h
29221         (compute_working_set): Declare.
29222         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
29223         (get_working_sets): Renamed from compute_working_set,
29224         replace most of body with call to new compute_working_sets.
29225         (get_exec_counts): Replace call to compute_working_sets
29226         to get_working_sets.
29227         * profile.h (get_working_sets): Renamed from compute_working_set.
29228         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
29229         to get_working_sets.
29230         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
29231         * gcov-dump.c (dump_working_sets): New function.
29233 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
29235         * hwint.c (sext_hwi, zext_hwi): New functions.
29236         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
29237         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
29238         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
29239         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
29240         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
29241         (sext_hwi, zext_hwi): New functions.
29243 2013-04-03  Jeff Law  <law@redhat.com>
29245         PR tree-optimization/56799
29246         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
29247         back test for widening conversion erroneously dropped in prior change.
29249 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29251         PR target/56809
29252         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
29253         instead of next_real_insn.
29255 2013-04-03  Marek Polacek  <polacek@redhat.com>
29257         PR sanitizer/55702
29258         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
29260 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29262         PR target/56809
29263         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
29264         next_real_insn.
29265         (thumb1_output_casesi): Likewise.
29266         (thumb2_output_casesi): Likewise.
29268 2013-04-03  Richard Biener  <rguenther@suse.de>
29270         PR tree-optimization/56817
29271         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
29272         Split out ...
29273         (tree_unroll_loops_completely_1): ... new function to manually
29274         walk the loop tree, properly defering outer loops of unrolled
29275         loops to later iterations.
29277 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29279         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
29280         (vectorizable_load): Likewise.
29281         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
29282         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
29284 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29286         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
29287         BIT_FIELD_REF.
29289 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29291         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
29293 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
29295         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
29297 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29299         PR tree-optimization/56790
29300         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
29301         folding.
29303 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29305         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
29306         Handle VEC_MERGE.
29307         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
29308         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
29309         equal arguments.
29311 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
29313         PR c/19449
29314         * tree.h (force_folding_builtin_constant_p): New decl.
29315         * builtins.c (force_folding_builtin_constant_p): New variable.
29316         (fold_builtin_constant_p): Fold immediately also if
29317         force_folding_builtin_constant_p.
29319 2013-04-03  Richard Biener  <rguenther@suse.de>
29321         PR tree-optimization/56812
29322         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
29323         DRs of the same interleaving chain are independent.
29325 2013-04-02  Jason Merrill  <jason@redhat.com>
29327         * gdbinit.in (pbb): Use debug fn.
29329 2013-04-02  Lawrence Crowl  <crowl@google.com>
29331         * sese.h (struct ivtype_map_elt_s): Remove unused.
29332         (extern debug_ivtype_map): Remove unused.
29333         (extern eq_ivtype_map_elts): Remove unused.
29334         * sese.c (debug_ivtype_map): Removed unused.
29335         (debug_ivtype_map_1): Removed unused.
29336         (debug_ivtype_elt): Remove unused.
29337         (eq_ivtype_map_elts): Remove unused.
29339 2013-04-02  Kai Tietz  <ktietz@redhat.com>
29341         PR target/52790
29342         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
29343         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
29344         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
29345         function.
29346         (legitimize_pe_coff_symbol): Likewise.
29347         (is_imported_p): New helper-function.
29348         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
29349         for Windows x64 targets.
29350         (ix86_expand_prologue): Optimize for pe-coff targets.
29351         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
29352         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
29353         medium/large code-model.
29354         (legitimize_pic_address): Likewise.
29355         (legitimize_tls_address): Likewise.
29356         (ix86_expand_call): Likewise.
29357         (x86_output_mi_thunk): Likewise.
29358         (get_dllimport_decl): Add new beimport argument.
29359         (construct_plt_address): Don't assert for x64 pe-coff targets.
29360         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
29361         targets.
29362         (SYMBOL_FLAG_STUBVAR): New macro.
29363         (SYMBOL_REF_STUBVAR_P): Likewise.
29364         * config/i386/winnt.c (stub_list): New structure.
29365         (stub_head): New local variable.
29366         (i386_pe_record_stub): New function.
29367         (i386_pe_file_end): Emit refptr-stubs.
29369 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
29371         PR rtl-optimization/56745
29372         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
29373         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
29375         PR c++/34949
29376         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
29377         and both of them are MEM_REFs, just compare first argument for
29378         equality and attempt to deal even with differing offsets.
29380         PR c++/34949
29381         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
29382         of gimple_clobber_p to be MEM_REF.
29383         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
29384         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
29385         after gimplification.
29386         * asan.c (get_mem_ref_of_assignment): Don't instrument
29387         gimple_clobber_p stmts.
29388         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
29389         gimple_clobber_p stmt if they have MEM_REF lhs and
29390         are dead because of another gimple_clobber_p stmt.
29391         * tree-ssa-live.c (clear_unused_block_pointer): Treat
29392         gimple_clobber_p stmts like debug stmts.
29393         (remove_unused_locals): Remove clobbers with MEM_REF lhs
29394         that refer to unused VAR_DECLs or uninitialized values.
29395         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
29396         gimple_clobber_p stmts if they refer to removed parameters.
29397         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
29398         formatting.
29400 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
29402         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
29403         using SWI48 mode attribute.
29405 2013-04-02  Wei Mi  <wmi@google.com>
29407         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
29408         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
29409         *<rotate_insn><mode>3_mask in i386.md.
29411 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
29413         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
29415 2013-04-02  Richard Biener  <rguenther@suse.de>
29417         PR tree-optimization/56778
29418         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29419         Runtime alias tests are not supported for gather loads.
29420         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
29421         stmts referenced from SSA operands before updating SSA form.
29423 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
29424             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29426         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
29427         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
29428         * config/arm/cortex-a53.md: New file.
29429         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
29430         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
29431         * config/arm/arm.c (arm_issue_rate): Likewise.
29432         * config/arm/arm-tune.md: Regenerate
29433         * config/arm/arm-tables.opt: Regenerate.
29434         * config/arm/arm-cores.def: Add cortex-a53.
29436 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
29438         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
29439         non-static link.
29441 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
29443         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
29444         scalar load/store operations using B/H registers.
29445         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
29447 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
29449         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
29450         scalar move.
29451         * config/aarch64/aarch64.c
29452         (aarch64_simd_scalar_immediate_valid_for_move): New.
29453         * config/aarch64/aarch64-protos.h
29454         (aarch64_simd_scalar_immediate_valid_for_move): New.
29455         * config/aarch64/constraints.md (Dh, Dq): New.
29456         * config/aarch64/iterators.md (hq): New.
29458 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
29460         * reorg.c (get_branch_condition): Deal with conditional returns.
29461         (fill_simple_delay_slots): Remove dead code dealing with jumps.
29463 2013-04-01  Wei Mi  <wmi@google.com>
29465         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
29466         Truncate operand 2 using %b asm operand modifier.
29467         (*<shift_insn><mode>3_mask): Ditto.
29468         (*<rotate_insn><mode>3_mask): Ditto.
29470 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
29472         PR middle-end/56798
29473         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
29475 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
29477         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
29478         of next_real_insn.
29479         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
29481 2013-03-30  Lawrence Crowl  <crowl@google.com>
29483         * dse.c (clear_alias_sets): Remove never set.
29484         (disqualified_clear_alias_sets): Remove never set.
29485         (clear_alias_mode_pool): Remove never set.
29486         (dse_step0): Remove condition that is never true.
29487         (canon_address): Remove condition that is never true.
29488         (dse_step7): Remove condition that is never true.
29489         (rest_of_handle_dse): Remove condition that is never true.
29490         (rest_of_handle_dse::did_global): Remove never read from above.
29491         (dse_step2_spill): Remove never called from above.
29492         (dse_step5_spill): Remove never called from above.
29494 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
29496         * doc/md.texi (Standard Names) <casesi>: Update documentation for
29497         JUMP_TABLE_DATA changes.
29498         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
29499         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
29500         (Insns) <jump_table_data>: New entry.
29501         * doc/tm.texi: Regenerate.
29503         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
29505         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
29506         for table jump at the end of a basic block using tablejump_p.
29507         * targhooks.c (default_invalid_within_doloop): Likewise.
29508         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
29509         target hook implementation that is identical to the default hook.
29510         (rs6000_invalid_within_doloop): Remove.
29512         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
29513         unused variable from tablejump_p call.
29515         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
29516         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
29517         (INSN_DELETED_P): Likewise.
29518         (emit_jump_table_data): New prototype.
29519         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
29520         after 4th as unused.
29521         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
29522         * sched-vis.c (print_insn): Likewise.
29523         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
29524         insn for compatibility with back ends that use next_active_insn to
29525         identify jump table data.
29526         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
29527         (remove_insn): Likewise.
29528         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
29529         to be emitted.
29530         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
29531         (emit_jump_table_data): New function.
29533         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
29534         basic block, a JUMP_TABLE_DATA never is.
29535         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
29536         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
29537         off from code handling real insns.
29538         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
29539         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
29540         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
29541         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
29542         is not a NONDEBUG_INSN_P.
29543         * ira-costs.c (scan_one_insn): Likewise.
29544         * jump.c (mark_all_labels): Likewise.
29545         (mark_jump_label_1): Likewise.
29546         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
29547         * lra.c (get_insn_freq): Expect all insns reaching here to be in
29548         a basic block.
29549         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
29550         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
29551         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
29552         JUMP_TABLE_DATA_P insns.
29553         (calculate_elim_costs_all_insns): Likewise.
29554         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
29555         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
29556         (delete_output_reload): Code style fixups.
29557         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
29558         insn flags on this non-insn.
29559         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
29560         as scheduling barriers, for pre-change compatibility.
29561         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
29562         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
29564         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
29565         redundant JUMP_TABLE_DATA_P test.
29566         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
29567         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
29568         (frv_for_each_packet): Likewise.
29569         * config/i386/i386.c (min_insn_size): Likewise.
29570         (ix86_avoid_jump_mispredicts): Likewise.
29571         * config/m32r/m32r.c (m32r_is_insn): Likewise.
29572         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
29573         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
29574         (mips16_insn_length): Robustify.
29575         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
29576         (mips16_split_long_branches): Likewise.
29577         * config/pa/pa.c (pa_combine_instructions): Likewise.
29578         * config/rs6000/rs6000.c (get_next_active_insn): Treat
29579         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
29580         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
29581         as contributing to pool range lengths.
29582         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
29583         Remove redundant JUMP_TABLE_DATA_P test.
29584         (sh_loop_align): Likewise.
29585         (split_branches): Likewise.
29586         (sh_insn_length_adjustment): Likewise.
29587         * config/spu/spu.c (get_branch_target): Likewise.
29589 2013-03-29  Jan Hubicka  <jh@suse.cz>
29591         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
29592         gcov streaming; stream hot bb threshold to ltrans.
29593         * predict.c (get_hot_bb_threshold): Break out from ....
29594         (maybe_hot_count_p): ... here.
29595         (set_hot_bb_threshold): New function.
29596         * lto-section-in.c (lto_section_name): Add profile.
29597         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
29598         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
29599         and data-streamer.h
29600         (histogram_entry): New structure.
29601         (histogram, histogram_pool): New global vars.
29602         (histogram_hash): New structure.
29603         (histogram_hash::hash): New method.
29604         (histogram_hash::equal): Likewise.
29605         (account_time_size): New function.
29606         (cmp_counts): New function.
29607         (dump_histogram): New function.
29608         (ipa_profile_generate_summary): New function.
29609         (ipa_profile_write_summary): New function.
29610         (ipa_profile_read_summary): New function.
29611         (ipa_profile): Decide on threshold.
29612         (pass_ipa_profile): Add ipa_profile_write_summary and
29613         ipa_profile_read_summary.
29614         * Makefile.in (ipa.o): Update dependencies.
29615         * lto-streamer.h (LTO_section_ipa_profile): New section.
29617 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
29619         * tree.h (VAR_P): New.
29621 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
29623         PR lto/56777
29624         * doc/invoke.texi ([-fwhole-program]): Fix typo.
29626 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
29628         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
29629         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29630         (control_flow_insn_p): Likewise.
29631         * cfgrtl.c (duplicate_insn_chain): Likewise.
29632         * final.c (get_attr_length_1): Likewise.
29633         (shorten_branches): Likewise.
29634         (final_scan_insn): Likewise.
29635         * function.c (instantiate_virtual_regs): Likewise.
29636         * gcse.c (insert_insn_end_basic_block): Likewise.
29637         * ira-costs.c (scan_one_insn): Likewise.
29638         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
29639         * lra.c (check_rtl): Likewise.
29640         * reload1.c (elimination_costs_in_insn): Likewise.
29641         * reorg.c (follow_jumps): Likewise.
29643         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
29644         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29645         (thumb_far_jump_used_p): Likewise.
29646         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
29647         (workaround_speculation): Likewise.
29648         (add_sched_insns_for_speculation): Likewise.
29649         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
29650         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
29651         (frv_for_each_packet): Likewise.
29652         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
29653         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
29654         (final_emit_insn_group_barriers): Likewise.
29655         * config/m32r/m32r.c (m32r_is_insn): Likewise.
29656         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
29657         (mips16_insn_length): Likewise.
29658         * config/pa/pa.c (pa_reorg): Likewise.
29659         (pa_combine_instructions): Likewise.
29660         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
29661         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
29662         (sh_reorg): Likewise.
29663         (split_branches): Likewise.
29664         * config/spu/spu.c (get_branch_target): Likewise.
29666         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
29667         JUMP_TABLE_DATA_P.
29669 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
29671         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
29672         Fix declaration name.
29674 2013-03-28  Lawrence Crowl  <crowl@google.com>
29676         * graphds.h (struct graph.indicies): Remove unused.
29677         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
29678         (SCOP_ORIGINAL_PDDRS): Remove unused.
29679         * sese.h (extern insert_loop_close_phis): Removed unused.
29680         (extern insert_guard_phis): Removed unused.
29681         (extern ivtype_map_elt_info): Removed unused.
29682         (new_ivtype_map_elt): Removed unused.
29683         * sese.c (ivtype_map_elt_info): Removed unused.
29685 2013-03-28  Lawrence Crowl  <crowl@google.com>
29687         * Makefile.in: Add several missing include dependences.
29688         (DUMPFILE_H): New.
29689         (test-dump.o): New.  This object is not added to any executable,
29690         but is present for ad-hoc testing.
29691         * bitmap.c
29692         (debug (const bitmap_head_def &)): New.
29693         (debug (const bitmap_head_def *)): New.
29694         * bitmap.h
29695         (extern debug (const bitmap_head_def &)): New.
29696         (extern debug (const bitmap_head_def *)): New.
29697         * cfg.c
29698         (debug (edge_def &)): New.
29699         (debug (edge_def *)): New.
29700         * cfghooks.c
29701         (debug (basic_block_def &)): New.
29702         (debug (basic_block_def *)): New.
29703         * dumpfile.h
29704         (dump_node (const_tree, int, FILE *)): Correct source file.
29705         * dwarf2out.c
29706         (debug (die_struct &)): New.
29707         (debug (die_struct *)): New.
29708         * dwarf2out.h
29709         (extern debug (die_struct &)): New.
29710         (extern debug (die_struct *)): New.
29711         * gimple-pretty-print.c
29712         (debug (gimple_statement_d &)): New.
29713         (debug (gimple_statement_d *)): New.
29714         * gimple-pretty-print.h
29715         (extern debug (gimple_statement_d &)): New.
29716         (extern debug (gimple_statement_d *)): New.
29717         * ira-build.c
29718         (debug (ira_allocno_copy &)): New.
29719         (debug (ira_allocno_copy *)): New.
29720         (debug (ira_allocno &)): New.
29721         (debug (ira_allocno *)): New.
29722         * ira-int.h
29723         (extern debug (ira_allocno_copy &)): New.
29724         (extern debug (ira_allocno_copy *)): New.
29725         (extern debug (ira_allocno &)): New.
29726         (extern debug (ira_allocno *)): New.
29727         * ira-lives.c
29728         (debug (live_range &)): New.
29729         (debug (live_range *)): New.
29730         * lra-int.h
29731         (debug (lra_live_range &)): New.
29732         (debug (lra_live_range *)): New.
29733         * lra-lives.c
29734         (debug (lra_live_range &)): New.
29735         (debug (lra_live_range *)): New.
29736         * omega.c
29737         (debug (omega_pb_d &)): New.
29738         (debug (omega_pb_d *)): New.
29739         * omega.h
29740         (extern debug (omega_pb_d &)): New.
29741         (extern debug (omega_pb_d *)): New.
29742         * print-rtl.c
29743         (debug (const rtx_def &)): New.
29744         (debug (const rtx_def *)): New.
29745         * print-tree.c
29746         (debug_tree (tree): Move within file.
29747         (debug_raw (const tree_node &)): New.
29748         (debug_raw (const tree_node *)): New.
29749         (dump_tree_via_hooks (const tree_node *, int)): New.
29750         (debug (const tree_node &)): New.
29751         (debug (const tree_node *)): New.
29752         (debug_verbose (const tree_node &)): New.
29753         (debug_verbose (const tree_node *)): New.
29754         (debug_head (const tree_node &)): New.
29755         (debug_head (const tree_node *)): New.
29756         (debug_body (const tree_node &)): New.
29757         (debug_body (const tree_node *)): New.
29758         (debug_vec_tree (tree): Move and reimplement in terms of dump.
29759         (debug (vec<tree, va_gc> &)): New.
29760         (debug (vec<tree, va_gc> *)): New.
29761         * rtl.h
29762         (extern debug (const rtx_def &)): New.
29763         (extern debug (const rtx_def *)): New.
29764         * sbitmap.c
29765         (debug_raw (simple_bitmap_def &)): New.
29766         (debug_raw (simple_bitmap_def *)): New.
29767         (debug (simple_bitmap_def &)): New.
29768         (debug (simple_bitmap_def *)): New.
29769         * sbitmap.h
29770         (extern debug (simple_bitmap_def &)): New.
29771         (extern debug (simple_bitmap_def *)): New.
29772         (extern debug_raw (simple_bitmap_def &)): New.
29773         (extern debug_raw (simple_bitmap_def *)): New.
29774         * sel-sched-dump.c
29775         (debug (vinsn_def &)): New.
29776         (debug (vinsn_def *)): New.
29777         (debug_verbose (vinsn_def &)): New.
29778         (debug_verbose (vinsn_def *)): New.
29779         (debug (expr_def &)): New.
29780         (debug (expr_def *)): New.
29781         (debug_verbose (expr_def &)): New.
29782         (debug_verbose (expr_def *)): New.
29783         (debug (vec<rtx> &)): New.
29784         (debug (vec<rtx> *)): New.
29785         * sel-sched-dump.h
29786         (extern debug (vinsn_def &)): New.
29787         (extern debug (vinsn_def *)): New.
29788         (extern debug_verbose (vinsn_def &)): New.
29789         (extern debug_verbose (vinsn_def *)): New.
29790         (extern debug (expr_def &)): New.
29791         (extern debug (expr_def *)): New.
29792         (extern debug_verbose (expr_def &)): New.
29793         (extern debug_verbose (expr_def *)): New.
29794         (extern debug (vec<rtx> &)): New.
29795         (extern debug (vec<rtx> *)): New.
29796         * sel-sched-ir.h
29797         (_list_iter_cond_expr): Make inline instead of static.
29798         * sreal.c
29799         (debug (sreal &)): New.
29800         (debug (sreal *)): New.
29801         * sreal.h
29802         (extern debug (sreal &)): New.
29803         (extern debug (sreal *)): New.
29804         * tree.h
29805         (extern debug_raw (const tree_node &)): New.
29806         (extern debug_raw (const tree_node *)): New.
29807         (extern debug (const tree_node &)): New.
29808         (extern debug (const tree_node *)): New.
29809         (extern debug_verbose (const tree_node &)): New.
29810         (extern debug_verbose (const tree_node *)): New.
29811         (extern debug_head (const tree_node &)): New.
29812         (extern debug_head (const tree_node *)): New.
29813         (extern debug_body (const tree_node &)): New.
29814         (extern debug_body (const tree_node *)): New.
29815         (extern debug (vec<tree, va_gc> &)): New.
29816         (extern debug (vec<tree, va_gc> *)): New.
29817         * tree-cfg.c
29818         (debug (struct loop &)): New.
29819         (debug (struct loop *)): New.
29820         (debug_verbose (struct loop &)): New.
29821         (debug_verbose (struct loop *)): New.
29822         * tree-dump.c: Add header dependence.
29823         * tree-flow.h
29824         (extern debug (struct loop &)): New.
29825         (extern debug (struct loop *)): New.
29826         (extern debug_verbose (struct loop &)): New.
29827         (extern debug_verbose (struct loop *)): New.
29828         * tree-data-ref.c
29829         (debug (data_reference &)): New.
29830         (debug (data_reference *)): New.
29831         (debug (vec<data_reference_p> &)): New.
29832         (debug (vec<data_reference_p> *)): New.
29833         (debug (vec<ddr_p> &)): New.
29834         (debug (vec<ddr_p> *)): New.
29835         * tree-data-ref.h
29836         (extern debug (data_reference &)): New.
29837         (extern debug (data_reference *)): New.
29838         (extern debug (vec<data_reference_p> &)): New.
29839         (extern debug (vec<data_reference_p> *)): New.
29840         (extern debug (vec<ddr_p> &)): New.
29841         (extern debug (vec<ddr_p> *)): New.
29842         * tree-ssa-alias.c
29843         (debug (pt_solution &)): New.
29844         (debug (pt_solution *)): New.
29845         * tree-ssa-alias.h
29846         (extern debug (pt_solution &)): New.
29847         (extern debug (pt_solution *)): New.
29848         * tree-ssa-alias.c
29849         (debug (_var_map &)): New.
29850         (debug (_var_map *)): New.
29851         (debug (tree_live_info_d &)): New.
29852         (debug (tree_live_info_d *)): New.
29853         * tree-ssa-alias.h
29854         (extern debug (_var_map &)): New.
29855         (extern debug (_var_map *)): New.
29856         (extern debug (tree_live_info_d &)): New.
29857         (extern debug (tree_live_info_d *)): New.
29859 2013-03-28  Jan Hubicka  <jh@suse.cz>
29861         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
29863 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
29865         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
29866         record only when desired or required.
29868 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
29870         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
29871         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
29873 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29875         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
29876         (*andsi3_compare0_uxtw): New pattern.
29877         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
29878         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
29880 2013-03-28  Jan Hubicka  <jh@suse.cz>
29882         * data-streamer-in.c (streamer_read_gcov_count): New function.
29883         * gimple-streamer-out.c: Include value-prof.h.
29884         (output_gimple_stmt): Output histogram.
29885         (output_bb): Use streamer_write_gcov_count.
29886         * value-prof.c: Include data-streamer.h
29887         (dump_histogram_value): Add HIST_TYPE_MAX.
29888         (stream_out_histogram_value): New function.
29889         (stream_in_histogram_value): New function.
29890         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
29891         (stream_out_histogram_value, stream_in_histogram_value): Declare.
29892         * data-streamer-out.c (streamer_write_gcov_count): New function.
29893         (streamer_write_gcov_count_stream): New function.
29894         * lto-cgraph.c (lto_output_edge): Update counter streaming.
29895         (lto_output_node): Likewise.
29896         (input_node, input_edge): Likewise.
29897         * lto-streamer-out.c (output_cfg): Update streaming.
29898         * lto-streamer-in.c (input_cfg): Likewise.
29899         * data-streamer.h (streamer_write_gcov_count,
29900         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
29901         * gimple-streamer-in.c: Include value-prof.h
29902         (input_gimple_stmt): Input histograms.
29903         (input_bb): Update profile streaming.
29905 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
29907         * genmodes.c (emit_max_int): New function.
29908         (emit_insn_modes_h): Added call to emit_max_function.
29909         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
29910         Added doc.
29911         * machmode.def: Fixed comment.
29913 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
29915         * combine.c (try_combine): Removed useless assert.
29916         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
29918 2013-03-28  Marek Polacek  <polacek@redhat.com>
29919             Richard Biener  <rguenther@suse.de>
29921         PR tree-optimization/56695
29922         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
29923         build signed result of a vector comparison.
29924         * tree-cfg.c (verify_gimple_comparison): Check that a result
29925         of a vector comparison has signed type.
29927 2013-03-28  Richard Biener  <rguenther@suse.de>
29929         PR tree-optimization/37021
29930         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
29931         do not restrict gaps between groups.
29932         * tree-vect-stmts.c (vectorizable_load): Properly account for
29933         a gap between groups.
29935 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
29937         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
29938         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
29939         is not enabled.
29941 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
29943         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
29944         * doc/extend.texi (Named Address Spaces): Ditto.
29945         (Variable Attributes): Ditto.
29947 2013-03-27  Kai Tietz  <ktietz@redhat.com>
29949         * config.build: Add support for cygwin x64 target.
29950         * config.gcc: Likewise.
29951         * config.host: Likewise.
29952         * configure.ac: Likewise
29953         * configure: Regenerated.
29955 2013-03-27  Kai Tietz  <ktietz@redhat.com>
29957         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
29958         * config/i386/t-cygwin-w64: New file.
29959         * config/i386/cygwin-w64.h: New file.
29960         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
29961         and add support for x64-cygwin target.
29962         (CPP_SPEC): Likewise.
29963         (CXX_WRAP_SPEC_LIST): Undefine before define.
29964         (LIBGCJ_SONAME): Use 15 as version.
29966 2013-03-27  Richard Biener  <rguenther@suse.de>
29968         PR tree-optimization/56716
29969         * tree-ssa-structalias.c (perform_var_substitution): Adjust
29970         dumping for ref nodes.
29972 2013-03-27  Martin Jambor  <mjambor@suse.cz>
29974         PR tree-optimization/55334
29975         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
29976         restricted pointers to arrays.
29978 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
29980         * Makefile.in (.SUFFIXES): Add .cc.
29981         (.c.o): Apply same recipe for implicit rule .cc.o.
29983 2013-03-27  Richard Biener  <rguenther@suse.de>
29985         PR tree-optimization/37021
29986         * tree-vect-data-refs.c (vect_check_strided_load): Allow
29987         REALPART/IMAGPART_EXPRs around the supported refs.
29988         * tree-ssa-structalias.c (find_func_aliases): Assume that
29989         floating-point values are not used to transfer pointers.
29991 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
29993         * target.def (TARGET_HAS_IFUNC_P): New target hook.
29994         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
29995         * doc/tm.texi: Regenerate.
29996         * targhooks.h (default_has_ifunc_p): New.
29997         * targhooks.c (default_has_ifunc_p): Ditto.
29998         * config/linux-protos.h: New file.
29999         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
30000         hook for linux which disables support of indirect functions in android.
30001         * config/linux-android.c: New file.
30002         * config/t-linux-android.c: Ditto.
30003         * config.gcc: Added new object file linux-android.o.
30004         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
30005         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
30006         * varasm.c (do_assemble_alias): Likewise.
30007         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
30008         doesn't support indirect functions.
30009         * configure: Regenerate.
30011 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
30013         PR target/56102
30014         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
30015         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
30016         mult-word mode.
30018 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30020         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
30022 2013-03-27  Terry Guo  <terry.guo@arm.com>
30024         * config/arm/arm-cores.def: Added core cortex-r7.
30025         * config/arm/arm-tune.md: Regenerated.
30026         * config/arm/arm-tables.opt: Regenerated.
30027         * doc/invoke.texi: Added entry for core cortex-r7.
30029 2013-03-27  Walter Lee  <walt@tilera.com>
30031         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
30032         double-decrement of next_scratch_regno.
30034 2013-03-27  Walter Lee  <walt@tilera.com>
30036         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
30037         input operands.
30038         (insn_v1mulus): Ditto.
30039         (insn_v2muls): Ditto.
30041 2013-03-27  Walter Lee  <walt@tilera.com>
30043         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
30044         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
30046 2013-03-27  Walter Lee  <walt@tilera.com>
30048         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
30049         (*sibcall_value): Ditto.
30051 2013-03-27  Walter Lee  <walt@tilera.com>
30053         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
30054         (insn_mnz_v8qi): ... this ...
30055         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
30056         vector equivalent.
30057         (insn_v<n>mnz): Replaced by ...
30058         (insn_v1mnz): ... this ...
30059         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
30060         equivalent.
30061         (insn_mz_<mode>): Replaced by ...
30062         (insn_mz_v8qi): ... this ...
30063         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
30064         vector equivalent.
30065         (insn_v<n>mz): Replaced by ...
30066         (insn_v1mz): ... this ...
30067         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
30068         equivalent.
30070 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30072         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
30074 2013-03-26  Roland McGrath  <mcgrathr@google.com>
30076         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
30077         than fprintf with a non-constant, non-format string.
30079 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
30081         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
30082         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
30083         operand 0 predicate.
30084         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
30085         attribute.  Use general_x64nomem_operand as operand 1 predicate.
30086         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
30087         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
30088         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
30089         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
30090         (mov<mode>_insv_1): Remove expander.  Merge insn with
30091         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
30092         Use general_x64nomem_operand as operand 1 predicate.
30093         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
30094         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
30095         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
30096         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
30097         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
30098         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
30099         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
30100         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
30101         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
30102         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
30103         (general_x64nomem_operand): Ditto.
30105 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30107         * config/rtems.opt: Add -pthread option.
30109 2013-03-26  Richard Biener  <rguenther@suse.de>
30111         * alias.c (find_base_term): Avoid redundant and not used recursion.
30112         (base_alias_check): Get the initial base term from the caller.
30113         (true_dependence_1): Compute and pass base terms to base_alias_check.
30114         (write_dependence_p): Likewise.
30115         (may_alias_p): Likewise.
30117 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
30119         * config/aarch64/aarch64.c (aarch64_classify_address): Support
30120         PC-relative load in SI modes and above only.
30122 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
30124         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
30125         * config/arm/iwmmxt.md (WCGR0): Update.
30126         (WCGR1, WCGR2, WCGR3): Likewise.
30128 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
30130         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
30131         Use x64 and nox64 isa attributes.
30133 2013-03-26  Richard Biener  <rguenther@suse.de>
30135         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
30136         alignment computations and rely on get_object_alignment_1
30137         for the !TYPE_P case.
30138         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
30140 2013-03-26  Walter Lee  <walt@tilera.com>
30142         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
30143         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
30145 2013-03-25  Jeff Law  <law@redhat.com>
30147         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
30148         check for INTEGRAL_TYPE_P that was missing due to checking in
30149         wrong version of prior patch.
30151 2013-03-25  Walter Lee  <walt@tilera.com>
30153         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
30154         TILEGX_INSN_SHUFFLEBYTES1.
30155         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
30156         shufflebytes1.
30157         (tilegx_builtins): Ditto.
30158         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
30160 2013-03-25  Walter Lee  <walt@tilera.com>
30162         * config/tilegx/tilegx.md (floatsisf2): New pattern.
30163         (floatunssisf2): New pattern.
30164         (floatsidf2): New pattern.
30165         (floatunssidf2): New pattern.
30167 2013-03-25  Walter Lee  <walt@tilera.com>
30169         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
30170         tests for constraint J, K, N, P.
30172 2013-03-25  Walter Lee  <walt@tilera.com>
30174         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
30175         Use indirect/pcrel encoding.
30176         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
30177         Ditto.
30179 2013-03-25  Steve Ellcey  <sellcey@mips.com>
30181         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
30182         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
30183         * config/mips/mips.c (mips_option_override): Set IMADD default.
30184         * config/mips/mips.h (PTF_AVOID_IMADD): New.
30185         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
30186         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
30187         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
30188         * doc/invoke.texi (-mimadd/-mno-imadd): New.
30190 2013-03-25  Jeff Law  <law@redhat.com>
30192         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
30193         slightly to avoid creating and folding useless trees.  Simplify
30194         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
30196 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
30198         * config/i386/i386.md (*zero_extendsidi2): Merge with
30199         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
30200         * config/i386/predicates.md (x86_64_zext_operand): Rename from
30201         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
30202         targets.  Clarify comment.
30204 2013-03-25  Martin Jambor  <mjambor@suse.cz>
30206         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
30207         pass-through jump functions differently.
30208         (ipa_read_jump_function): Likewise.  Also use setter functions to set
30209         up jump functions.
30211 2013-03-25  Martin Jambor  <mjambor@suse.cz>
30213         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
30214         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
30215         process it.
30216         (ipa_get_indirect_edge_target): New function.
30217         (devirtualization_time_bonus): New parameter known_aggs, pass it to
30218         ipa_get_indirect_edge_target.  Update all callers.
30219         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
30220         ipa_get_indirect_edge_target_1 instead of calling
30221         ipa_get_indirect_edge_target.
30222         (create_specialized_node): Pass aggvlas to
30223         ipcp_discover_new_direct_edges.
30225 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30227         * config/arm/arm.md (f_sels, f_seld): New types.
30228         (*cmov<mode>): New pattern.
30229         * config/arm/predicates.md (arm_vsel_comparison_operator): New
30230         predicate.
30232 2013-03-25  Kai Tietz  <ktietz@redhat.com>
30234         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
30235         POSIX-printf for mingw-hosted  builds.
30237 2013-03-25  Richard Biener  <rguenther@suse.de>
30239         PR middle-end/56694
30240         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
30241         must-not-throw stmt location.
30243 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30245         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
30246         Emit load-acquire versions when acq is true.
30247         (arm_emit_store_exclusive): Add rel parameter.
30248         Emit store-release versions when rel is true.
30249         (arm_split_compare_and_swap): Use acquire-release instructions
30250         instead.
30251         of barriers when appropriate.
30252         (arm_split_atomic_op): Likewise.
30253         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
30254         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
30255         (VUNSPEC_SLX): Likewise.
30256         (VUNSPEC_LDA): Likewise.
30257         (VUNSPEC_STL): Likewise.
30258         * config/arm/sync.md (atomic_load<mode>): New pattern.
30259         (atomic_store<mode>): Likewise.
30260         (arm_load_acquire_exclusive<mode>): Likewise.
30261         (arm_load_acquire_exclusivesi): Likewise.
30262         (arm_load_acquire_exclusivedi): Likewise.
30263         (arm_store_release_exclusive<mode>): Likewise.
30265 2013-03-25  Catherine Moore  <clm@codesourcery.com>
30267         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
30268         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
30269         * config/mip/predicates.md (lwsp_swsp_operand,
30270         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
30271         sb16_operand, db4_operand, db7_operand, ib3_operand,
30272         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
30273         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
30274         andi16_operand): New predicates.
30275         * config/mips/mips.md (compression): New attribute.
30276         (enabled): New attribute.
30277         (length): Consider compression in computing length.
30278         (shift_compression): New code attribute.
30279         (*add<mode>3): New operands. Record compression.
30280         (sub<mode>3): Likewise.
30281         (one_cmpl<mode>2): Likewise.
30282         (*and<mode>3): Likewise.
30283         (*ior<mode>3): Likewise.
30284         (unnamed pattern for xor): Likewise.
30285         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
30286         (*<optab><mode>3): Likewise.
30287         (*mov<mode>_internal: Likewise.
30288         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
30289         (mips_unsigned_immediate_p): New.
30290         (umips_lwsp_swsp_address_p): New.
30291         (m16_based_address_p): New.
30292         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
30293         (mips_unsigned_immediate_p): New prototype.
30294         (lwsp_swsp_address_p): New prototype.
30295         (m16_based_address_p): New prototype.
30296         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
30297         (mips_signed_immediate_p): New function.
30298         (m16_based_address_p): New function.
30299         (lwsp_swsp_address_p): New function.
30300         (mips_print_operand_punctuation): Recognize short delay slot insns
30301         for microMIPS.add<mode>3"
30303 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30305         PR target/56720
30306         * config/arm/iterators.md (v_cmp_result): New mode attribute.
30307         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
30309 2013-03-25  Richard Biener  <rguenther@suse.de>
30311         PR tree-optimization/56689
30312         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
30313         any edge.
30315 2013-03-25  Richard Biener  <rguenther@suse.de>
30317         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
30318         of bitmap.
30319         (memory_references): Likewise.
30320         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
30321         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
30322         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
30323         (gather_mem_refs_in_loops): Fold into ...
30324         (analyze_memory_references): ... this.  Move initialization
30325         to tree_ssa_lim_initialize.
30326         (fill_always_executed_in): Rename to ...
30327         (fill_always_executed_in_1): ... this.
30328         (fill_always_executed_in): Move contains_call computation to
30329         this new function from ...
30330         (tree_ssa_lim_initialize): ... here.
30331         (tree_ssa_lim): Call fill_always_executed_in.
30333 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
30335         * postreload.c (reload_combine): Fix code detecting returns.
30337 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
30339         * function.c (emit_use_return_register_into_block): On cc0 targets,
30340         do not emit the sequence between cc0 setter and user.
30342 2013-03-25  Kai Tietz  <ktietz@redhat.com>
30344         * config/i386/predicates.md (local_symbolic_operand): Interpret
30345         dll-imported symbols as none-local.
30347 2013-03-25  Richard Biener  <rguenther@suse.de>
30349         * tree-ssa-loop-im.c (struct depend): Remove.
30350         (struct lim_aux_data): Make depends a vec of gimples.
30351         (free_lim_aux_data): Adjust.
30352         (add_dependency): Likewise.
30353         (set_level): Likewise.
30355 2013-03-25  Richard Biener  <rguenther@suse.de>
30357         PR middle-end/56434
30358         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
30359         the pointer returned by calls with ECF_MALLOC set.
30361 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
30363         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
30365 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
30367         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
30368         using MMXMODE mode iterator.
30369         (*move<mode>_internal): Merge with *movv2sf_internal and
30370         *movv2sf_internal_rex64 using MMXMODE mode iterator.
30372 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
30374         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
30375         (record_last_mem_set_info): Likewise.
30377         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
30378         of XNEWVEC followed by memset.
30379         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
30381 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
30383         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30384         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
30385         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
30386         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
30387         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
30388         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
30389         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
30390         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
30391         BARRIER_P instead of GET_CODE.
30393 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30395         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
30396         inaccuracy in the probing code.
30398         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
30399         (ctrapdi4): Likewise.
30401 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30403         * calls.c (expand_call): Add missing guard to code handling return
30404         of non-BLKmode structures in MSB.
30405         * function.c (expand_function_end): Likewise.
30407 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30409         * combine.c (try_combine): Adjust comment.  Do not add the set of
30410         insn #0 if the destination indirectly is set or dies in insn #2.
30411         Tidy up code to distribute a new note.
30413 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
30415         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
30416         also for alternatives 16 and 17.
30418 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
30420         * config/i386/sse.md (*mov<mode>_internal): Merge with
30421         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
30422         Emit insn template depending on type attribute.  Use
30423         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30424         movd instead of movq mnemonic for interunit moves.  Rewrite mode
30425         attribute calculation.  Remove unit attribute calculation.
30426         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
30427         Set prefix_data16 attribute for DImode ssemov types.
30428         Use Ym instead of y for SSE-MMX conversion alternatives.
30429         Reorder operand constraints.
30431 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
30433         * df.h (df_insn_delete): Adjust prototype.
30434         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
30435         and let it decide whether mark the basic block dirty.
30436         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
30437         * df-scan.c (df_insn_info_delete): New helper function, split
30438         off from df_insn_delete.
30439         (df_scan_free_bb_info): Use it.
30440         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
30441         Likewise.
30442         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
30443         that the insn is actually an insn and it has a non-NULL basic block.
30444         Do not mark basic block dirty if only deleting a DEBUG_INSN.
30446 2013-03-22  Richard Biener  <rguenther@suse.de>
30448         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
30449         dep_ref members.
30450         (mem_ref_alloc): Do not allocate them.
30451         (refs_independent_p): Do not query or maintain a cache.
30453 2013-03-22  Richard Biener  <rguenther@suse.de>
30455         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
30456         (gather_mem_refs_in_loops): Do not compute it.
30457         (analyze_memory_references): Do not allocate it.
30458         (tree_ssa_lim_finalize): Do not free it.
30459         (for_all_locs_in_loop): Do not query all_refs_in_loop.
30461 2013-03-22  Richard Biener  <rguenther@suse.de>
30463         * is-a.h (as_a): Use gcc_checking_assert.
30465 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
30467         * config/aarch64/aarch64.c (aarch64_print_operand): New
30468         format specifier for printing a constant in hex.
30469         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
30470         format specifier for printing second operand.
30472 2013-03-22  Richard Biener  <rguenther@suse.de>
30474         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
30475         bitmaps.
30476         (gather_mem_refs_in_loops): Perform store accumulation here.
30477         (create_vop_ref_mapping_loop): Remove.
30478         (create_vop_ref_mapping): Likewise.
30479         (analyze_memory_references): Initialize refs_stored_in_loop.
30480         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
30481         (record_indep_loop): Remove.
30482         (record_dep_loop): New function.
30483         (ref_indep_loop_p_1): Adjust to only walk over references
30484         in the loop, not its subloops.
30485         (ref_indep_loop_p): Rename to ...
30486         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
30487         maintaining a more fine-grained cache.
30488         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
30489         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
30491 2013-03-22  Richard Biener  <rguenther@suse.de>
30493         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
30494         (struct mem_ref): Make accesses_in_loop a vec of a vec of
30495         aggregate mem_ref_loc.
30496         (free_mem_ref_locs): Inline into ...
30497         (memref_free): ... this and adjust.
30498         (mem_ref_alloc): Adjust.
30499         (mem_ref_locs_alloc): Remove.
30500         (record_mem_ref_loc): Adjust.
30501         (get_all_locs_in_loop): Rewrite into ...
30502         (for_all_locs_in_loop): ... this iterator.
30503         (rewrite_mem_ref_loc): New functor.
30504         (rewrite_mem_refs): Use for_all_locs_in_loop.
30505         (sm_set_flag_if_changed): New functor.
30506         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
30507         (ref_always_accessed): New functor.
30508         (ref_always_accessed_p): Use for_all_locs_in_loop.
30510 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
30512         * tree-pass.h (PROP_gimple_lvec): New.
30513         * passes.c (dump_properties): Handle PROP_gimple_lvec.
30514         (init_optimization_passes): Move pass_lower_vector.
30515         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
30516         PROP_gimple_lvec.
30517         (pass_lower_vector): Provide PROP_gimple_lvec.
30518         (pass_lower_vector_ssa): Likewise.
30519         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
30521 2013-03-21  Mark Wielaard  <mjw@redhat.com>
30523         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
30525 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
30527         * config/i386/i386.md (*movdi_internal): Disparage slightly
30528         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
30529         conversion alternatives.
30531 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
30533         PR middle-end/48087
30534         * diagnostic.def (DK_WERROR): New kind.
30535         * diagnostic.h (werrorcount): Define.
30536         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
30537         promoted to DK_ERROR, increment DK_WERROR counter instead of
30538         DK_ERROR counter.
30539         * toplev.c (toplev_main): Call print_ignored_options even if
30540         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
30541         even if just werrorcount is non-zero.
30543         PR debug/55608
30544         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
30545         on failure.
30546         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
30547         (string_cst_pool_decl): New function.
30548         (optimize_one_addr_into_implicit_ptr): New function.
30549         (resolve_addr_in_expr): Optimize DWARF location expression
30550         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
30551         which doesn't live in memory, but has DW_AT_location or
30552         DW_AT_const_value, or refers to a string literal, into
30553         DW_OP_GNU_implicit_pointer.
30554         (optimize_location_into_implicit_ptr): New function.
30555         (resolve_addr): If removing DW_AT_location of a variable because
30556         it was DW_OP_addr of address of the variable, but the variable doesn't
30557         live in memory, try to emit const value attribute for the initializer.
30559 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
30561         * tree.h (VECTOR_TYPE_P): New macro.
30562         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
30563         TYPE_MODE): Use it.
30564         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
30565         VEC_COND_EXPR cannot be lvalues.
30566         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
30568 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
30570         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
30571         Restrict the transformation to equal modes.
30573 2013-03-21  Richard Biener  <rguenther@suse.de>
30575         PR tree-optimization/39326
30576         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
30577         (MEM_ANALYZABLE): Adjust.
30578         (record_mem_ref_loc): Move bitmap ops ...
30579         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
30580         unanalyzable refs, do not record locations for it.
30581         (analyze_memory_references): Allocate ref zero as shared
30582         unanalyzable ref.
30583         (refs_independent_p): Do not test for unanalyzed mems here.
30584         (ref_indep_loop_p_1): Special-case disambiguation against
30585         the unanalyzed ref.
30586         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
30588 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
30590         * config/arm/arm-protos.h (tune_params): Add
30591         prefer_neon_for_64bits field.
30592         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
30593         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
30594         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
30595         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
30596         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
30597         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
30598         (arm_option_override): Handle -mneon-for-64bits new option.
30599         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
30600         (prefer_neon_for_64bits): Declare new variable.
30601         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
30602         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
30603         (arch_enabled): Handle new arch types. Remove support for onlya8
30604         and nota8.
30605         (one_cmpldi2): Use new arch names.
30606         (zero_extend<mode>di2, extend<mode>di2): Ditto.
30607         * config/arm/arm.opt (mneon-for-64bits): Add option.
30608         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
30609         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
30610         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
30611         of onlya8.
30612         * doc/invoke.texi (-mneon-for-64bits): Document.
30614 2013-03-21  Richard Biener  <rguenther@suse.de>
30616         PR tree-optimization/39326
30617         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
30618         (sort_bbs_in_loop_postorder_cmp): New function.
30619         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
30621 2013-03-21  Richard Biener  <rguenther@suse.de>
30623         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
30624         (vect_insert_into_interleaving_chain): Likewise.
30625         (vect_drs_dependent_in_basic_block): Inline ...
30626         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
30627         split out from ...
30628         (vect_analyze_data_ref_dependence): ... here.  Simplify.
30629         (vect_check_interleaving): Simplify.
30630         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
30631         (vect_slp_analyze_data_ref_dependences): ... this new function.
30632         (dr_group_sort_cmp): New function.
30633         (vect_analyze_data_ref_accesses): Compute data-reference groups
30634         here instead of in vect_analyze_data_ref_dependence.  Use
30635         a more efficient algorithm.
30636         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
30637         vect_slp_analyze_data_ref_dependences.  Call
30638         vect_analyze_data_ref_accesses earlier.
30639         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
30640         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
30641         (vect_slp_analyze_data_ref_dependences): New prototype.
30643 2013-03-21  Richard Biener  <rguenther@suse.de>
30645         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
30646         ref is stored in the loop.
30647         (find_refs_for_sm): Walk only over all stores.
30648         (store_motion_loop): Allocate from lim_bitmap_obstack.
30649         (store_motion): Likewise.
30651 2013-03-21  Richard Biener  <rguenther@suse.de>
30653         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
30654         Update virtual SSA form.
30656 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30658         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
30659         * configure: Regenerate.
30660         * config.in: Regenerate.
30661         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
30662         if !HAVE_LD_EH_FRAME_CIEV3.
30664 2013-03-21  Richard Biener  <rguenther@suse.de>
30666         * tree-cfg.c (verify_expr_no_block): New function.
30667         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
30668         nor DECL_VALUE_EXPR have locations with associated blocks.
30669         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
30670         (clear_unused_block_pointer): Remove code dealing with
30671         blocks in DECL_DEBUG_EXPR locations.
30673 2013-03-21  Richard Biener  <rguenther@suse.de>
30675         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
30676         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
30677         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
30678         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
30679         instead of DECL_DEBUG_EXPR_IS_FROM.
30680         * gimplify.c (gimplify_modify_expr): Likewise.
30681         * tree-cfg.c (verify_expr_location_1): Likewise.
30682         * tree-complex.c (create_one_component_var): Likewise.
30683         * tree-sra.c (create_access_replacement): Likewise.
30684         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
30685         (clear_unused_block_pointer): Likewise.
30686         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
30687         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
30688         * var-tracking.c (var_debug_decl): Likewise.
30689         (track_expr_p): Likewise.
30690         * tree-inline.c (add_local_variables): Likewise.  Set
30691         DECL_HAS_DEBUG_EXPR_P after copying it.
30692         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
30693         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
30695 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
30697         PR bootstrap/56656
30698         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
30699         * configure: Regenerate.
30700         * config.in: Regenerate.
30701         * config/i386/i386.md (*movdf_internal): Use
30702         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30703         movd instead of movq mnemonic for interunit moves.
30704         (*movdi_internal): Ditto.
30706 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30708         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
30709         (abd<mode>_3): New pattern.
30710         (aba<mode>_3): New pattern.
30711         (fabd<mode>_3): New pattern.
30713 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30715         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
30716         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
30717         occurrence of REGISTER_PREFIX as its empty string.
30719 2013-03-20  Jeff Law  <law@redhat.com>
30721         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
30722         addititional equivalences for equality comparisons between an SSA_NAME
30723         and a constant where the SSA_NAME was set from a widening conversion.
30725 2013-03-20  Walter Lee  <walt@tilera.com>
30727         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
30729 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30731         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
30732         depending on type attribute.
30733         (*movti_internal): Ditto.
30734         (*movtf_internal): Ditto.
30735         (*movxf_internal): Ditto.
30736         (*movdf_internal): Ditto.
30737         (*movsf_internal): Ditto.
30739 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30741         * config/i386/i386.md (*movti_internal): Set prefix attribute to
30742         maybe_vex for sselog1 and ssemov types.
30743         (*movdi_internal): Reorder operand constraints.
30744         (*movsi_internal): Ditto.  Set prefix attribute to
30745         maybe_vex for sselog1 and ssemov types.
30746         (*movtf_internal): Set prefix attribute to maybe_vex
30747         for sselog1 and ssemov types.
30748         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
30749         DImode ssemov types.  Reorder operand constraints.
30750         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
30751         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
30752         attribute for SImode ssemov types.  Reorder operand constraints.
30754 2013-03-20  Martin Jambor  <mjambor@suse.cz>
30756         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
30757         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
30759 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
30761         * config/rs6000/predicates.md (indexed_address, update_address_mem
30762         update_indexed_address_mem): New predicates.
30763         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
30764         attribute for load/store instructions.
30765         * config/rs6000/dfp.md (movsd_store): Likewise.
30766         (movsd_load): Likewise.
30767         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
30768         (unnamed HI->DI extend define_insn): Likewise.
30769         (unnamed SI->DI extend define_insn): Likewise.
30770         (unnamed QI->SI extend define_insn): Likewise.
30771         (unnamed QI->HI extend define_insn): Likewise.
30772         (unnamed HI->SI extend define_insn): Likewise.
30773         (unnamed HI->SI extend define_insn): Likewise.
30774         (extendsfdf2_fpr): Likewise.
30775         (movsi_internal1): Likewise.
30776         (movsi_internal1_single): Likewise.
30777         (movhi_internal): Likewise.
30778         (movqi_internal): Likewise.
30779         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
30780         attribute for load/store instructions.
30781         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
30782         instructions.
30783         (mov<mode>_softfloat): Likewise.
30784         (mov<mode>_hardfloat32): Likewise.
30785         (mov<mode>_hardfloat64): Likewise.
30786         (mov<mode>_softfloat64): Likewise.
30787         (movdi_internal32): Likewise.
30788         (movdi_internal64): Likewise.
30789         (probe_stack_<mode>): Likewise.
30791 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
30793         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
30794         floating point, and decimal floating point to reload iterator.
30796         * config/rs6000/constraints.md (wl constraint): New constraints to
30797         return FLOAT_REGS if certain options are used to reduce the number
30798         of separate patterns that exist in the file.
30799         (wx constraint): Likewise.
30800         (wz constraint): Likewise.
30802         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30803         -mdebug=reg, print wg, wl, wx, and wz constraints.
30804         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30805         Initialize the reload functions for 64-bit binary/decimal floating
30806         point types.
30807         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30808         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30809         create the buffer on the stack to overcome not having a 32-bit
30810         load and store.
30811         (rs6000_emit_move): Likewise.
30812         (rs6000_secondary_memory_needed_rtx): Likewise.
30813         (rs6000_alloc_sdmode_stack_slot): Likewise.
30814         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30815         via xxlxor, just like DFmode 0.0.
30817         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
30818         define as 1 if we are running on a power7 or newer.
30819         (enum r6000_reg_class_enum): Add new constraints.
30821         * config/rs6000/dfp.md (movsd): Delete, combine with binary
30822         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
30823         with other moves by using conditional constraits (wg).  Use LFIWZX
30824         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
30825         (movsd splitter): Likewise.
30826         (movsd_hardfloat): Likewise.
30827         (movsd_softfloat): Likewise.
30829         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
30830         binary and decimal floating point moves.
30831         (fmove_ok): New attributes to combine binary and decimal floating
30832         point moves, and to combine power6x (mfpgpr) moves along normal
30833         floating moves.
30834         (real_value_to_target): Likewise.
30835         (f32_lr): Likewise.
30836         (f32_lm): Likewise.
30837         (f32_li): Likewise.
30838         (f32_sr): Likewise.
30839         (f32_sm): Likewise.
30840         (f32_si): Likewise.
30841         (movsf): Combine binary and decimal floating point moves.  Combine
30842         power6x (mfpgpr) moves with other moves by using conditional
30843         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
30844         (mov<mode> for SFmode/SDmode); Likewise.
30845         (SFmode/SDmode splitters): Likewise.
30846         (movsf_hardfloat): Likewise.
30847         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
30848         (movsf_softfloat): Likewise.
30849         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
30851         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
30852         wx and wz constraints.
30854         * config/rs6000/constraints.md (wg constraint): New constraint to
30855         return FLOAT_REGS if -mmfpgpr (power6x) was used.
30857         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
30858         constraint.
30860         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30861         -mdebug=reg, print wg, wl, wx, and wz constraints.
30862         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30863         Initialize the reload functions for 64-bit binary/decimal floating
30864         point types.
30865         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30866         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30867         create the buffer on the stack to overcome not having a 32-bit
30868         load and store.
30869         (rs6000_emit_move): Likewise.
30870         (rs6000_secondary_memory_needed_rtx): Likewise.
30871         (rs6000_alloc_sdmode_stack_slot): Likewise.
30872         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30873         via xxlxor, just like DFmode 0.0.
30875         * config/rs6000/dfp.md (movdd): Delete, combine with binary
30876         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
30877         with other moves by using conditional constraits (wg).  Use LFIWZX
30878         and STFIWX for loading SDmode on power7.
30879         (movdd splitters): Likewise.
30880         (movdd_hardfloat32): Likewise.
30881         (movdd_softfloat32): Likewise.
30882         (movdd_hardfloat64_mfpgpr): Likewise.
30883         (movdd_hardfloat64): Likewise.
30884         (movdd_softfloat64): Likewise.
30886         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
30887         64-bit binary and decimal floating point moves.
30888         (FMOVE64X): Likewise.
30889         (movdf): Combine 64-bit binary and decimal floating point moves.
30890         Combine power6x (mfpgpr) moves with other moves by using
30891         conditional constraits (wg).
30892         (mov<mode> for DFmode/DDmode): Likewise.
30893         (DFmode/DDmode splitters): Likewise.
30894         (movdf_hardfloat32): Likewise.
30895         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
30896         (movdf_softfloat32): Likewise.
30897         (movdf_hardfloat64_mfpgpr): Likewise.
30898         (movdf_hardfloat64): Likewise.
30899         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
30900         (movdf_softfloat64): Likewise.
30901         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
30902         (reload_<mode>_load): Move to later in the file so they aren't in
30903         the middle of the floating point move insns.
30904         (reload_<mode>_store): Likewise.
30906         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
30907         constraint.
30909         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
30910         constraint if -mdebug=reg.
30911         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
30912         Enable using dd reload support if needed.
30914         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
30915         binary and decimal floating point moves in rs6000.md.
30916         (movtd_internal): Likewise.
30918         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
30919         decimal floating point moves.
30920         (movtf): Likewise.
30921         (movtf_internal): Likewise.
30922         (mov<mode>_internal, TDmode/TFmode): Likewise.
30923         (movtf_softfloat): Likewise.
30924         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
30926         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
30927         movdi_internal64, using wg constraint for move direct operations.
30928         (movdi_internal64): Likewise.
30930         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
30931         MODES_TIEABLE_P for selected modes.  Print the numerical value of
30932         the various virtual registers. Use GPR/FPR first/last values,
30933         instead of hard coding the register numbers.  Print which modes
30934         have reload functions registered.
30935         (rs6000_option_override_internal): If -mdebug=reg, trace the options
30936         settings before/after setting cpu, target and subtarget settings.
30937         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
30938         and for secondary reload failures in rs6000_secondary_reload_inner.
30939         (rs6000_secondary_reload_fail): Likewise.
30940         (rs6000_secondary_reload_inner): Likewise.
30942         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
30943         macros for first/last GPR and FPR registers.
30944         (LAST_GPR_REGNO): Likewise.
30945         (FIRST_FPR_REGNO): Likewise.
30946         (LAST_FPR_REGNO): Likewise.
30948         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
30949         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
30950         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
30951         (vcond<mode><mode>): Likewise.
30952         (vcondu<mode><mode>): Likewise.
30953         (vector_gtu<mode>): Likewise.
30954         (vector_gte<mode>): Likewise.
30955         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
30956         to prevent the compiler from converting DImode operations to TImode.
30957         (ior<mode>3): Likewise.
30958         (and<mode>3): Likewise.
30959         (one_cmpl<mode>2): Likewise.
30960         (nor<mode>3): Likewise.
30961         (andc<mode>3): Likewise.
30963         * config/rs6000/constraints.md (wt constraint): New constraint
30964         that returns VSX_REGS if TImode is allowed in VSX registers.
30966         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
30967         constant under VSX.
30969         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
30970         similar to TImode, but it is restricted to being in the GPRs.
30972         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
30973         TImode to occupy a single VSX register.
30975         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
30976         -mvsx-timode for power7/power8.
30977         (power7 cpu): Likewise.
30978         (power8 cpu): Likewise.
30980         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
30981         sure that TFmode/TDmode take up two registers if they are ever
30982         allowed in the upper VSX registers.
30983         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
30984         registers.
30985         (rs6000_init_hard_regno_mode_ok): Likewise.
30986         (rs6000_debug_reg_global): Add debugging for PTImode and wt
30987         constraint.  Print if LRA is turned on.
30988         (rs6000_option_override_internal): Give an error if -mvsx-timode
30989         and VSX is not enabled.
30990         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
30991         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
30992         to reg+offset addressing.  Use PTImode when checking offset
30993         addresses for validity.
30994         (reg_offset_addressing_ok_p): Likewise.
30995         (rs6000_legitimate_offset_address_p): Likewise.
30996         (rs6000_legitimize_address): Likewise.
30997         (rs6000_legitimize_reload_address): Likewise.
30998         (rs6000_legitimate_address_p): Likewise.
30999         (rs6000_eliminate_indexed_memrefs): Likewise.
31000         (rs6000_emit_move): Likewise.
31001         (rs6000_secondary_reload): Likewise.
31002         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
31003         reloads to fpr registers to continue to use reg+offset addressing,
31004         but 64-bit reloads to altivec registers need reg+reg addressing.
31005         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
31006         it.  Treat LO_SUM like a PLUS operation.
31007         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
31008         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
31009         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
31010         registers to share a register with a smaller sized type, since VSX
31011         puts scalars in the upper 64-bits.
31012         (print_operand): Add support for PTImode.
31013         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
31014         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
31015         registers, but don't have arithmetic support.
31016         (rs6000_memory_move_cost): Add test for VSX.
31017         (rs6000_opt_masks): Add -mvsx-timode.
31019         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
31020         for TImode.
31021         (VSs): Likewise.
31022         (VSr): Use wt constraint for TImode.
31023         (VSv): Drop TImode support.
31024         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
31025         (vsx_movti_64bit): Likewise.
31026         (vsx_movti_32bit): Likewise.
31027         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
31028         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
31029         one '?' on the appropriate output constraint.  Do not allow TImode
31030         logical operations on 32-bit systems.
31031         (vsx_ior<mode>3): Likewise.
31032         (vsx_xor<mode>3): Likewise.
31033         (vsx_one_cmpl<mode>2): Likewise.
31034         (vsx_nor<mode>3): Likewise.
31035         (vsx_andc<mode>3): Likewise.
31036         (vsx_concat_<mode>): Likewise.
31037         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
31039         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
31040         OPTION_MASK_VSX_TIMODE.
31041         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
31042         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
31044         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
31045         (TI2 iterator): New iterator for TImode, PTImode.
31046         (wd mode attribute): Add values for vector types.
31047         (movti_string): Replace TI move operations with operations for TImode
31048         and PTImode.  Add support for TImode being allowed in VSX registers.
31049         (mov<mode>_string, TImode/PTImode): Likewise.
31050         (movti_ppc64): Likewise.
31051         (mov<mode>_ppc64, TImode/PTImode): Likewise.
31052         (TI mode splitters): Likewise.
31054         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
31055         constraint.
31057 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
31059         PR tree-optimization/56355
31060         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
31061         Also handle integers with undefined overflow.
31063 2013-03-20  Catherine Moore  <clm@codesourcery.com>
31064             Maciej W. Rozycki  <macro@codesourcery.com>
31065             Tom de Vries  <tom@codesourcery.com>
31066             Nathan Sidwell  <nathan@codesourcery.com>
31067             Iain Sandoe  <iain@codesourcery.com>
31068             Nathan Froyd  <froydnj@codesourcery.com>
31069             Chao-ying Fu  <fu@mips.com>
31071         * doc/extend.texi: (micromips, nomicromips, nocompression):
31072         Document new function attributes.
31073         * doc/invoke.texi (minterlink-compressed, mmicromips,
31074         m14k, m14ke, m14kec): Document new options.
31075         (minterlink-mips16): Update documentation.
31076         * doc/md.texi (ZC, ZD): Document new constraints.
31077         * configure.ac (gcc_cv_as_micromips): Check if linker
31078         supports the .set micromips directive.
31079         * configure: Regenerate.
31080         * config.in: Regenerate.
31081         * config/mips/mips-tables.opt: Regenerate.
31082         * config/mips/micromips.md: New file.
31083         * constraints.md (ZC, ZD): New constraints.
31084         * config/mips/predicates.md (movep_src_register): New predicate.
31085         (movep_src_operand): New predicate.
31086         (non_volatile_mem_operand): New predicate.
31087         * config/mips/mips.md (multimem): New type.
31088         (length): Differentiate between 17-bit and 18-bit branch offsets.
31089         (MOVEP1, MOVEP2): New mode iterator.
31090         (mov_<load>l): Use ZC constraint.
31091         (mov_<load>r): Likewise.
31092         (mov_<store>l): Likewise.
31093         (mov_<store>r): Likewise.
31094         (*branch_equality<mode>_inverted): Add microMIPS support.
31095         (*branch_equality<mode>): Likewise.
31096         (*jump_absolute): Likewise.
31097         (indirect_jump_<mode>): Likewise.
31098         (tablejump_<mode>): Likewise.
31099         (<optab>_internal): Likewise.
31100         (sibcall_internal): Likewise.
31101         (sibcall_value_internal): Likewise.
31102         (prefetch): Use constraint ZD.
31103         * config/mips/mips.opt (minterlink-compressed): New option.
31104         (minterlink-mips16): Now an alias for minterlink-compressed.
31105         (mmicromips): New option.
31106         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31107         (compare_and_swap_12): Likewise.
31108         (sync_add<mode>): Likewise.
31109         (sync_<optab>_12): Likewise.
31110         (sync_old_<optab>_12): Likewise.
31111         (sync_new_<optab>_12): Likewise.
31112         (sync_nand_12): Likewise.
31113         (sync_old_nand_12): Likewise.
31114         (sync_new_nand_12): Likewise.
31115         (sync_sub<mode>): Likewise.
31116         (sync_old_add<mode>): Likewise.
31117         (sync_old_sub<mode>): Likewise.
31118         (sync_new_add<mode>): Likewise.
31119         (sync_new_sub<mode>): Likewise.
31120         (sync_<optab><mode>): Likewise.
31121         (sync_old_<optab><mode>): Likewise.
31122         (sync_new_<optab><mode>): Likewise.
31123         (sync_nand<mode>): Likewise.
31124         (sync_old_nand<mode>): Likewise.
31125         (sync_new_nand<mode>): Likewise.
31126         (sync_lock_test_and_set<mode>): Likewise.
31127         (test_and_set_12): Likewise.
31128         (atomic_compare_and_swap<mode>): Likewise.
31129         (atomic_exchange<mode>_llsc): Likewise.
31130         (atomic_fetch_add<mode>_llsc): Likewise.
31131         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31132         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31133         (umips_save_restore_pattern_p): Likewise.
31134         (umips_load_store_pair_p): Likewise.
31135         (umips_output_load_store_pair): Likewise.
31136         (umips_movep_target_p): Likewise.
31137         (umips_12bit_offset_address_p): Likewise.
31138         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31139         (mips_base_mips16): Rename this...
31140         (mips_base_compression_flags): ...to this. Update all uses.
31141         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31142         (mips_mips16_decl_p): Delete.
31143         (mips_nomips16_decl_p): Delete.
31144         (mips_get_compress_on_flags): New function.
31145         (mips_get_compress_off_flags): New function.
31146         (mips_get_compress_mode): New function.
31147         (mips_get_compress_on_name): New function.
31148         (mips_get_compress_off_name): New function.
31149         (mips_insert_attributes): Support multiple compression types.
31150         (mips_merge_decl_attributes): Likewise.
31151         (umips_12bit_offset_address_p): New function.
31152         (mips_start_function_definition): Emit .set micromips directive.
31153         (mips_call_may_need_jalx_p): New function.
31154         (mips_function_ok_for_sibcall): Add microMIPS support.
31155         (mips_print_operand_punctuation): Support short delay slots and
31156         compact jumps.
31157         (umips_swm_mask, umips_swm_encoding): New.
31158         (umips_build_save_restore): New function.
31159         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31160         (was_mips16_p): Remove.
31161         (old_compression_mode): New.
31162         (mips_set_compression_mode): New function.
31163         (mips_set_current_function): Add microMIPS support.
31164         (mips_option_override): Likewise.
31165         (umips_save_restore_pattern_p): New function.
31166         (umips_output_save_restore): New function.
31167         (umips_load_store_pair_p_1): New function.
31168         (umips_load_store_pair_p): New function.
31169         (umips_output_load_store_pair_1): New function.
31170         (umips_output_load_store_pair): New function.
31171         (umips_movep_target_p) New function.
31172         (mips_prepare_pch_save): Add microMIPS support.
31173         * config/mips/mips.h (TARGET_COMPRESSION): New.
31174         (TARGET_CPU_CPP_BUILTINS): Update macro
31175         to use new compression flags and to support microMIPS.
31176         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31177         (MIPS_ARCH_FLOAT_SPEC): Likewise.
31178         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31179         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31180         (ASM_SPEC): Support mmicromips and mno-micromips.
31181         (M16STORE_REG_P): New macro.
31182         (MIPS_CALL): Support TARGET_MICROMIPS.
31183         (MICROMIPS_J): New macro.
31184         (mips_base_mips16): Rename this...
31185         (mips_base_compression_flags): ...to this.
31186         (UMIPS_12BIT_OFFSET_P): New macro.
31187         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31188         (MULTILIB_DIRNAMES): Likewise.
31189 2013-03-20  Richard Biener  <rguenther@suse.de>
31191         PR tree-optimization/56661
31192         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
31193         the result does not have to be distinct.
31195 2013-03-20  Richard Biener  <rguenther@suse.de>
31197         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
31198         remap_gimple_op_r.
31200 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31201             Steven Bosscher  <steven@gcc.gnu.org>
31203         PR rtl-optimization/56605
31204         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
31206 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31208         PR bootstrap/56656
31209         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
31210         that require movd instead of movq.
31212 2013-03-20  Richard Biener  <rguenther@suse.de>
31214         * tree-ssa-structalias.c (struct variable_info): Add pointer
31215         to the first field of an aggregate with sub-vars.  Make
31216         this and the pointer to the next subfield its ID.
31217         (vi_next): New function.
31218         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
31219         storedanything_id, integer_id): Increment by one.
31220         (new_var_info, get_call_vi, lookup_call_clobber_vi,
31221         get_call_clobber_vi): Adjust.
31222         (solution_set_expand): Simplify and speedup.
31223         (solution_set_add): Inline into ...
31224         (set_union_with_increment): ... this.  Adjust accordingly.
31225         (do_sd_constraint): Likewise.
31226         (do_ds_constraint): Likewise.
31227         (do_complex_constraint): Simplify.
31228         (build_pred_graph): Adjust.
31229         (solve_graph): Likewise.  Simplify and speedup.
31230         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
31231         get_constraint_for_component_ref, get_constraint_for_1,
31232         first_vi_for_offset, first_or_preceding_vi_for_offset,
31233         create_function_info_for, create_variable_info_for_1,
31234         create_variable_info_for, intra_create_variable_infos): Adjust.
31235         (init_base_vars): Push NULL for ID zero.
31236         (compute_points_to_sets): Adjust.
31238 2013-03-20  Richard Biener  <rguenther@suse.de>
31240         * cfgloop.c (verify_loop_structure): Streamline and avoid
31241         ICEing on corrupt loop tree.
31242         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
31243         loop tree.
31245 2013-03-20  Richard Biener  <rguenther@suse.de>
31247         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
31248         check whether an SSA update is needed.
31250 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
31252         * config/mips/constraints.md (T): Rename to...
31253         (Yf): ...this.
31254         (U): Rename to...
31255         (Yd): ...this.
31256         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
31257         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
31259 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31261         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
31262         (*subsi3_carryin_uxtw): Likewise.
31264 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31266         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
31267         (*rorsi3_insn_uxtw): Likewise.
31269 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31271         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
31272         (*extrsi5_insn_uxtw): Likewise.
31274 2013-03-19  Richard Biener  <rguenther@suse.de>
31276         PR tree-optimization/56273
31277         * passes.c (init_optimization_passes): Move second VRP after DOM.
31279 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
31281         * config/i386/i386.md (*movti_internal): Merge from
31282         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
31283         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
31284         nox64 isa attributes.
31286 2013-03-18  Richard Biener  <rguenther@suse.de>
31288         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
31289         (unite): Likewise.
31290         (merge_node_constraints): Likewise.
31291         (build_succ_graph): Likewise.
31292         (valid_graph_edge): Inline into single caller.
31293         (unify_nodes): Likewise.  Use bitmap_set_bit return value
31294         and cache varinfo.
31295         (scc_visit): Fix formatting and variable use.
31296         (do_sd_constraint): Use gcc_checking_assert.
31297         (do_ds_constraint): Likewise.
31298         (do_complex_constraint): Likewise.
31299         (condense_visit): Likewise.  Cleanup.
31300         (dump_pred_graph): New function.
31301         (perform_var_substitution): Dump the pred-graph before
31302         variable substitution.
31303         (find_equivalent_node): Use gcc_checking_assert.
31304         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
31306 2013-03-18  Richard Biener  <rguenther@suse.de>
31308         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31309         Remove cond_expr_stmt_list argument and do not gimplify the
31310         built expression.
31311         (vect_loop_versioning): Adjust.
31312         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
31313         Cleanup to use less temporaries.
31314         (vect_create_data_ref_ptr): Cleanup.
31316 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
31318         PR tree-optimization/56635
31319         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
31320         require types_compatible_p types.
31322 2013-03-18  Nick Clifton  <nickc@redhat.com>
31324         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
31325         spurious backslash.
31327         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
31328         Add missing line to comment describing function.
31330 2013-03-18  Richard Biener  <rguenther@suse.de>
31332         PR tree-optimization/56210
31333         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31334         Handle string / character search functions.
31335         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
31337 2013-03-18  Richard Biener  <rguenther@suse.de>
31339         PR middle-end/56483
31340         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
31341         and implement properly.
31342         * gimple.h (gimple_cond_single_var_p): Remove.
31344 2013-03-18  Richard Biener  <rguenther@suse.de>
31346         * tree-data-ref.h (find_data_references_in_loop): Declare.
31347         * tree-data-ref.c (get_references_in_stmt): Use a stack
31348         vector pre-allocated in the callers.
31349         (find_data_references_in_stmt): Adjust.
31350         (graphite_find_data_references_in_stmt): Likewise.
31351         (create_rdg_vertices): Likewise.
31352         (find_data_references_in_loop): Export.
31353         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
31354         Compute dependences here...
31355         (vect_analyze_data_refs): ...not here.  When we encounter
31356         a non-vectorizable data reference in basic-block vectorization
31357         truncate the data reference vector.  Do not bother to
31358         fixup data-dependence information for gather loads.
31359         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
31360         of data references, as reported.
31362 2013-03-18  Richard Biener  <rguenther@suse.de>
31364         PR tree-optimization/3713
31365         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
31366         has_constants and expr.
31367         (stmt_has_constants): Properly valueize SSA names when deciding
31368         whether the stmt has constants.
31370 2013-03-18  Richard Biener  <rguenther@suse.de>
31372         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
31373         whole function when there is nothing to do.
31374         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
31375         * tree-vectorizer.c (vectorize_loops): Update virtual and
31376         loop-closed SSA once.
31377         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
31379 2013-03-18  Richard Biener  <rguenther@suse.de>
31381         PR middle-end/56113
31382         * domwalk.c (bb_postorder): New global static.
31383         (cmp_bb_postorder): New function.
31384         (walk_dominator_tree): Replace scheme imposing an order for
31385         visiting dominator sons by one sorting them at the time they
31386         are pushed on the stack.
31388 2013-03-18  Richard Biener  <rguenther@suse.de>
31390         PR tree-optimization/39326
31391         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
31392         (struct mem_ref): Replace mem member with ao_ref typed member.
31393         (MEM_ANALYZABLE): Adjust.
31394         (memref_eq): Likewise.
31395         (mem_ref_alloc): Likewise.
31396         (gather_mem_refs_stmt): Likewise.
31397         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
31398         (execute_sm_if_changed_flag_set): Adjust.
31399         (execute_sm): Likewise.
31400         (ref_always_accessed_p): Likewise.
31401         (refs_independent_p): Likewise.
31402         (can_sm_ref_p): Likewise.
31404 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
31406         PR c/56566
31407         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
31408         return 1 even for !unsignedp.
31410 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
31412         * config/i386/i386.md (isa): Add x64 and nox64.
31413         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
31414         (*pushtf): Enable *roF alternative for x64 isa only.
31415         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
31416         mode attribute of integer alternatives to DImode for TARGET_64BIT.
31417         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
31418         (*movtf_internal): Merge from *movtf_internal_rex64 and
31419         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
31420         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
31421         nox64 isa attributes.
31422         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
31423         nox64 isa attributes.
31424         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
31426 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
31428         * config/alpha/alpha.c (TARGET_LRA_P): New define.
31430 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
31432         PR target/56640
31433         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
31434         class names.  Remove trailing comma after "ALL_REGS".
31436 2013-03-16  Jan Hubicka  <jh@suse.cz>
31438         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
31439         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
31440         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
31441         of cgraph_get_create_node.
31442         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
31444 2013-03-16  Jason Merrill  <jason@redhat.com>
31446         PR debug/49090
31447         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
31448         with DW_AT_default_value.
31450 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
31452         * BASE-VER: Set to 4.9.0.
31454 2013-03-14  Andi Kleen  <ak@linux.intel.com>
31456         PR target/56619
31457         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
31458         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
31459         Document _x* TSX intrinsics.
31461 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
31462             David Holsgrove  <david.holsgrove@xilinx.com>
31464         * configure.ac: Add MicroBlaze TLS support detection.
31465         * configure: Regenerate.
31466         * config/microblaze/microblaze-protos.h
31467         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
31468         symbol_mentioned_p, label_mentioned_p): Add prototypes.
31469         * config/microblaze/microblaze.c (microblaze_address_type): Add
31470         ADDRESS_TLS and tls_reloc address types.
31471         (microblaze_address_info): Add tls_reloc.
31472         (TARGET_HAVE_TLS): Define.
31473         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
31474          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
31475          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
31476         load_tls_operand,  microblaze_call_tls_get_addr,
31477         microblaze_legitimize_tls_address): New functions.
31478         (microblaze_classify_unspec): Handle UNSPEC_TLS.
31479         (get_base_reg): Use microblaze_tls_symbol_p.
31480         (microblaze_classify_address): Handle TLS.
31481         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
31482         label_mentioned_p and microblaze_tls_referenced_p.
31483         (microblaze_legitimize_address): Handle TLS.
31484         (microblaze_address_insns): Handle ADDRESS_TLS.
31485         (pic_address_needs_scratch): Handle TLS.
31486         (print_operand_address): Handle TLS.
31487         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
31488         (microblaze_expand_move): Handle TLS.
31489         (microblaze_legitimate_constant_p): Check
31490         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
31491         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31492         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
31493         (PIC_OFFSET_TABLE_REGNUM): Set.
31494         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
31495         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
31496         (addsi3, movsi_internal2, movdf_internal): Update constraints
31497         * config/microblaze/predicates.md (arith_plus_operand): Define
31498         (move_operand): Redefine as move_src_operand,
31499         check microblaze_tls_referenced_p.
31501 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
31503         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
31504         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
31506 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
31508         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
31509         CC mode for AND.
31511 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
31513         PR tree-optimization/53265
31514         * common.opt (Waggressive-loop-optimizations): New option.
31515         * tree-ssa-loop-niter.c: Include tree-pass.h.
31516         (do_warn_aggressive_loop_optimizations): New function.
31517         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
31518         if number_of_latch_executions returned constant.
31519         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
31520         early.  If number_of_latch_executions returned constant, set
31521         nb_iterations_upper_bound back to it.
31522         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
31523         field.
31524         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
31525         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
31527         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
31528         (MULTILIB_OSDIRNAMES): Set.
31529         * genmultilib: If defaultosdirname doesn't start with :: , set
31530         defaultosdirname2 instead, clear it and emit two . multilib_raw
31531         entries instead of just one.
31533 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
31535         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
31536         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
31537         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
31538         (SUBTARGET_OVERRIDE_OPTIONS): New.
31540 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
31542         PR target/49880
31543         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
31544         (musermode): Convert to Var(TARGET_USERMODE).
31545         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
31546         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
31547         * config/sh/sh.c (sh_option_override): Use
31548         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
31549         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
31550         condition.
31551         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
31552         TARGET_SH4.
31553         (udivsi3_i4_single, divsi3_i4_single): Use
31554         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
31556 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
31558         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
31559         default setting.
31561 2013-03-13  Richard Biener  <rguenther@suse.de>
31563         PR tree-optimization/56608
31564         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
31565         calls when vectorizing basic-blocks.
31567 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
31569         PR plugins/45078
31570         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
31571         tm_file.
31573 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
31575         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
31577 2013-03-11  Jan Hubicka  <jh@suse.cz>
31579         PR lto/56557
31580         * lto-streamer-out.c (output_symbol_p): Skip references from
31581         constructors of external variables.
31583 2013-03-11  Jan Hubicka  <jh@suse.cz>
31585         PR middle-end/56571
31586         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
31587         from pseudos.
31588         * emit-rtl.c (verify_rtx_sharing): Likewise.
31589         (copy_insn_1): Likewise.
31590         * rtl.c (copy_rtx): Likewise.
31592 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
31594         PR target/56591
31595         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
31596         output_operand_lossage message.
31598 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
31600         PR target/56470
31601         * arm.c (shift_op): Validate RTL pattern on the fly.
31602         (arm_print_operand, case 'S'): Don't use shift_operator to validate
31603         the RTL.
31605 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31607         PR target/56347
31608         * config/pa/pa.md (call_value): Check for calls to powf and direct to
31609         new call patterns that clobber %fr12.
31610         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
31611         split and postreload patterns.
31612         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
31613         registers %fr12 and %fr12R as call used.
31615 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
31617         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
31618         (canon_address, record_store, replace_read, check_mem_read_rtx,
31619         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
31620         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
31621         rest_of_handle_dse): Likewise.
31623 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
31625         PR middle-end/56524
31626         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
31627         Add base_optabs.
31628         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
31629         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
31630         (save_optabs_if_changed): Replace with...
31631         (init_tree_optimization_optabs): ...this.
31632         * optabs.c (save_optabs_if_changed): Rename to...
31633         (init_tree_optimization_optabs): ...this.  Take the optimization node
31634         as argument.  Do nothing if the base optabs are already correct.
31635         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
31636         to recompute optabs.
31637         * function.h (function): Remove optabs field.
31638         * function.c (invoke_set_current_function_hook): Call
31639         init_tree_optimization_optabs.  Use the result to initialize
31640         this_fn_optabs.
31642 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
31644         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
31645         if GTMA_HAS_NO_INSTRUMENTATION.
31646         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
31647         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
31648         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
31649         * gimple-pretty-print.c (dump_gimple_transaction): Handle
31650         GTMA_HAS_NO_INSTRUMENTATION.
31652 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
31654         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
31655         libasan_preinit.o.
31657 2013-03-08  Marek Polacek  <polacek@redhat.com>
31658             Jakub Jelinek  <jakub@redhat.com>
31660         PR tree-optimization/56478
31661         * predict.c (is_comparison_with_loop_invariant_p): Change the
31662         type of loop_step to tree.
31663         (predict_loops): Adjust.
31664         (predict_iv_comparison): Perform the computations on double_ints.
31666 2013-03-08  Richard Biener  <rguenther@suse.de>
31668         PR tree-optimization/56570
31669         * tree-cfg.c (verify_expr_location_1): Verify locations for
31670         DECL_DEBUG_EXPR.
31671         * tree-sra.c (create_access_replacement): Strip locations
31672         from DECL_DEBUG_EXPRs.
31674 2013-03-08  Richard Biener  <rguenther@suse.de>
31676         * tree-inline.c (expand_call_inline): Do not associate
31677         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
31678         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
31680 2013-03-08  Richard Biener  <rguenther@suse.de>
31682         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
31683         or block changes with -Og.  Fix for location / block encoding
31684         changes and PHI arguments with locations.
31686 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
31688         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
31689         for all counters.
31690         (struct output_info): Likewise.
31691         (register_overhead): Remove bad gcc_assert.
31692         (bitmap_find_bit): If there is only a single bitmap element, do not
31693         count a miss as a search.
31694         (print_statistics): Update for counter type changes.
31695         (dump_bitmap_statistics): Likewise.  Print headers such that they
31696         are properly lined up with the printed counters.
31698 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
31700         PR tree-optimization/56559
31701         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
31702         check that it has only a single use.
31704 2013-03-07  Richard Biener  <rguenther@suse.de>
31706         * doc/invoke.texi (fwhole-program): Discourage use in combination
31707         with -flto.
31709 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
31711         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
31713         PR tree-optimization/56539
31714         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
31715         instead of GSI_CONTINUE_LINKING as last argument to
31716         force_gimple_operand_gsi.  Adjust function comment.
31718         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
31719         aarch64-cores.def.
31721         PR middle-end/56548
31722         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
31723         promoted mode, convert the result back to the original mode.
31725 2013-03-06  Richard Biener  <rguenther@suse.de>
31727         PR middle-end/56294
31728         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
31729         (insert_updated_phi_nodes_compare_uids): New function.
31730         (update_ssa): Sort symbols_to_rename after UID before
31731         traversing it to insert PHI nodes.
31733 2013-03-06  Richard Biener  <rguenther@suse.de>
31735         PR middle-end/50494
31736         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
31737         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
31739         Revert
31740         2013-02-13  Richard Biener  <rguenther@suse.de>
31742         PR lto/50494
31743         * varasm.c (output_constant_def_1): Get the decl representing
31744         the constant as argument.
31745         (output_constant_def): Wrap output_constant_def_1.
31746         (make_decl_rtl): Use output_constant_def_1 with the decl
31747         representing the constant.
31748         (build_constant_desc): Optionally re-use a decl already
31749         representing the constant.
31750         (tree_output_constant_def): Adjust.
31752 2013-03-06  Joey Ye  <joey.ye@arm.com>
31754         PR lto/50293
31755         * gcc.c (convert_white_space): New function.
31756         (main): Handles white space in function name.
31758 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
31760         PR target/56529
31761         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
31762         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
31763         to SH_DIV_CALL_TABLE for TARGET_SH2.
31764         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
31765         list.
31766         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
31767         call-table options.
31769 2013-03-05  Sterling Augustine  <saugustine@google.com>
31770             Cary Coutant  <ccoutant@google.com>
31772         PR debug/55364
31773         * dwarf2out.c (resolve_addr): Don't call
31774         remove_loc_list_addr_table_entries a second time for the same
31775         expression.
31777 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31779         PR debug/56510
31780         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
31781         (avoid_complex_debug_insns): New function.
31782         (expand_debug_locations): Call it.
31784         PR rtl-optimization/56484
31785         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
31786         lifetimes of hard registers on small register class machines.
31788 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
31790         * config/microblaze/microblaze-protos.h: Rename
31791         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
31792         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
31793         fast_interrupt.
31794         (microblaze_fast_interrupt_function_p): New function.
31795         (microblaze_is_interrupt_handler): Rename to
31796         microblaze_is_interrupt_variant and add fast_interrupt check.
31797         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
31798         (save_restore_insns): Likewise.
31799         (compute_frame_size): Likewise.
31800         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
31801         (microblaze_globalize_label): Likewise.
31802         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
31803         * config/microblaze/microblaze.md: Use wrapper
31804         microblaze_is_interrupt_variant.
31806 2013-03-05  Kai Tietz  <ktietz@redhat.com>
31808         * sdbout.c (sdbout_one_type): Switch to current function's section
31809         supporting cold/hot.
31811 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
31813         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
31814         -mxl-reorder.
31816 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31818         PR middle-end/56461
31819         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
31820         if VALGRIND_GET_VBITS is defined, temporarily make object
31821         memory all defined, and restore previous valgrind addressability
31822         and definability afterwards.  Free this_object at the end.
31824         PR middle-end/56461
31825         * lra.c (lra): Call lra_clear_live_ranges if live_p,
31826         right before calling lra_create_live_ranges, also call it
31827         when clearing live_p.  Only call lra_clear_live_ranges
31828         at the end if live_p.
31830         PR middle-end/56461
31831         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
31833 2013-03-05  Richard Biener  <rguenther@suse.de>
31835         PR tree-optimization/56521
31836         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
31837         value-id.
31839 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
31841         PR c++/55135
31842         * except.h (remove_unreachable_eh_regions): New prototype.
31843         * except.c (remove_eh_handler_splicer): New function, split out
31844         of remove_eh_handler.
31845         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
31846         warning about running it on many EH regions one at a time.
31847         (remove_unreachable_eh_regions_worker): New function, walk the
31848         EH tree in depth-first order and remove non-marked regions.
31849         (remove_unreachable_eh_regions): New function.
31850         * tree-eh.c (mark_reachable_handlers): New function, split out
31851         from remove_unreachable_handlers.
31852         (remove_unreachable_handlers): Use mark_reachable_handlers and
31853         remove_unreachable_eh_regions.
31854         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
31855         and remove_unreachable_eh_regions.
31857 2013-03-05  Richard Biener  <rguenther@suse.de>
31859         PR middle-end/56525
31860         * loop-init.c (fix_loop_structure): Remove loops in two stages,
31861         not freeing them until the end.
31863 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31865         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
31867 2013-03-05  Richard Biener  <rguenther@suse.de>
31869         PR tree-optimization/56270
31870         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
31871         of loads after scheduling an SLP instance.
31873 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31875         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
31876         tic6x.exp.
31877         (check_gcc_parallelize): Run guality.exp as a separate job from
31878         vect.exp with unsorted.exp and $(dg_target_exps) separately from
31879         struct-layout-1.exp with stackalign.exp.
31881         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
31883         PR middle-end/56461
31884         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
31885         load_index sbitmap even if some bit in it isn't set.
31887         PR middle-end/56461
31888         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
31889         (discover_iteration_bound_by_body_walk): Change queues to
31890         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
31891         spelling in comment.  Call safe_push on queues[bound_index] directly.
31892         Release queues[queue_index] in every iteration unconditionally.
31893         Release bounds vector.
31895         PR middle-end/56461
31896         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
31897         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
31898         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
31899         inner_phis vector.
31901 2013-03-05  Richard Biener  <rguenther@suse.de>
31903         PR lto/56515
31904         * tree-inline.c (remap_blocks_to_null): New function.
31905         (expand_call_inline): When expanding a call stmt without
31906         an associated block inline remap all callee blocks to NULL.
31908 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31910         PR rtl-optimization/56494
31911         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
31912         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
31913         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
31915         PR middle-end/56461
31916         * sel-sched-ir.c (free_sched_pools): Release
31917         succs_info_pool.stack[succs_info_pool.max_top] vectors too
31918         if succs_info_pool.max_top isn't -1.
31920         PR bootstrap/56509
31921         * opts.c (opts_obstack, opts_concat): Moved to...
31922         * opts-common.c (opts_obstack, opts_concat): ... here.
31924 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
31926         PR middle-end/56461
31927         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
31929 2013-03-04  Martin Jambor  <mjambor@suse.cz>
31931         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
31932         all appropriate places.
31934 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31936         PR tree-optimization/56424
31937         * ipa-split.c (split_function): Do not set the RSO flag if result is
31938         not by reference and its type is a register type.
31940 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
31942         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
31943         (microblaze_legitimate_pic_operand): Likewise
31944         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
31945         new function microblaze_legitimate_pic_operand
31946         * config/microblaze/microblaze-protos.h
31947         (microblaze_legitimate_pic_operand): Declare.
31949 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31951         * config/microblaze/predicates.md (call_insn_simple_operand):
31952         New predicate for supported rtx code types.
31953         * config/microblaze/microblaze.md (call_internal1): Use
31954         call_insn_simple_operand predicate.
31956 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
31958         PR middle-end/56461
31959         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
31960         partitions.ordered_remove.
31962         PR middle-end/56461
31963         * tree-vect-stmts.c (vectorizable_conversion): Don't call
31964         vec_oprnds0.create (1) for modifier == NONE.
31966         PR middle-end/56461
31967         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
31968         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
31969         vec_oprnds1 right before pushing anything to it for
31970         scalar_shift_arg.
31972         PR middle-end/56461
31973         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
31974         set nbbs to 0 instead of having separate code path.
31975         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
31976         instead of false as last argument if returning NULL.
31978 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
31980         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
31981         the attribute is now called "target" instead of "option".
31982         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
31983         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
31984         attribute/pragma name for TARGET_OPTION_VALID_P and
31985         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
31986         * doc/tm.texi: Regenerated.
31988 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
31990         * config/microblaze/microblaze.c:
31991         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
31992         * config/microblaze/microblaze.h: Add -mxl-reorder to
31993         DRIVER_SELF_SPECS.
31994         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
31995         instructions emitted if TARGET_REORDER.
31996         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
31997         or 0 for -m/-mno case, but initialises as 2 to detect default use case
31998         separately.
32000 2013-03-01  Xinliang David Li  <davidxl@google.com>
32002         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
32003         walk length.
32005 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
32007         PR middle-end/56461
32008         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
32009         vector even when returning true.  Fix up function comment formatting.
32011         PR middle-end/56461
32012         * ira-build.c (ira_loop_nodes_count): New variable.
32013         (create_loop_tree_nodes): Initialize it.
32014         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
32016         PR middle-end/56461
32017         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
32018         method on dr_chain and result_chain.
32019         * tree-vect-stmts.c (vectorizable_store): Only call
32020         result_chain.create if j == 0.
32022         PR middle-end/56461
32023         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
32024         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
32025         before overwriting it.
32027 2013-03-01  Tobias Burnus  <burnus@net-b.de>
32029         * doc/extended.texi (C Extensions): Change order in @menu
32030         to match @node.
32031         (Other MIPS Built-in Functions): Move last MIPS entry before
32032         "picoChip Built-in Functions".
32033         (SH Built-in Functions): Move after RX Built-in Functions.
32034         * doc/gcc.texi (Introduction): Change order in @menu
32035         to match @node.
32036         * doc/md.texi (Constraints): Ditto.
32037         * gty.texi (Type Information): Ditto.
32038         (User-provided marking routines for template types): Make
32039         subsection.
32040         * doc/invoke.texi (AArch64 Options): Move before
32041         "Adapteva Epiphany Options".
32043 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
32044             Jakub Jelinek  <jakub@redhat.com>
32046         PR sanitizer/56454
32047         * asan.c (gate_asan): Lookup no_sanitize_address instead of
32048         no_address_safety_analysis attribute.
32049         * doc/extend.texi (no_address_safety_attribute): Rename to
32050         no_sanitize_address attribute, mention no_address_safety_analysis
32051         attribute as deprecated alias.
32053 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
32055         PR middle-end/56461
32056         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
32057         type to vec<vec<tree> > *.
32058         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
32059         to be vec<tree> instead of vec<tree> *, set vec_defs
32060         to vNULL and call vec_defs.create (number_of_vects), adjust other
32061         uses of vec_defs.
32062         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
32063         vectorizable_condition): Adjust vect_get_slp_defs callers.
32065 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32067         * config/aarch64/aarch64.c
32068         (aarch64_float_const_representable): Remove unused variable.
32070 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32072         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
32074 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32076         * config/aarch64/aarch64-builtins.c
32077         (aarch64_init_simd_builtins): Make static.
32079 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32081         * config/aarch64/aarch64.c
32082         (aarch64_simd_make_constant): Make static.
32084 2013-02-28  Martin Jambor  <mjambor@suse.cz>
32086         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
32087         with no initialization to the RHS of debug statements.
32089 2013-02-28  Martin Jambor  <mjambor@suse.cz>
32091         PR tree-optimization/56294
32092         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
32093         Adjust dumping.
32094         (get_access_replacement): Do not call create_access_replacement.
32095         Assert a replacement exists.
32096         (get_repl_default_def_ssa_name): Create the replacement declaration
32097         itself.
32099 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32101         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
32102         final_end_function.
32104 2013-02-28  Marek Polacek  <polacek@redhat.com>
32106         PR rtl-optimization/56466
32107         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
32108         if we're changing a loop.
32109         (peel_loops_completely): Likewise.
32111 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
32113         PR c++/55813
32114         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
32116 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32118         PR target/56445
32119         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
32120         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
32121         INTX_FTYPE_FX, FX_FTYPE_INTX.
32122         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
32124 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32126         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
32127         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
32128         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
32129         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
32130         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
32131         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
32132         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
32133         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
32134         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
32135         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
32136         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
32137         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
32138         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
32139         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
32140         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
32141         (avrxmega6): Increase max flash segments from 5 to 6.
32142         * config/avr/t-multilib: Regenerate.
32143         * config/avr/avr-tables.opt: Regenerate.
32144         * doc/avr-mmcu.texi: Regenerate.
32146 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32148         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
32149         (avr_device_to_arch): Rename to avr_device_to_ld.
32150         (avr_device_to_as): New prototype.
32151         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
32152         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
32153         * config/avr/driver-avr.c (avr_device_to_as): New.
32154         (avr_device_to_arch): Rename to avr_device_to_ld.
32156 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32158         PR middle-end/56461
32159         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
32160         method on dr_chain and result_chain.
32162         PR middle-end/56461
32163         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
32164         pointer_set_destroy on not_executed_last_iteration.
32166         PR middle-end/56461
32167         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
32169         PR middle-end/56461
32170         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
32171         FOR_EACH_DEFINED_FUNCTION when freeing state.
32173         PR middle-end/56461
32174         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
32175         pool_free.
32176         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
32177         overwriting it.
32179         PR middle-end/56461
32180         * ipa-cp.c (decide_whether_version_node): Call vec_free on
32181         known_aggs[i].items and release known_aggs vector.
32183         PR middle-end/56461
32184         * ipa-reference.c (propagate): Free node_info even for alias nodes.
32186 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32188         * config/microblaze/microblaze.c (microblaze_emit_compare):
32189         Use xor for EQ/NE comparisions.
32190         * config/microblaze/microblaze.md (cstoresf4): Add constraints
32191         (cbranchsf4): Adjust operator to comparison_operator.
32193 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32195         PR middle-end/56461
32196         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
32197         vector.
32198         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
32199         vec_safe_push, always update *slot.
32200         (redirect_edge_var_map_clear): Use vec_free.
32201         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
32202         (free_var_map_entry): Use vec_free.
32203         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
32204         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
32206 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
32208         PR middle-end/45472
32209         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
32210         when the may_trap_p bit of the exprs being merged differs.
32211         Reorder tests for speculativeness in the logical and operator.
32213 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32215         * incpath.c (add_standard_paths): Use reconcat instead of concat
32216         where appropriate and avoid leaking memory.
32218         * opts.h: Include obstack.h.
32219         (opts_concat): New prototype.
32220         (opts_obstack): New declaration.
32221         * opts.c (opts_concat): New function.
32222         (opts_obstack): New variable.
32223         (init_options_struct): Call gcc_init_obstack on opts_obstack.
32224         (finish_options): Use opts_concat instead of concat
32225         and XOBNEWVEC instead of XNEWVEC.
32226         * opts-common.c (generate_canonical_option, decode_cmdline_option,
32227         generate_option): Likewise.
32228         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
32229         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
32231         PR target/56455
32232         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
32233         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
32235 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
32237         PR middle-end/56461
32238         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
32240 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
32242         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
32243         (arm_block_move_unaligned_straight): Likewise.
32244         (arm_adjust_block_mem): Likewise.
32246 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
32248         PR target/48901
32249         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
32250         temp, cond and label.
32251         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
32253         PR target/52500
32254         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
32255         * config/c6x/c6x.h (dbx_register_map): Update declaration.
32257         PR target/52501
32258         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
32259         of prologue/epilogue functions.
32261         PR target/52550
32262         * config/tilegx/tilegx.c (tilegx_expand_prologue):
32263         Remove unused variable cfa_offset.
32264         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
32266         PR target/54639
32267         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
32268         type promotion to unsigned.
32270         PR target/54640
32271         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
32272         for HOST_WIDE_INT of 32 bit / same size as int.
32273         (arm_block_move_unaligned_straight): Likewise.
32274         (arm_adjust_block_mem): Likewise.
32276         PR target/54662
32277         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
32278         ALL_CFLAGS.
32280 2013-02-26  Marek Polacek  <polacek@redhat.com>
32282         PR tree-optimization/56426
32283         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
32285 2013-02-26  Richard Biener  <rguenther@suse.de>
32287         PR target/56444
32288         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
32289         unused variable loops.
32291 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
32293         PR tree-optimization/56448
32294         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
32295         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
32296         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
32297         later operands of the references, or even first operand for
32298         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
32300         PR tree-optimization/56443
32301         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
32302         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
32303         to type_for_mode langhook.
32305 2013-02-25  Matt Turner  <mattst88@gmail.com>
32307         * doc/invoke.texi: Document r4700.
32309 2013-02-25  Richard Biener  <rguenther@suse.de>
32311         PR tree-optimization/56175
32312         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
32313         split out from ...
32314         (simplify_bitwise_binary): ... here.  Also guard the conversion
32315         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
32317 2013-02-25  Catherine Moore  <clm@codesourcery.com>
32319         Revert:
32320         2013-02-24  Catherine Moore  <clm@codesourcery.com>
32321             Maciej W. Rozycki  <macro@codesourcery.com>
32322             Tom de Vries  <tom@codesourcery.com>
32323             Nathan Sidwell  <nathan@codesourcery.com>
32324             Iain Sandoe  <iain@codesourcery.com>
32325             Nathan Froyd  <froydnj@codesourcery.com>
32326             Chao-ying Fu  <fu@mips.com>
32328         * doc/extend.texi: (micromips, nomicromips, nocompression):
32329         Document new function attributes.
32330         * doc/invoke.texi (minterlink-compressed, mmicromips,
32331         m14k, m14ke, m14kec): Document new options.
32332         (minterlink-mips16): Update documentation.
32333         * doc/md.texi (ZC, ZD): Document new constraints.
32334         * configure.ac (gcc_cv_as_micromips): Check if linker
32335         supports the .set micromips directive.
32336         * configure: Regenerate.
32337         * config.in: Regenerate.
32338         * config/mips/mips-tables.opt: Regenerate.
32339         * config/mips/micromips.md: New file.
32340         * constraints.md (ZC, AD): New constraints.
32341         * config/mips/predicates.md (movep_src_register): New predicate.
32342         (movep_src_operand): New predicate.
32343         (non_volatile_mem_operand): New predicate.
32344         * config/mips/mips.md (multimem): New type.
32345         (length): Differentiate between 17-bit and 18-bit branch offsets.
32346         (MOVEP1, MOVEP2): New mode iterator.
32347         (mov_<load>l): Use ZC constraint.
32348         (mov_<load>r): Likewise.
32349         (mov_<store>l): Likewise.
32350         (mov_<store>r): Likewise.
32351         (*branch_equality<mode>_inverted): Add microMIPS support.
32352         (*branch_equality<mode>): Likewise.
32353         (*jump_absolute): Likewise.
32354         (indirect_jump_<mode>): Likewise.
32355         (tablejump_<mode>): Likewise.
32356         (<optab>_internal): Likewise.
32357         (sibcall_internal): Likewise.
32358         (sibcall_value_internal): Likewise.
32359         (prefetch): Use constraint ZD.
32360         * config/mips/mips.opt (minterlink-compressed): New option.
32361         (minterlink-mips16): Now an alias for minterlink-compressed.
32362         (mmicromips): New option.
32363         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32364         (compare_and_swap_12): Likewise.
32365         (sync_add<mode>): Likewise.
32366         (sync_<optab>_12): Likewise.
32367         (sync_old_<optab>_12): Likewise.
32368         (sync_new_<optab>_12): Likewise.
32369         (sync_nand_12): Likewise.
32370         (sync_old_nand_12): Likewise.
32371         (sync_new_nand_12): Likewise.
32372         (sync_sub<mode>): Likewise.
32373         (sync_old_add<mode>): Likewise.
32374         (sync_old_sub<mode>): Likewise.
32375         (sync_new_add<mode>): Likewise.
32376         (sync_new_sub<mode>): Likewise.
32377         (sync_<optab><mode>): Likewise.
32378         (sync_old_<optab><mode>): Likewise.
32379         (sync_new_<optab><mode>): Likewise.
32380         (sync_nand<mode>): Likewise.
32381         (sync_old_nand<mode>): Likewise.
32382         (sync_new_nand<mode>): Likewise.
32383         (sync_lock_test_and_set<mode>): Likewise.
32384         (test_and_set_12): Likewise.
32385         (atomic_compare_and_swap<mode>): Likewise.
32386         (atomic_exchange<mode>_llsc): Likewise.
32387         (atomic_fetch_add<mode>_llsc): Likewise.
32388         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32389         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32390         (umips_save_restore_pattern_p): Likewise.
32391         (umips_load_store_pair_p): Likewise.
32392         (umips_output_load_store_pair): Likewise.
32393         (umips_movep_target_p): Likewise.
32394         (umips_12bit_offset_address_p): Likewise.
32395         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32396         (mips_base_mips16): Rename this...
32397         (mips_base_compression_flags): ...to this. Update all uses.
32398         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32399         (mips_mips16_decl_p): Delete.
32400         (mips_nomips16_decl_p): Delete.
32401         (mips_get_compress_on_flags): New function.
32402         (mips_get_compress_off_flags): New function.
32403         (mips_get_compress_mode): New function.
32404         (mips_get_compress_on_name): New function.
32405         (mips_get_compress_off_name): New function.
32406         (mips_insert_attributes): Support multiple compression types.
32407         (mips_merge_decl_attributes): Likewise.
32408         (umips_12bit_offset_address_p): New function.
32409         (mips_start_function_definition): Emit .set micromips directive.
32410         (mips_call_may_need_jalx_p): New function.
32411         (mips_function_ok_for_sibcall): Add microMIPS support.
32412         (mips_print_operand_punctuation): Support short delay slots and
32413         compact jumps.
32414         (umips_swm_mask, umips_swm_encoding): New.
32415         (umips_build_save_restore): New function.
32416         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32417         (was_mips16_p): Remove.
32418         (old_compression_mode): New.
32419         (mips_set_compression_mode): New function.
32420         (mips_set_current_function): Add microMIPS support.
32421         (mips_option_override): Likewise.
32422         (umips_save_restore_pattern_p): New function.
32423         (umips_output_save_restore): New function.
32424         (umips_load_store_pair_p_1): New function.
32425         (umips_load_store_pair_p): New function.
32426         (umips_output_load_store_pair_1): New function.
32427         (umips_output_load_store_pair): New function.
32428         (umips_movep_target_p) New function.
32429         (mips_prepare_pch_save): Add microMIPS support.
32430         * config/mips/mips.h (TARGET_COMPRESSION): New.
32431         (TARGET_CPU_CPP_BUILTINS): Update macro
32432         to use new compression flags and to support microMIPS.
32433         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32434         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32435         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32436         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32437         (ASM_SPEC): Support mmicromips and mno-micromips.
32438         (M16STORE_REG_P): New macro.
32439         (MIPS_CALL): Support TARGET_MICROMIPS.
32440         (MICROMIPS_J): New macro.
32441         (mips_base_mips16): Rename this...
32442         (mips_base_compression_flags): ...to this.
32443         (UMIPS_12BIT_OFFSET_P): New macro.
32444         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32445         (MULTILIB_DIRNAMES): Likewise.
32447 2013-02-25  Tom de Vries  <tom@codesourcery.com>
32449         PR rtl-optimization/56131
32450         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
32451         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
32452         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
32454 2013-02-25  Tobias Burnus  <burnus@net-b.de>
32456         * doc/invoke.texi (-fsanitize=): Move from optimization
32457         to debugging options.
32459 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
32461         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
32463 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
32464             Alexander Monakov  <amonakov@ispras.ru>
32466         PR middle-end/56077
32467         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
32468         flush pending lists also on non-jumps.  Adjust comment.
32470 2013-02-24  Catherine Moore  <clm@codesourcery.com>
32471             Maciej W. Rozycki  <macro@codesourcery.com>
32472             Tom de Vries  <tom@codesourcery.com>
32473             Nathan Sidwell  <nathan@codesourcery.com>
32474             Iain Sandoe  <iain@codesourcery.com>
32475             Nathan Froyd  <froydnj@codesourcery.com>
32476             Chao-ying Fu  <fu@mips.com>
32478         * doc/extend.texi: (micromips, nomicromips, nocompression):
32479         Document new function attributes.
32480         * doc/invoke.texi (minterlink-compressed, mmicromips,
32481         m14k, m14ke, m14kec): Document new options.
32482         (minterlink-mips16): Update documentation.
32483         * doc/md.texi (ZC, ZD): Document new constraints.
32484         * configure.ac (gcc_cv_as_micromips): Check if linker
32485         supports the .set micromips directive.
32486         * configure: Regenerate.
32487         * config.in: Regenerate.
32488         * config/mips/mips-tables.opt: Regenerate.
32489         * config/mips/micromips.md: New file.
32490         * constraints.md (ZC, AD): New constraints.
32491         * config/mips/predicates.md (movep_src_register): New predicate.
32492         (movep_src_operand): New predicate.
32493         (non_volatile_mem_operand): New predicate.
32494         * config/mips/mips.md (multimem): New type.
32495         (length): Differentiate between 17-bit and 18-bit branch offsets.
32496         (MOVEP1, MOVEP2): New mode iterator.
32497         (mov_<load>l): Use ZC constraint.
32498         (mov_<load>r): Likewise.
32499         (mov_<store>l): Likewise.
32500         (mov_<store>r): Likewise.
32501         (*branch_equality<mode>_inverted): Add microMIPS support.
32502         (*branch_equality<mode>): Likewise.
32503         (*jump_absolute): Likewise.
32504         (indirect_jump_<mode>): Likewise.
32505         (tablejump_<mode>): Likewise.
32506         (<optab>_internal): Likewise.
32507         (sibcall_internal): Likewise.
32508         (sibcall_value_internal): Likewise.
32509         (prefetch): Use constraint ZD.
32510         * config/mips/mips.opt (minterlink-compressed): New option.
32511         (minterlink-mips16): Now an alias for minterlink-compressed.
32512         (mmicromips): New option.
32513         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32514         (compare_and_swap_12): Likewise.
32515         (sync_add<mode>): Likewise.
32516         (sync_<optab>_12): Likewise.
32517         (sync_old_<optab>_12): Likewise.
32518         (sync_new_<optab>_12): Likewise.
32519         (sync_nand_12): Likewise.
32520         (sync_old_nand_12): Likewise.
32521         (sync_new_nand_12): Likewise.
32522         (sync_sub<mode>): Likewise.
32523         (sync_old_add<mode>): Likewise.
32524         (sync_old_sub<mode>): Likewise.
32525         (sync_new_add<mode>): Likewise.
32526         (sync_new_sub<mode>): Likewise.
32527         (sync_<optab><mode>): Likewise.
32528         (sync_old_<optab><mode>): Likewise.
32529         (sync_new_<optab><mode>): Likewise.
32530         (sync_nand<mode>): Likewise.
32531         (sync_old_nand<mode>): Likewise.
32532         (sync_new_nand<mode>): Likewise.
32533         (sync_lock_test_and_set<mode>): Likewise.
32534         (test_and_set_12): Likewise.
32535         (atomic_compare_and_swap<mode>): Likewise.
32536         (atomic_exchange<mode>_llsc): Likewise.
32537         (atomic_fetch_add<mode>_llsc): Likewise.
32538         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32539         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32540         (umips_save_restore_pattern_p): Likewise.
32541         (umips_load_store_pair_p): Likewise.
32542         (umips_output_load_store_pair): Likewise.
32543         (umips_movep_target_p): Likewise.
32544         (umips_12bit_offset_address_p): Likewise.
32545         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32546         (mips_base_mips16): Rename this...
32547         (mips_base_compression_flags): ...to this. Update all uses.
32548         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32549         (mips_mips16_decl_p): Delete.
32550         (mips_nomips16_decl_p): Delete.
32551         (mips_get_compress_on_flags): New function.
32552         (mips_get_compress_off_flags): New function.
32553         (mips_get_compress_mode): New function.
32554         (mips_get_compress_on_name): New function.
32555         (mips_get_compress_off_name): New function.
32556         (mips_insert_attributes): Support multiple compression types.
32557         (mips_merge_decl_attributes): Likewise.
32558         (umips_12bit_offset_address_p): New function.
32559         (mips_start_function_definition): Emit .set micromips directive.
32560         (mips_call_may_need_jalx_p): New function.
32561         (mips_function_ok_for_sibcall): Add microMIPS support.
32562         (mips_print_operand_punctuation): Support short delay slots and
32563         compact jumps.
32564         (umips_swm_mask, umips_swm_encoding): New.
32565         (umips_build_save_restore): New function.
32566         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32567         (was_mips16_p): Remove.
32568         (old_compression_mode): New.
32569         (mips_set_compression_mode): New function.
32570         (mips_set_current_function): Add microMIPS support.
32571         (mips_option_override): Likewise.
32572         (umips_save_restore_pattern_p): New function.
32573         (umips_output_save_restore): New function.
32574         (umips_load_store_pair_p_1): New function.
32575         (umips_load_store_pair_p): New function.
32576         (umips_output_load_store_pair_1): New function.
32577         (umips_output_load_store_pair): New function.
32578         (umips_movep_target_p) New function.
32579         (mips_prepare_pch_save): Add microMIPS support.
32580         * config/mips/mips.h (TARGET_COMPRESSION): New.
32581         (TARGET_CPU_CPP_BUILTINS): Update macro
32582         to use new compression flags and to support microMIPS.
32583         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32584         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32585         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32586         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32587         (ASM_SPEC): Support mmicromips and mno-micromips.
32588         (M16STORE_REG_P): New macro.
32589         (MIPS_CALL): Support TARGET_MICROMIPS.
32590         (MICROMIPS_J): New macro.
32591         (mips_base_mips16): Rename this...
32592         (mips_base_compression_flags): ...to this.
32593         (UMIPS_12BIT_OFFSET_P): New macro.
32594         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32595         (MULTILIB_DIRNAMES): Likewise.
32597 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
32599         PR target/52555
32600         * target-globals.c (save_target_globals): For init_reg_sets and
32601         target_reinit remporarily set this_fn_optabs to this_target_optabs.
32603 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
32605         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
32606         * config/aarch64/t-aarch64
32607         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
32609 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
32611         PR inline-asm/56148
32612         * lra-constraints.c (process_alt_operands): Reload operand
32613         conflicting with earlier clobber only if no more other conflicting
32614         operands.
32616 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
32618         PR sanitizer/56393
32619         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
32620         if not linking a shared library.
32622 2013-02-22  Seth LaForge  <sethml@google.com>
32624         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
32626 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
32628         * config/arm/arm.md (split for extendsidi): Update condition.
32629         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
32630         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
32631         (qhs_zextenddi_cstr): Likewise.
32633 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
32635         PR middle-end/56420
32636         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
32637         avoid signed wrapping.
32638         (expand_mult): Handle properly multiplication by
32639         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
32640         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
32641         in the compiler if coeff is HOST_WIDE_INT_MIN.
32642         (expand_divmod): Don't make ext_op1 static, change it's type to
32643         uhwi.  Avoid undefined behavior in -INTVAL (op1).
32645         PR rtl-optimization/50339
32646         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
32647         field.
32648         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
32649         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
32650         into splitting_ashiftrt field.
32651         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
32652         ASHIFTRT.
32653         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
32654         choices.
32656 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
32658         PR middle-end/56108
32659         * trans-mem.c (execute_tm_mark): Do not expand transactions that
32660         are sure to go irrevocable.
32662 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
32664         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
32665         scalars are valid operands.
32667 2013-02-21  Martin Jambor  <mjambor@suse.cz>
32669         PR tree-optimization/56310
32670         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
32671         only matching indices and non-negative final offsets.
32672         (intersect_aggregates_with_edge): Pass src_idx to
32673         agg_replacements_to_vector.  Pass src_idx insstead of index to
32674         intersect_with_agg_replacements.
32676 2013-02-21  Martin Jambor  <mjambor@suse.cz>
32678         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
32679         instead of hard-wired defaults.
32681 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
32683         * doc/invoke.texi (MIPS Options): Update documentation of the
32684         floating-point multiply-accumulate instruction restrictions.
32686 2013-02-21  Kostya Serebryany  <kcc@google.com>
32688         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
32689         asan_shadow_offset on x86_64 linux.
32691 2013-02-21  Richard Biener  <rguenther@suse.de>
32693         PR tree-optimization/56415
32694         Revert
32695         2013-02-11  Richard Biener  <rguenther@suse.de>
32697         PR tree-optimization/56273
32698         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32699         first VRP run.
32701 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
32703         PR bootstrap/56258
32704         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
32705         instead of @itemx.
32707         PR inline-asm/56405
32708         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
32709         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
32711 2013-02-20  Jan Hubicka  <jh@suse.cz>
32713         PR tree-optimization/56265
32714         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
32715         when target is referenced for first time.
32717 2013-02-20  Richard Biener  <rguenther@suse.de>
32719         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
32720         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
32721         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
32722         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
32723         not return anything.
32724         (rename_ssa_copies): Do not remove unused locals.
32725         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
32726         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
32727         * passes.c (execute_function_todo): Do not schedule unused locals
32728         removal if cleanup_tree_cfg did something.
32729         * tree-ssa-live.c (remove_unused_locals): Dump statistics
32730         about the number of removed locals.
32732 2013-02-20  Richard Biener  <rguenther@suse.de>
32734         PR tree-optimization/56398
32735         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
32737 2013-02-20  Martin Jambor  <mjambor@suse.cz>
32739         PR tree-optimization/55334
32740         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
32741         restricted pointers to arrays.
32743 2013-02-20  Richard Biener  <rguenther@suse.de>
32744             Jakub Jelinek  <jakub@redhat.com>
32746         PR tree-optimization/56396
32747         * tree-ssa-ccp.c (n_const_val): New static variable.
32748         (get_value): Return NULL for SSA names we don't have a lattice
32749         entry for.
32750         (ccp_initialize): Initialize n_const_val.
32751         * tree-ssa-copy.c (n_copy_of): New static variable.
32752         (init_copy_prop): Initialize n_copy_of.
32753         (get_value): Return NULL_TREE for SSA names we don't have a
32754         lattice entry for.
32756 2013-02-20  Martin Jambor  <mjambor@suse.cz>
32758         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
32760 2013-02-20  Richard Biener  <rguenther@suse.de>
32762         * genpreds.c (write_lookup_constraint): Do not compare first
32763         letter of the constraint again.
32765 2013-02-20  Richard Biener  <rguenther@suse.de>
32767         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
32768         and ceil_log2.
32769         (get_use_iv_cost): Terminate hashtable walk when coming across
32770         an empty entry.
32772 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
32774         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
32775         reassociation for avx2 targets.
32777 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32779         * config/microblaze/microblaze.c: microblaze_has_clz = 0
32780         Add version check for v8.10.a to enable microblaze_has_clz
32781         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
32782         version and TARGET_PATTERN_COMPARE check
32783         * config/microblaze/microblaze.md: New clzsi2 instruction
32785 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32787         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
32788         function before branching.
32790 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
32792         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
32793         DUMP_INSN_RTX_UID.
32794         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
32796 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
32798         PR middle-end/55889
32799         * sel-sched.c: Include ira.h.
32800         (implicit_clobber_conflict_p): New function.
32801         (moveup_expr): Use it.
32802         * Makefile.in (sel-sched.o): Depend on ira.h.
32804 2013-02-19  Richard Biener  <rguenther@suse.de>
32806         PR tree-optimization/56384
32807         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
32808         (vn_hash_type): Split out from ...
32809         (vn_hash_constant_with_type): ... here.
32810         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
32811         (vn_phi_eq): Compare types from vn_phi_s structure.
32812         (vn_phi_lookup): Populate vn_phi_s type.
32813         (vn_phi_insert): Likewise.
32815 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
32817         PR tree-optimization/56350
32818         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
32819         if haven't found reduction or nested cycle operand, rather than
32820         asserting we must find it.
32822         PR tree-optimization/56381
32823         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
32824         to fold_build3.
32826 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
32827             Jakub Jelinek  <jakub@redhat.com>
32829         PR target/52555
32830         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
32831         (swap_optab_enable): Same.
32832         (init_all_optabs): Use argument instead of global.
32833         * tree.h (struct tree_optimization_option): New field target_optabs.
32834         * expr.h (init_all_optabs): Add argument to prototype.
32835         (TREE_OPTIMIZATION_OPTABS): New.
32836         (save_optabs_if_changed): Protoize.
32837         * optabs.h: Declare this_fn_optabs.
32838         * optabs.c (save_optabs_if_changed): New.
32839         Declare this_fn_optabs.
32840         (init_optabs): Add argument to init_all_optabs() call.
32841         * function.c (invoke_set_current_function_hook): Handle per
32842         function optabs.
32843         * function.h (struct function): New field optabs.
32844         * config/mips/mips.c (mips_set_mips16_mode): Handle when
32845         optimization_current_node has changed.
32846         * target-globals.h (save_target_globals_default_opts): Protoize.
32847         * target-globals.c (save_target_globals_default_opts): New.
32849 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32851         PR target/56347
32852         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
32853         registers %fr12 and %fr12R as call used.
32855         PR target/56214
32856         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
32857         and HImode, require all displacements to be an integer multiple of
32858         their mode size.
32859         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
32860         only allow QImode and HImode when reload is in progress and strict is
32861         true.  Likewise for symbolic addresses.  Use base14_operand to check
32862         displacements in REG+BASE addresses.
32864 2013-02-18  Richard Biener  <rguenther@suse.de>
32866         PR tree-optimization/56366
32867         * tree-vect-loop.c (get_initial_def_for_induction): Properly
32868         handle sign-conversion of outer-loop initial induction value.
32870 2013-02-18  Richard Biener  <rguenther@suse.de>
32872         PR middle-end/56349
32873         * cfghooks.c (merge_blocks): If we merge a latch into another
32874         block adjust references to it.
32875         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
32876         (verify_loop_structure): Verify that a recorded latch is in fact
32877         a latch.
32879 2013-02-18  Richard Biener  <rguenther@suse.de>
32881         PR tree-optimization/56321
32882         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
32883         order SSA name release and virtual operand unlinking.
32885 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32887         * config/microblaze/microblaze.md (save_stack_block): Define.
32888         (restore_stack_block): Likewise.
32890 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32892         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
32893         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
32894         * config/microblaze/microblaze.c (microblaze_option_override):
32895         Bail out early for PIC modes when target does not support PIC.
32897 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32899         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
32900         Replace with a microblaze version.
32901         (microblaze_trampoline_init): Adapt for microblaze.
32902         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
32903         microblaze.
32905 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
32906             Dodji Seketeli  <dodji@redhat.com>
32908         PR asan/56330
32909         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
32910         (instrument_mem_region_access): Do not forget to always put
32911         instrumentation of the of 'base' and 'base + len' in a "if (len !=
32912         0) statement, even for cases where either 'base' or 'base + len'
32913         are not instrumented -- because they have been previously
32914         instrumented.  Simplify the logic by putting all the statements
32915         instrument 'base + len' inside a sequence, and then insert that
32916         sequence right before the current insertion point.  Then, to
32917         instrument 'base + len', just get an iterator on that statement.
32918         And do not forget to update the pointer to iterator the function
32919         received as argument.
32921 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
32923         PR rtl-optimization/56348
32924         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
32926 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
32928         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
32929         (clean_graph_dump_file): Pass base to start_graph_dump.
32931 2013-02-14  Richard Henderson  <rth@redhat.com>
32933         PR target/55941
32934         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
32936 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
32938         * collect2-aix.h: Define F_LOADONLY.
32940 2013-02-14  Richard Biener  <rguenther@suse.de>
32942         PR lto/50494
32943         * varasm.c (output_constant_def_1): Get the decl representing
32944         the constant as argument.
32945         (output_constant_def): Wrap output_constant_def_1.
32946         (make_decl_rtl): Use output_constant_def_1 with the decl
32947         representing the constant.
32948         (build_constant_desc): Optionally re-use a decl already
32949         representing the constant.
32950         (tree_output_constant_def): Adjust.
32952 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
32954         Fix an asan crash
32955         * asan.c (instrument_builtin_call):  Really put the length of the
32956         second source argument into src1_len.
32958 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
32960         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
32961         argument.  If it is false, don't create edge from then_bb to
32962         fallthru_bb.
32963         (insert_if_then_before_iter): Pass true to it.
32964         (build_check_stmt): Pass false to it.
32965         (transform_statements): Flush hash table only on extended basic
32966         block boundaries, rather than at the beginning of every bb.
32967         Don't flush hash table on nonfreeing_call_p calls.
32968         * tree-flow.h (nonfreeing_call_p): New prototype.
32969         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
32971 2013-02-13  David S. Miller  <davem@davemloft.net>
32973         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
32975 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
32977         PR target/56184
32978         * ira.c (max_regno_before_ira): Move from ...
32979         (ira): ... here.
32980         (fix_reg_equiv_init): Use max_regno_before_ira instead of
32981         vec_safe_length.
32983 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
32985         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
32987 2013-02-13  Richard Biener  <rguenther@suse.de>
32989         PR lto/56295
32990         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
32991         globals in MEM_REFs.
32993 2013-02-13  Richard Biener  <rguenther@suse.de>
32995         * loop-init.c (loop_optimizer_init): Clear loop state when
32996         re-initializing preserved loops.
32997         * loop-unswitch.c (unswitch_single_loop): Return whether
32998         we unswitched the loop.  Do not verify loop state here.
32999         (unswitch_loops): When we unswitched a loop discover new loops.
33001 2013-02-13  Kostya Serebryany  <kcc@google.com>
33003         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
33004         on x86_64 linux.
33005         * sanitizer.def: Rename __asan_init to __asan_init_v1.
33007 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
33009         Avoid instrumenting duplicated memory access in the same basic block
33010         * Makefile.in (asan.o): Add new dependency on hash-table.h
33011         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
33012         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
33013         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
33014         (free_mem_ref_resources, has_mem_ref_been_instrumented)
33015         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
33016         (get_mem_ref_of_assignment): New functions.
33017         (get_mem_refs_of_builtin_call): Extract from
33018         instrument_builtin_call and tweak a little bit to make it fit with
33019         the new signature.
33020         (instrument_builtin_call): Use the new
33021         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
33022         of is_gimple_builtin_call.
33023         (instrument_derefs, instrument_mem_region_access): Insert the
33024         instrumented memory reference into the hash table.
33025         (maybe_instrument_assignment): Renamed instrument_assignment into
33026         this, and change it to advance the iterator when instrumentation
33027         actually happened and return true in that case.  This makes it
33028         homogeneous with maybe_instrument_assignment, and thus give a
33029         chance to callers to be more 'regular'.
33030         (transform_statements): Clear the memory reference hash table
33031         whenever we enter a new BB, when we cross a function call, or when
33032         we are done transforming statements.  Use
33033         maybe_instrument_assignment instead of instrumentation.  No more
33034         need to special case maybe_instrument_assignment and advance the
33035         iterator after calling it; it's now handled just like
33036         maybe_instrument_call.  Update comment.
33038 2013-02-13  Richard Biener  <rguenther@suse.de>
33040         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
33041         Fix loop discovery code.
33043 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
33045         PR inline-asm/56148
33046         * lra-constraints.c (process_alt_operands): Match early clobber
33047         operand with itself.  Check conflicts with earlyclobber only if
33048         the operand is not reloaded.  Prefer to reload conflicting operand
33049         if earlyclobber and matching operands are the same.
33051 2013-02-12  Richard Biener  <rguenther@suse.de>
33053         PR lto/56297
33054         * lto-streamer-out.c (write_symbol): Do not output symbols
33055         for hard register variables.
33057 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
33059         PR target/54222
33060         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
33061         (umulsidi3_insn, mulsidi3_insn): New insns.
33063 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
33065         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
33066         (struct tune_params): Add vec_costs field.
33067         * config/arm/arm.c (arm_builtin_vectorization_cost)
33068         (arm_add_stmt_cost): New functions.
33069         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
33070         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
33071         (arm_default_vec_cost): New struct of type cpu_vec_costs.
33072         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
33073         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
33074         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
33075         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
33077 2013-02-12  Richard Biener  <rguenther@suse.de>
33079         PR lto/56295
33080         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
33081         decls again if possible.
33083 2013-02-12  Richard Biener  <rguenther@suse.de>
33085         PR middle-end/56288
33086         * tree-ssa.c (verify_ssa_name): Fix check, move
33087         SSA_NAME_IN_FREE_LIST check up.
33089 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
33090             Steven Bosscher   <steven@gcc.gnu.org>
33092         PR rtl-optimization/56151
33093         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
33094         equal to op0 or op1, and last_insn pattern is CODE operation
33095         with MEM dest and one of the operands matches that MEM.
33097 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
33099         * doc/extend.texi: Document Function Multiversioning and "default"
33100         parameter string to target attribute.
33101         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
33102         target attribute parameter is "default".
33103         (ix86_compare_version_priority): Remove checks for target attribute.
33104         (ix86_mangle_function_version_assembler_name): Change error to sorry.
33105         Remove check for target attribute equal to NULL. Add assert.
33106         (ix86_generate_version_dispatcher_body): Change error to sorry.
33108 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
33109             Jack Howarth  <howarth@bromo.med.uc.edu>
33110             Patrick Marlier  <patrick.marlier@gmail.com>
33112         PR libitm/55693
33113         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
33114         define ENDFILE_SPEC as TM_DESTRUCTOR.
33115         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
33117 2013-02-11  Alexander Potapenko  <glider@google.com>
33118             Jack Howarth  <howarth@bromo.med.uc.edu>
33119             Jakub Jelinek  <jakub@redhat.com>
33121         PR sanitizer/55617
33122         * config/darwin.c (cdtor_record): Rename ctor_record.
33123         (sort_cdtor_records): Rename sort_ctor_records.
33124         (finalize_dtors): New routine to sort destructors by
33125         priority before use in assemble_integer.
33126         (machopic_asm_out_destructor): Use finalize_dtors if needed.
33128 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
33130         PR rtl-optimization/56275
33131         * simplify-rtx.c (avoid_constant_pool_reference): Check that
33132         offset is non-negative and less than cmode size before
33133         calling simplify_subreg.
33135 2013-02-11  Richard Biener  <rguenther@suse.de>
33137         PR tree-optimization/56264
33138         * cfgloop.h (fix_loop_structure): Adjust prototype.
33139         * loop-init.c (fix_loop_structure): Return the number of
33140         newly discovered loops.
33141         * tree-cfgcleanup.c (repair_loop_structures): When new loops
33142         are discovered, do a full loop-closed SSA rewrite.
33144 2013-02-11  Richard Biener  <rguenther@suse.de>
33146         PR tree-optimization/56273
33147         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33148         first VRP run.
33149         (check_array_ref): Fix missing newline in dumps.
33150         (search_for_addr_array): Likewise.
33152 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
33154         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
33156 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
33158         PR target/56256
33159         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
33161 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
33163         PR rtl-optimization/56246
33164         * lra-constraints.c (simplify_operand_subreg): Try to reuse
33165         reload pseudo.
33166         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
33167         constraints are satisfied.
33169 2013-02-08  Jeff Law  <law@redhat.com>
33171         PR debug/53948
33172         * emit-rtl.c (reg_is_parm_p): New function.
33173         * regs.h (reg_is_parm_p): New prototype.
33174         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
33175         callee-clobbered registers.
33177 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
33179         PR target/56043
33180         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
33181         If there is no implicit builtin declaration, just return NULL.
33183 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33185         * config/i386/sse.md (FMAMODEM): New mode iterator.
33186         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
33187         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
33189 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33191         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
33192         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
33193         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
33195 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33197         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
33198         (microblaze*-*-elf): Likewise.
33199         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
33200         LINK_SPEC.
33201         * config/microblaze/microblaze-c.c: Add builtin defines for
33202         _LITTLE_ENDIAN and _BIG_ENDIAN.
33203         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
33204         add to TARGET_DEFAULT flags.
33205         Expand ASM_SPEC and LINK_SPEC.
33206         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
33207         * config/microblaze/microblaze.md: Update extendsidi2 and
33208         movdi_internal instructions to use low-order / high-order reg
33209         print_operands.
33210         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
33211         options and inversemask / mask of LITTLE_ENDIAN.
33212         * config/microblaze/t-microblaze: Expand multilib options to
33213         include mlittle-endian (le) and update exceptions patterns.
33215 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
33217         PR rtl-optimization/56195
33218         * lra-constraints.c (get_reload_reg): Don't reuse regs
33219         if they have smaller mode than requested, if they have
33220         wider mode than requested, try to return a SUBREG.
33222         PR tree-optimization/56250
33223         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
33224         if type is unsigned and code isn't MULT_EXPR.
33226 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
33228         PR tree-optimization/56064
33229         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
33230         bits according to mode.
33231         * fixed-value.h (fixed_from_double_int)
33232         (const_fixed_from_double_int): Adjust comments.
33234 2013-02-08  Richard Biener  <rguenther@suse.de>
33236         PR lto/56231
33237         * lto-streamer.h (struct data_in): Remove current_file, current_line
33238         and current_col members.
33239         * lto-streamer-out.c (lto_output_location): Stream changed bits
33240         en-block for efficiency.
33241         * lto-streamer-in.c (clear_line_info): Remove.
33242         (lto_input_location): Cache current file, line and column
33243         globally via local statics.  Read changed bits en-block.
33244         (input_function): Do not call clear_line_info.
33245         (lto_read_body): Likewise.
33246         (lto_input_toplevel_asms): Likewise.
33248 2013-02-08  Michael Matz  <matz@suse.de>
33250         PR tree-optimization/52448
33251         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
33252         (nt_call_phase): New static.
33253         (add_or_mark_expr): Only mark accesses with newer phase than any
33254         call seen.
33255         (nonfreeing_call_p): New.
33256         (nt_init_block): Update nt_call_phase, mark blocks as visited.
33257         (nt_fini_block): Keep blocks marked as visited.
33258         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
33260 2013-02-08  Richard Biener  <rguenther@suse.de>
33262         * ira.c (ira): Free broken dominator information.
33264 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33266         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
33268 2013-02-08  Marek Polacek  <polacek@redhat.com>
33270         * cfgloop.c (verify_loop_structure): Add more checking of headers.
33272 2013-02-08  Richard Biener  <rguenther@suse.de>
33274         PR middle-end/56181
33275         * cfgloop.h (flow_loops_find): Adjust.
33276         (bb_loop_header_p): Declare.
33277         * cfgloop.c (bb_loop_header_p): New function split out from ...
33278         (flow_loops_find): ... here.  Adjust function signature,
33279         support incremental loop structure update.
33280         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
33281         * cfgloopmanip.c (fix_loop_structure): Move ...
33282         * loop-init.c (fix_loop_structure): ... here.
33283         (apply_loop_flags): Split out from ...
33284         (loop_optimizer_init): ... here.
33285         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
33286         in incremental mode, only remove dead loops here.
33288 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
33290         PR target/54222
33291         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
33292         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
33293         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
33294         (*round<mode>3.libgcc): New insns for fixed-modes.
33295         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
33296         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
33297         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
33298         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
33299         implementations.  Define to __builtin_avr_absFX,
33300         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
33301         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
33302         __builtin_avr_countlsFX, respectively.
33303         * config/avr/avr-c.c (target.h): Include it.
33304         (enum avr_builtin_id): New enum.
33305         (avr_resolve_overloaded_builtin): New static function.
33306         (avr_register_target_pragmas): Use it to set
33307         targetm.resolve_overloaded_builtin.
33308         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
33309         tree nodes used by DEF_BUILTIN.
33310         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
33311         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
33312         <AVR_BUILTIN_xxBITS>: Same.
33314 2013-02-08  Richard Biener  <rguenther@suse.de>
33316         * cfgloop.c (verify_loop_structure): Properly handle
33317         a loop exiting to another loop header.
33318         * ira-int.h (ira_loops): Remove.
33319         * ira.c (ira_loops): Remove.
33320         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
33321         (do_reload): Use loop_optimizer_finalize.
33322         * ira-build.c (create_loop_tree_nodes): Use get_loops and
33323         number_of_loops to access the loop tree.
33324         (more_one_region_p): Likewise.
33325         (finish_loop_tree_nodes): Likewise.
33326         (rebuild_regno_allocno_maps): Likewise.
33327         (mark_loops_for_removal): Likewise.
33328         (mark_all_loops_for_removal): Likewise.
33329         (remove_unnecessary_regions): Likewise.
33330         (ira_build): Likewise.
33331         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
33333 2013-02-08  Richard Biener  <rguenther@suse.de>
33335         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
33336         * ipa-pure-const.c (analyze_function): Avoid calling
33337         mark_irreducible_loops twice.
33338         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
33340 2013-02-07  David S. Miller  <davem@davemloft.net>
33342         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
33343         on 'reg'.
33344         * var-tracking.c (vt_add_function_parameter): Test the presence of
33345         HAVE_window_save properly and do not remap argument registers when
33346         we have a leaf function.
33348 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
33350         PR bootstrap/56227
33351         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
33352         instead of "ll".
33353         * config/i386/i386.c (ix86_print_operand): Ditto.
33355 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
33357         * lra-constraints.c (process_alt_operands): Fix recently added comment.
33359 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
33361         PR rtl-optimization/56225
33362         * lra-constraints.c (process_alt_operands): Check that reload hard
33363         reg can hold value for strict_low_part.
33365 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
33367         PR debug/56154
33368         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
33369         dwarf2out_end_function.
33370         (in_first_function_p, maybe_at_text_label_p,
33371         first_loclabel_num_not_at_text_label): New variables.
33372         (dwarf2out_var_location): In the first function find out
33373         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
33374         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
33375         functions.
33377 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
33379         PR rtl-optimization/56178
33380         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
33381         SUBREG of a register.  Tidy up related block of code.
33382         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
33383         note if the source is a register or a SUBREG of a register.
33385 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
33387         PR target/56228
33388         * config/rs6000/rs6000.md (ptrm): New mode attr.
33389         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
33390         call_value_indirect_aix<pttrsize>,
33391         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
33392         m in constraints.
33394 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33396         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
33397         if -bnortl. Convert to strcmp and strncmp.
33399 2013-02-07  Alan Modra  <amodra@gmail.com>
33401         PR target/54009
33402         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
33403         addresses won't wrap when offsetting.
33404         (rs6000_secondary_reload): Provide secondary reloads needed for
33405         wrapping LO_SUM addresses.
33407 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
33409         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
33410         MACH, just __MACH__.
33412 2013-02-06  Richard Biener  <rguenther@suse.de>
33414         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
33415         instead of calling fix_loop_structure.
33417 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
33419         PR middle-end/56217
33420         * omp-low.c (use_pointer_for_field): Return false if
33421         lower_send_shared_vars doesn't generate any copy-out code.
33423 2013-02-06  Tom de Vries  <tom@codesourcery.com>
33425         PR rtl-optimization/56131
33426         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
33427         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
33428         of the label is NULL.  Add comment.
33430 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
33432         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
33434         PR sanitizer/55374
33435         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
33436         (STATIC_LIBTSAN_LIBS): Likewise.
33437         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
33438         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
33439         is defined, don't add anything else beyond that.
33440         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
33441         (LINK_COMMAND_SPEC): Use them.
33443         PR tree-optimization/56205
33444         * tree-stdarg.c (check_all_va_list_escapes): Return true if
33445         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
33446         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
33448 2013-02-05  Richard Biener  <rguenther@suse.de>
33450         PR tree-optimization/53342
33451         PR tree-optimization/53185
33452         * tree-vectorizer.h (vect_check_strided_load): Remove.
33453         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
33454         not disallow peeling for vectorized strided loads.
33455         (vect_check_strided_load): Make static and simplify.
33456         (vect_analyze_data_refs): Adjust.
33457         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
33458         correctly when vectorizing strided loads.
33460 2013-02-05  Richard Biener  <rguenther@suse.de>
33462         * doc/install.texi: Refer to ISL, not PPL.
33464 2013-02-05  Jan Hubicka  <jh@suse.cz>
33466         PR tree-optimization/55789
33467         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
33469 2013-02-05  Jan Hubicka  <jh@suse.cz>
33471         PR tree-optimization/55789
33472         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
33473         the dead call anyway.
33475 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
33477         PR sanitizer/55374
33478         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
33480 2013-02-04  Alexander Potapenko  <glider@google.com>
33481             Jack Howarth  <howarth@bromo.med.uc.edu>
33482             Jakub Jelinek  <jakub@redhat.com>
33484         PR sanitizer/55617
33485         * config/darwin.c (sort_ctor_records): Stabilized qsort
33486         on constructor priority by using original position.
33487         (finalize_ctors): New routine to sort constructors by
33488         priority before use in assemble_integer.
33489         (machopic_asm_out_constructor): Use finalize_ctors if needed.
33491 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
33493         PR libstdc++/54314
33494         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
33495         about visibility on artificial decls.
33496         * config/sol2.c (solaris_assemble_visibility): Likewise.
33498 2013-02-04  Kai Tietz  <ktietz@redhat.com>
33500         PR target/56186
33501         * config/i386/i386.c (function_value_ms_64): Add additional valtype
33502         argument and improve checking of return-argument types for 16-byte
33503         modes.
33504         (ix86_function_value_1): Add additional valtype argument on call
33505         of function_value_64.
33506         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
33507         handling infunction_value_64 function.
33509 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
33511         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
33513 2013-02-04  Richard Biener  <rguenther@suse.de>
33515         PR tree-optimization/56188
33516         * tree-ssa-structalias.c (label_visit): Consider case with
33517         initially non-empty points-to set.
33518         (perform_var_substitution): Dump node mapping and clean up.
33520 2013-02-04  Richard Guenther  <rguenther@suse.de>
33522         PR lto/56168
33523         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
33524         node prevail as last resort.
33525         (lto_symtab_merge_decls): Remove guard on LTRANS here.
33526         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
33528 2013-02-04  Richard Biener  <rguenther@suse.de>
33530         PR tree-optimization/56113
33531         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
33532         Merge into ...
33533         (equiv_class_lookup_or_add): ... this.
33534         (label_visit): Adjust and fix error in previous patch.
33535         (perform_var_substitution): Adjust.
33537 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
33539         * config/sh/divtab.c: Fix formatting and comments throughout the file.
33540         * config/sh/sh4-300.md: Likewise.
33541         * config/sh/sh4a.md: Likewise.
33542         * config/sh/constraints.md: Likewise.
33543         * config/sh/sh.md: Likewise.
33544         * config/sh/netbsd-elf.h: Likewise.
33545         * config/sh/predicates.md: Likewise.
33546         * config/sh/sh-protos.h: Likewise.
33547         * config/sh/ushmedia.h: Likewise.
33548         * config/sh/linux.h: Likewise.
33549         * config/sh/sh.c: Likewise.
33550         * config/sh/superh.h: Likewise.
33551         * config/sh/elf.h: Likewise.
33552         * config/sh/sh4.md: Likewise.
33553         * config/sh/sh.h: Likewise.
33555 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33557         * config/pa/constraints.md: Adjust unused letters.  Change "T"
33558         constraint to match_test floating_point_store_memory_operand().
33559         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
33560         (base14_operand): New.
33561         (floating_point_store_memory_operand): New.
33562         (integer_store_memory_operand): Revise to use base14_operand and
33563         reg_plus_base_memory_operand.
33564         (move_dest_operand): Allow symbolic_memory_operands.
33565         (symbolic_memory_operand): Check for LO_SOM.
33566         (symbolic_operand): Change default case to break.
33567         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
33568         CONST_DOUBLE values to be reloaded by putting them into memory when
33569         the destination is a floating point register.
33570         (movdf): Remove code to handle CONST_DOUBLE.
33571         (movsf): Likewise.
33572         (reload_indf_r1): New.
33573         (reload_insf_r1): New.
33574         Consistently use "Q" and "T" constraints with integer and floating
33575         point move instructions, respectively.
33576         (movdi): Remove FAIL.
33577         Change predicate for source operand unamed DImode move from
33578         general_operand to move_src_operand.
33579         (umulsidi3): Change predicate for destination operand to
33580         register_operand.
33581         Likewise for similar unamed patterns.
33582         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
33583         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
33584         (hppa_legitimize_address): Simplify mask calculation.
33585         (pa_emit_move_sequence): Revised handling of secondary reloads from
33586         REG+D addresses for floating point loads and stores.  Directly handle
33587         loading CONST0_RTX (mode) to a floating point register.
33588         (pa_secondary_reload): Handle reloading DF and SFmode constant values
33589         to floating point registers.  Don't restrict secondary reloads to
33590         floating point registers to integer modes.  Revise some comments and
33591         cleanup some code.
33592         (TARGET_LEGITIMATE_ADDRESS_P): Define.
33593         (pa_legitimate_address_p): New.
33594         (pa_legitimize_reload_address): New.
33595         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
33596         (STRICT_REG_OK_FOR_BASE_P): New.
33597         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
33598         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
33600 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
33601             Andrew Dixie  <andrewd@gentrack.com>
33603         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
33604         flag set.
33606 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
33608         * expmed.c (extract_bit_field_1): Pass the full width of the
33609         structure to get_best_reg_extraction_insn.
33611 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
33613         PR target/54601
33614         * configure.ac (use_cxa_atexit): Add AIX.
33615         * configure: Regenerate.
33617         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
33619 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
33621         PR debug/54793
33622         * final.c (need_profile_function): New variable.
33623         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
33624         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
33625         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
33626         notes, targetm.asm_out.function_prologue doesn't emit anything,
33627         HAVE_prologue and profiler should be emitted before prologue,
33628         set need_profile_function instead of emitting it.
33629         (final_scan_insn): If need_profile_function, emit
33630         profile_function on the first NOTE_INSN_BASIC_BLOCK or
33631         NOTE_INSN_FUNCTION_BEG note.
33633 2013-02-01  Richard Henderson  <rth@redhat.com>
33635         * config/rs6000/rs6000.md (smulditi3): New.
33636         (umulditi3): New.
33638         * config/alpha/alpha.md (umulditi3): New.
33640 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
33642         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
33643         (ASM_OUTPUT_ALIGNED_LOCAL): New.
33645 2013-02-01  Richard Biener  <rguenther@suse.de>
33647         PR tree-optimization/56113
33648         * tree-ssa-structalias.c (label_visit): Reduce work for
33649         single-predecessor nodes.
33651 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
33653         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
33654         range isn't testing for zero.
33656 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
33658         PR middle-end/56113
33659         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
33661 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
33662             Nick Clifton  <nickc@redhat.com>
33664         * config/v850/constraints.md (Q): Define as a memory constraint.
33665         * config/v850/predicates.md (label_ref_operand): New predicate.
33666         (e3v5_shift_operand): New predicate.
33667         (ior_operator): New predicate.
33668         * config/v850/t-v850: Add e3v5 multilib.
33669         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
33670         (v850_gen_movdi): Prototype.
33671         * config/v850/v850.c: Add support for e3v5 architecture.
33672         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
33673         TARGET_V850E_UP.
33674         (construct_save_jarl): Add e3v5 long JARL support.
33675         (v850_adjust_insn_length): New function.  Adjust length of call
33676         insns when using e3v5 instructions.
33677         (v850_gen_movdi): New function: Generate instructions to move a
33678         DImode value.
33679         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
33680         (CPP_SPEC): Define __v850e3v5__ as appropriate.
33681         (TARGET_USE_FPU): Enable for e3v5.
33682         (CONST_OK_FOR_W): New macro.
33683         (ADJUST_INSN_LENGTH): Define.
33684         * config/v850/v850.md (UNSPEC_LOOP): Define.
33685         (attr cpu): Add v850e3v5.
33686         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
33687         (movdi): New pattern.
33688         (movdi_internal): New pattern.
33689         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
33690         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
33691         (cstoresf4): Likewise.
33692         (cstoredf4): Likewise.
33693         (insv): New pattern.
33694         (rotlso3_a): New pattern.
33695         (rotlsi3_b): New pattern
33696         (rotlsi3_v850e3v5): New pattern.
33697         (doloop_begin): New pattern.
33698         (fix_loop_counter): New pattern.
33699         (doloop_end): New pattern.
33700         (branch_normal): Add e3v5 long branch support.
33701         (branch_invert): Likewise.
33702         (branch_z_normal): Likewise.
33703         (branch_z_invert): Likewise.
33704         (branch_nz_normal): Likewise.
33705         (branch_nz_invert): Likewise.
33706         (call_internal_short): Add e3v5 register-indirect JARL support.
33707         (call_internal_long): Likewise.
33708         (call_value_internal_short): Likewise.
33709         (call_value_internal_long): Likewise.
33710         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
33711         (mloop): New option.
33712         * config.gcc: Add support for configuring v840e3v5 target.
33713         * doc/invoke.texi: Document new v850 specific command line options.
33715 2013-01-31  Paul Koning  <ni1d@arrl.net>
33717         PR debug/55059
33718         PR debug/54508
33719         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
33720         children if parent is a class.
33721         (prune_unused_types_prune): Don't add DW_AT_declaration.
33723 2013-01-31  Richard Biener  <rguenther@suse.de>
33725         PR tree-optimization/56157
33726         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
33727         match up operand with SLP child.
33729 2013-01-31  Jason Merrill  <jason@redhat.com>
33731         PR debug/54410
33732         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
33733         parameters the first time.
33734         (gen_scheduled_generic_parms_dies): Check completeness here.
33736 2013-01-31  Richard Biener  <rguenther@suse.de>
33738         PR middle-end/53073
33739         * common.opt (faggressive-loop-optimizations): New flag,
33740         enabled by default.
33741         * doc/invoke.texi (faggressive-loop-optimizations): Document.
33742         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
33743         infer_loop_bounds_from_undefined by it.
33745 2013-01-31  Richard Biener  <rguenther@suse.de>
33747         PR tree-optimization/56150
33748         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
33749         visit virtual operands.
33750         (find_uses_to_rename_bb): Likewise.
33752 2013-01-31  Richard Biener  <rguenther@suse.de>
33754         PR tree-optimization/56150
33755         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
33756         mixed store non-store stmts.
33758 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
33760         PR sanitizer/55374
33761         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
33762         LIBASAN_EARLY_SPEC is defined.
33763         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
33764         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
33765         before %o.
33766         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
33768         PR c++/55742
33769         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
33770         invalid args instead of ICEing on it.
33771         (ix86_valid_target_attribute_tree): Return error_mark_node if
33772         ix86_valid_target_attribute_inner_p failed.
33773         (ix86_valid_target_attribute_p): Return false only if
33774         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
33775         target("default") attribute.
33776         (sorted_attr_string): Change argument from const char * to tree,
33777         merge in all target attribute arguments rather than just one.
33778         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
33779         instead of free.  Avoid using strcat.
33780         (ix86_mangle_function_version_assembler_name): Mangle
33781         target("default") as if no target attribute is present.  Adjust
33782         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
33783         instead of xmalloc and XDELETEVEC instead of free.
33784         (ix86_function_versions): Don't return true if one of the decls
33785         doesn't have target attribute.  If they don't and one of the decls
33786         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
33787         sorted_attr_string caller.  Use XDELETEVEC instead of free.
33788         (ix86_supports_function_versions): Remove.
33789         (make_name): Fix up formatting.
33790         (make_dispatcher_decl): Remove resolver_name and its initialization.
33791         Avoid leaking memory.
33792         (is_function_default_version): Return true if there is
33793         target("default") attribute rather than no target attribute at all.
33794         (make_resolver_func): Avoid leaking memory.
33795         (ix86_generate_version_dispatcher_body): Likewise.
33796         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
33797         * target.def (supports_function_versions): Remove.
33798         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
33799         * doc/tm.texi: Regenerated.
33801 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33803         PR rtl-optimization/56144
33804         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
33805         for values with side effects.
33807 2013-01-30  Richard Biener  <rguenther@suse.de>
33809         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
33810         (sparseset_pop): Likewise.
33811         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
33812         to be able to use quick_push in the worker loop.
33814 2013-01-30  Marek Polacek  <polacek@redhat.com>
33816         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
33818 2013-01-30  Richard Biener  <rguenther@suse.de>
33820         PR lto/56147
33821         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
33823 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
33825         PR tree-optimization/56064
33826         * fixed-value.c (fixed_from_double_int): New function.
33827         * fixed-value.h (fixed_from_double_int): New prototype.
33828         (const_fixed_from_double_int): New static inline function.
33829         * fold-const.c (native_interpret_fixed): New static function.
33830         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
33831         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
33832         (native_encode_fixed): New static function.
33833         (native_encode_expr) <FIXED_CST>: Use it.
33834         (native_interpret_int): Move double_int worker code to...
33835         * double-int.c (double_int::from_buffer): ...this new static method.
33836         * double-int.h (double_int::from_buffer): Prototype it.
33838 2013-01-30  Richard Biener  <rguenther@suse.de>
33840         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
33841         New pointer-map and obstack.
33842         (init_alias_vars): Allocate pointer-map and obstack.
33843         (delete_points_to_sets): Free them.
33844         (find_what_var_points_to): Cache result.
33845         (find_what_p_points_to): Adjust for changed interface of
33846         find_what_var_points_to.
33847         (compute_points_to_sets): Likewise.
33848         (ipa_pta_execute): Likewise.
33850 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33852         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
33853         * configure: Regenerate.
33854         * config.in: Regenerate.
33855         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
33856         #nobits/#progbits if supported.
33858 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
33860         PR target/56121
33861         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
33862         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
33863         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
33865 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33867         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
33868         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
33870 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33872         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
33873         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
33875 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33877         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
33878         declaration.
33879         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
33880         * config/arm/cortex-a7.md: New bypasses using
33881         arm_mac_accumulator_is_result.
33883 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33885         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
33886         (cortex_a7_neon_mla): Likewise.
33887         (cortex_a7_fpfmad): New reservation.
33888         (cortex_a7_fpmacs): Use ffmas and update required units.
33889         (cortex_a7_fpmuld): Update required units and latency.
33890         (cortex_a7_fpmacd): Likewise.
33891         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
33892         (cortex_a7_neon). Likewise.
33893         (bypass) Update participating units.
33895 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33897         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
33898         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
33899         from fmac to ffma.
33900         * config/arm/vfp11.md (vfp_farith): Use ffmas.
33901         (vfp_fmul): Use ffmad.
33902         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
33903         (cortex_r4_fmacd): Use ffmad.
33904         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
33905         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
33906         (cortex_a9_fmacd): Use ffmad.
33907         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
33908         (cortex_a8_vfp_macd): Use ffmad.
33909         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
33910         (cortex_a5_fpmacd): Use ffmad.
33911         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
33912         (cortex_a15_vfp_macd): Use ffmad.
33913         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
33915 2013-01-29  Jason Merrill  <jason@redhat.com>
33917         PR libstdc++/54314
33918         * varasm.c (default_assemble_visibility): Don't warn about
33919         visibility on artificial decls.
33921 2013-01-29  Richard Biener  <rguenther@suse.de>
33923         PR tree-optimization/56113
33924         * tree-ssa-structalias.c (equiv_class_lookup): Also return
33925         the bitmap leader.
33926         (label_visit): Free duplicate bitmaps and record the leader instead.
33927         (perform_var_substitution): Adjust.
33929 2013-01-29  Richard Biener  <rguenther@suse.de>
33931         PR tree-optimization/55270
33932         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
33933         the CFG, schedule loops for fixup.
33935 2013-01-29  Nick Clifton  <nickc@redhat.com>
33937         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
33938         SP_REG.
33940 2013-01-28  Leif Ekblad  <leif@rdos.net>
33942         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
33943         * config/i386/i386.h (TARGET_RDOS): New macro.
33944         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
33945         * config/i386/i386.c (ix86_option_override_internal): For 64bit
33946         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
33947         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
33948         DEFAULT_LARGE_SECTION_THRESHOLD.
33949         * config/i386/i386.md (R14_REG, R15_REG): New constants.
33950         * config/i386/rdos.h: New file.
33951         * config/i386/rdos64.h: New file.
33953 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
33955         PR other/54814
33956         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
33957         TEST_HARD_REG_BIT.
33959 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
33961         PR rtl-optimization/56117
33962         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
33963         call cselib_lookup_from_insn on the MEM before calling
33964         add_insn_mem_dependence.
33966 2013-01-28  Richard Biener  <rguenther@suse.de>
33968         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
33969         to a stmt that didn't have one.
33970         (copy_phis_for_bb): Likewise for PHI arguments.
33971         (copy_debug_stmt): Likewise for debug stmts.
33973 2013-01-28  Richard Biener  <rguenther@suse.de>
33975         PR tree-optimization/56034
33976         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
33977         (partition_builtin_p): Adjust.
33978         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
33979         it is the last partition.
33980         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
33981         up the vertex for the definition.
33982         (classify_partition): Classify whether a partition is a
33983         PKIND_REDUCTION, thus has uses outside of the loop.
33984         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
33985         Merge all PKIND_REDUCTION partitions into the last partition.
33986         (tree_loop_distribution): Seed partitions from reductions as well.
33988 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
33990         PR tree-optimization/56125
33991         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
33992         pow(x,c) into sqrt(x) * powi(x, n/2) or
33993         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
33994         optimizing for size.
33995         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
33996         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
33997         integer.
33999         PR tree-optimization/56094
34000         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
34001         to UNKNOWN_LOCATION while gimplifying expr.
34003 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
34005         PR target/56114
34006         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
34007         operand 0 in movabs insn template for -masm=intel asm alternative.
34008         (*movabs<mode>_2): Ditto for operand 1.
34010 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
34012         PR target/54663
34013         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
34014         of microblaze-c.o
34016 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34018         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
34019         tm_file.
34021 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34023         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
34024         Undef to avoid warning.
34026 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34028         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
34029         * configure: Regenerate.
34031 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
34033         PR tree-optimization/56098
34034         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
34035         for stmts with volatile ops.
34036         (cond_store_replacement): Don't optimize if assign has volatile ops.
34037         (cond_if_else_store_replacement_1): Don't optimize if either
34038         then_assign or else_assign have volatile ops.
34039         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
34040         volatile ops.
34042 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34044         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
34046 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34048         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
34049         missing ':' in asm example.
34051 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
34053         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
34054         entries into lane and laneq entries.
34055         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
34056         Remove AdvSIMD scalar modes.
34057         (aarch64_sq<r>dmulh_laneq<mode>): New.
34058         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
34059         modes.
34060         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
34061         builtin implementations to relfect changes in RTL in aarch64-simd.md.
34062         * config/aarch64/iterators.md (VCOND): New.
34063         (VCONQ): New.
34065 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34067         PR target/54222
34068         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
34069         Add NULL LIBNAME argument to existing definitions.
34070         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
34071         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
34072         * config/avr/avr.c (DEF_BUILTIN): Same.
34073         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
34074         (avr_expand_builtin): Expand to a vanilla call if a libgcc
34075         implementation is available (DECL_ASSEMBLER_NAME is set).
34076         (avr_fold_absfx): New static function.
34077         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
34078         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
34079         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
34080         AVR_BUILTIN_ABSLLK.
34081         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
34082         (abshk, absk, abslk, absllk): Provide as static inline functions.
34084 2013-01-25  Marek Polacek  <polacek@redhat.com>
34086         PR tree-optimization/56035
34087         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
34089 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
34091         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
34092         (*movtf_internal_rex64): Add (!o,C) alternative
34093         (*movxf_internal_rex64): Ditto.
34094         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
34096 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
34098         * doc/invoke.texi: fix typo.
34099         * doc/objc.texi: fix typo.
34101 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
34103         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
34104         for the first two alternatives.
34106 2013-01-24  Diego Novillo  <dnovillo@google.com>
34108         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
34109         (ggc-zone.o): Remove.
34110         * configure.ac: Remove option --with-gc.
34111         * configure: Re-generate.
34112         * doc/install.texi: Remove documentation for --with-gc.
34113         * gengtype.c (write_enum_defn): Remove.  Update all users.
34114         (write_Types_process_field): Remove generation of gt_e_* argument.
34115         (output_type_enum): Remove.  Update all users.
34116         (write_enum_defn): Remove.  Update all users.
34117         (enum alloc_zone): Remove.  Update all users.
34118         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
34119         * ggc-common.c (ggc_splay_alloc): Remove first argument.
34120         Update all callers.
34121         (struct ptr_data): Remove field TYPE.  Update all users.
34122         (gt_pch_note_object): Remove argument TYPE.  Update all users.
34123         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
34124         Update all users.
34125         * ggc-none.c (ggc_alloc_typed_stat): Remove.
34126         (struct alloc_zone): Remove.
34127         (ggc_internal_alloc_zone_stat): Remove.
34128         (ggc_internal_cleared_alloc_zone_stat): Remove.
34129         * ggc-page.c (ggc_alloc_typed_stat): Remove.
34130         (ggc_pch_count_object): Remove last argument.  Update all users.
34131         (ggc_pch_alloc_object): Remove last argument.  Update all users.
34132         (struct alloc_zone): Remove.
34133         * ggc-zone.c: Remove.
34134         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
34135         (struct alloc_zone): Remove.
34136         (ggc_alloc_typed_stat): Remove.
34137         (ggc_alloc_typed): Remove.
34138         (ggc_splay_alloc): Remove first argument.
34139         (rtl_zone): Remove.  Update all users.
34140         (tree_zone): Remove.  Update all users.
34141         (tree_id_zone): Remove.  Update all users.
34142         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
34143         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
34144         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
34145         * tree-ssanames.c: Remove references to zone allocator in comments.
34147 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
34149         * config/avr/avr.c (avr_out_fract): Make register numbers that
34150         might be outside of source operand signed.
34152 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
34154         * config/i386/constraints.md (Yf): New constraint.
34155         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
34156         of f constraint to conditionaly disable x87 register preferences.
34157         (*movdf_internal): Ditto.
34158         (*movsf_internal): Ditto.
34160 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
34162         PR inline-asm/55934
34163         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
34164         that have operands with impossible constraints.
34165         Add a FIXME for a speed-up opportunity.
34166         * lra-constraints.c (process_alt_operands): Verify that a class
34167         selected from constraints on asms is valid for the operand mode.
34168         (curr_insn_transform): Remove incorrect comment.
34170 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
34172         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
34173         TOC operand is a valid symbol ref in the constant pool.
34175 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34177         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
34179 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
34181         PR target/54222
34182         * config/avr/stdfix.h: New file.
34183         * t-avr (stdfix-gcc.h): New rule to build it.
34184         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
34186 2013-01-23  Kostya Serebryany  <kcc@google.com>
34188         * config/darwin.h: remove dependency on
34189         CoreFoundation (asan on Mac OS).
34191 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
34193         PR target/49069
34194         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
34195         instead of cmpdi_operand for first comparison operand.
34196         Don't assert that comparison operands aren't both constants.
34198 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
34200         * doc/install.texi (Downloading the Source): Update references to
34201         downloading separate components.
34203 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
34205         * doc/extend.texi (__int128): Improve grammar.
34207 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
34209         PR target/56028
34210         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
34211         alternative to (o,r).
34212         (*movdi_internal_rex64): Remove (!o,n) alternative.
34213         (DImode immediate->memory splitter): Remove.
34214         (DImode immediate->memory peephole2): Remove.
34215         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
34216         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
34217         alternative to (!o,*r).
34218         (*movtf_internal_sse): New pattern.
34219         (*movxf_internal_rex64): New pattern.
34220         (*movxf_internal): Disable for TARGET_64BIT.
34221         (*movdf_internal_rex64): Remove (!o,F) alternative.
34223 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
34225         PR middle-end/56074
34226         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
34227         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
34228         * tree-vect-loop-manip.c (find_loop_location): Also ignore
34229         stmt locations where LOCATION_LOCUS of the stmt location is
34230         UNKNOWN_LOCATION or BUILTINS_LOCATION.
34232         PR target/55686
34233         * config/i386/i386.md (UNSPEC_STOS): New.
34234         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
34235         *strsetqi_1): Add UNSPEC_STOS.
34237 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
34239         PR c++/56067
34240         * doc/invoke.texi: Remove left over -Wsynth example.
34242 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
34244         PR tree-optimization/56051
34245         * fold-const.c (fold_binary_loc): Don't fold
34246         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
34247         a narrowing conversion, or widening conversion from signed
34248         to unsigned.
34250 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
34252         PR rtl-optimization/56023
34253         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
34254         dependent on debug instruction.
34256 2013-01-21  Martin Jambor  <mjambor@suse.cz>
34258         PR middle-end/56022
34259         * function.c (allocate_struct_function): Call
34260         invoke_set_current_function_hook earlier.
34262 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
34264         * reload1.c (init_reload): Only initialize reload_obstack
34265         during the first call.
34267 2013-01-21  Marek Polacek  <polacek@redhat.com>
34269         * cfgloop.c (verify_loop_structure): Fix up grammar.
34271 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
34273         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
34274         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
34276 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34278         PR target/56058
34279         * config/arm/marvell-pj4.md: Update copyright year.
34280         Fix up use of alu to alu_reg and simple_alu_imm.
34282 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
34284         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
34286 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
34288         PR target/55433
34289         * lra-constraints.c (curr_insn_transform): Don't reuse original
34290         insn for secondary memory move when memory mode should be different.
34292 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34294         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
34295         atomic_storedi_1): New patterns.
34297 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
34299         btver2 pipeline descriptions.
34300         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
34301         descriptions.
34302         * config/i386/i386.md (btver2_decode): New type attributes.
34303         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
34304         type attributes.
34305         * config/i386/btver2.md: New file describing btver2 pipelines.
34307 2013-01-19  Andrew Pinski  <apinski@cavium.com>
34309         PR tree-optimization/52631
34310         * tree-ssa-sccvn (visit_use): Before looking up the original
34311         statement, try looking up the simplified expression.
34313 2013-01-19  Anthony Green  <green@moxielogic.com>
34315         * config/moxie/moxie.c (moxie_expand_prologue): Set
34316         current_function_static_stack_size.
34318 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
34320         PR tree-optimization/56029
34321         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
34322         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
34324 2013-01-18  Sharad Singhai  <singhai@google.com>
34326         PR tree-optimization/55995
34327         * dumpfile.c (dump_loc): Print location only if available.
34328         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
34330 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
34332         PR target/55433
34333         * lra-constraints.c (curr_insn_transform): Reuse original insn for
34334         secondary memory move.
34335         (inherit_reload_reg): Use rclass instead of cl for
34336         check_secondary_memory_needed_p.
34338 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
34340         PR middle-end/56015
34341         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
34342         the case where writing real complex part of target modifies op1.
34344 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
34346         * config/aarch64/aarch64-simd.md
34347         (aarch64_vcond_internal<mode>): Handle unordered cases.
34348         * config/aarch64/iterators.md (v_cmp_result): New.
34350 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
34351             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34353         * config/arm/marvell-pj4.md: New file.
34354         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
34355         * config/arm/arm.md (generic_sched): Add marvell_pj4.
34356         (generic_vfp): Likewise.
34357         * config/arm/arm-cores.def: Add marvell-pj4.
34358         * config/arm/arm-tune.md: Regenerate.
34359         * config/arm/arm-tables.opt: Regenerate.
34360         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
34361         * doc/invoke.texi: Document marvell-pj4.
34363 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
34365         * config/aarch64/arm_neon.h: Map scalar types to standard types.
34367 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
34369         PR debug/54114
34370         PR debug/54402
34371         PR debug/49888
34372         * var-tracking.c (negative_power_of_two_p): New.
34373         (global_get_addr_cache, local_get_addr_cache): New.
34374         (get_addr_from_global_cache, get_addr_from_local_cache): New.
34375         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
34376         heading comment.
34377         (vt_stack_offset_p): Remove.
34378         (vt_canon_true_dep): Always canonicalize loc's address.
34379         (clobber_overlapping_mems): Make sure we have a MEM.
34380         (local_get_addr_clear_given_value): New.
34381         (val_reset): Clear local cached entries.
34382         (compute_bb_dataflow): Create and release the local cache.
34383         Disable duplicate MEMs clobbering.
34384         (emit_notes_in_bb): Clobber MEMs likewise.
34385         (vt_emit_notes): Create and release the local cache.
34386         (vt_initialize, vt_finalize): Create and release the global
34387         cache, respectively.
34388         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
34390 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
34392         PR libmudflap/53359
34393         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
34394         not found in the symtab.
34396 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
34398         PR debug/56006
34399         PR rtl-optimization/55547
34400         PR rtl-optimization/53827
34401         PR debug/53671
34402         PR debug/49888
34403         * alias.c (offset_overlap_p): New, factored out of...
34404         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
34405         the conservative special case for symbolic constants.  Don't
34406         adjust zero sizes on alignment.
34408 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
34410         PR rtl-optimization/52573
34411         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
34412         REG_UNUSED for the same register.
34414 2013-01-17  Richard Biener  <rguenther@suse.de>
34415             Marek Polacek  <polacek@redhat.com>
34417         PR rtl-optimization/55833
34418         * loop-unswitch.c (unswitch_loops): Move loop verification...
34419         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
34420         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
34421         Set it to true when we're removing a loop from hierarchy tree in
34422         an irreducible region.
34423         (fix_bb_placements): Adjust caller.
34424         (fix_loop_placements): Likewise.
34426 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
34428         * config/avr/builtins.def (DEF_BUILTIN): Factor out
34429         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
34430         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
34431         Remove ID.  Adjust comments.
34432         * config/avr/avr-c.c (avr_builtin_name): Remove.
34433         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
34434         * config/avr/avr.c (avr_tolower): New static function.
34435         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
34436         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
34437         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
34438         default expansion.
34440 2013-01-17  Jan Hubicka  <jh@suse.cz>
34442         PR tree-optimization/55273
34443         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
34445 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
34447         PR target/55981
34448         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
34449         store through atomic_store<mode>_1.
34450         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
34452 2013-01-17  Martin Jambor  <mjambor@suse.cz>
34454         PR tree-optimizations/55264
34455         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
34456         for virtual methods.
34457         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
34458         virtual methods before inlining is over.
34459         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
34460         virtual functions.
34461         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
34462         non-virtual.
34464 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
34466         PR rtl-optimization/56005
34467         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
34468         pending reads for prefetch.
34470 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
34472         * config/aarch64/aarch64.md
34473         (*cstoresi_neg_uxtw): New pattern.
34474         (*cmovsi_insn_uxtw): New pattern.
34475         (*<optab>si3_uxtw): New pattern.
34476         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
34477         (*<optab>si3_insn_uxtw): New pattern.
34478         (*bswapsi2_uxtw): New pattern.
34480 2013-01-16  Richard Biener  <rguenther@suse.de>
34482         * tree-inline.c (tree_function_versioning): Remove set but
34483         never used variable.
34485 2013-01-16  Richard Biener  <rguenther@suse.de>
34487         PR tree-optimization/55964
34488         * tree-flow.h (rename_variables_in_loop): Remove.
34489         (rename_variables_in_bb): Likewise.
34490         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
34491         (copy_loop_before): Adjust and delete update-ssa status.
34492         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
34493         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
34494         (rename_variables_in_loop): Remove.
34495         (slpeel_update_phis_for_duplicate_loop): Likewise.
34496         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
34497         use available cfg machinery instead of duplicating it.
34498         Update PHI nodes and perform poor-mans SSA update here.
34499         (slpeel_tree_peel_loop_to_edge): Adjust.
34501 2013-01-16  Richard Biener  <rguenther@suse.de>
34503         PR tree-optimization/54767
34504         PR tree-optimization/53465
34505         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
34506         (vrp_visit_phi_node): For PHI arguments coming via backedges
34507         drop all symbolical range information.
34508         (execute_vrp): Compute backedges.
34510 2013-01-16  Richard Biener  <rguenther@suse.de>
34512         * doc/install.texi: Update CLooG and ISL requirements to
34513         0.18.0 and 0.11.1.
34515 2013-01-16  Christian Bruel  <christian.bruel@st.com>
34517         PR target/55301
34518         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
34519         (broken_move): Handle UNSPECV_SP_SWITCH_B.
34520         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
34522 2013-01-16  DJ Delorie  <dj@redhat.com>
34524         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
34525         (UNSPECV_SP_SWITCH_E): New.
34526         (sp_switch_1): Change to an unspec.
34527         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
34528         replace $r15.
34530 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
34532         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
34533         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
34534         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
34535         (expand_mem_thread_fence): Ditto.
34536         (expand_mem_signal_fence): Ditto.
34537         (expand_atomic_load): Ditto.
34538         (expand_atomic_store): Ditto.
34540 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
34542         PR rtl-optimization/55547
34543         PR rtl-optimization/53827
34544         PR debug/53671
34545         PR debug/49888
34546         * alias.c (memrefs_conflict_p): Set sizes to negative after
34547         AND adjustments.
34549 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
34551         PR target/55940
34552         * function.c (thread_prologue_and_epilogue_insns): Always
34553         add crtl->drap_reg to set_up_by_prologue.set, even if
34554         stack_realign_drap is false.
34556 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34558         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
34559         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
34560         *call): Fix indention.
34562 2013-01-15  Tom de Vries  <tom@codesourcery.com>
34564         PR target/55876
34565         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
34566         Update comment.
34568 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
34570         PR rtl-optimization/55153
34571         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
34573 2013-01-15  Martin Jambor  <mjambor@suse.cz>
34575         PR tree-optimization/55920
34576         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
34577         accesses as grp_to_be_debug_replaced.
34579 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
34581         PR tree-optimization/55920
34582         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
34583         there is non-useless type conversion needed from debug rhs to lhs,
34584         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
34586 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
34587             Mikael Pettersson  <mikpe@it.uu.se>
34589         PR target/43961
34590         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
34591         Thumb.
34592         (ASM_OUTPUT_CASE_LABEL): Remove.
34593         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
34594         * final.c (shorten_branches): Update alignment of labels before
34595         jump tables if CASE_VECTOR_SHORTEN_MODE.
34597 2013-01-15  Richard Biener  <rguenther@suse.de>
34599         PR bootstrap/55961
34600         * system.h: Do not include gmp.h for building host tools.
34602 2013-01-15  Richard Biener  <rguenther@suse.de>
34604         PR middle-end/55882
34605         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
34606         account for bitpos when computing alignment.
34608 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
34610         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
34611         (ix86_target_macros_internal): Likewise.
34613         * config/i386/i386.c (m_CORE2I7): Removed.
34614         (m_CORE_HASWELL): New macro.
34615         (m_CORE_ALL): Likewise.
34616         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
34617         (initial_ix86_arch_features): Likewise.
34618         (processor_target_table): Initializations for Core avx2.
34619         (cpu_names): New names "core-avx2".
34620         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
34621         PROCESSOR_CORE_HASWELL.
34622         (ix86_issue_rate): New case.
34623         (ia32_multipass_dfa_lookahead): Likewise.
34624         (ix86_sched_init_global): Likewise.
34626         * config/i386/i386.h (TARGET_HASWELL): New macro.
34627         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
34628         (processor_type): New PROCESSOR_HASWELL.
34630 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
34632         PR tree-optimization/55955
34633         * tree-vect-loop.c (vectorizable_reduction): Give up early on
34634         *SHIFT_EXPR and *ROTATE_EXPR codes.
34636         PR tree-optimization/48766
34637         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
34638         -ftrapv disable -fwrapv.
34640 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34642         PR target/55974
34643         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
34644         etc. to 1 and not to __flash.
34645         Use LL suffix for __INT24_MAX__ with -mint8.
34646         Use ULL suffix for __UINT24_MAX__ with -mint8.
34648 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34650         * config/avr/avr-arch.h
34651         (struct base_arch_s): Use typedef avr_arch_t instead.
34652         (struct arch_info_s): Use typedef avr_arch_info_t instead.
34653         (struct mcu_type_s): Use typedef avr_mcu_t instead.
34654         * config/avr/avr.c: Same.
34655         * config/avr/avr-devices.c: Same.
34656         * config/avr/driver-avr.c: Same.
34657         * config/avr/gen-avr-mmcu-texi.c: Same.
34658         * config/avr/avr-mcus.def: Adjust comment.
34660 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
34662         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
34663         * config/aarch64/iterators.md (VALLDI): New.
34665 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
34666             Andi Kleen  <ak@linux.intel.com>
34668         PR target/55948
34669         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
34670         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
34671         memmodel flag.
34673 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34675         * config/avr/avr-stdint.h: Remove trailing blanks.
34676         * config/avr/avr-log.h: Same.
34677         * config/avr/avr-arch.h: Same.
34678         * config/avr/avr-devices.c: Same.
34679         * config/avr/avr-dimode.md: Same.
34680         * config/avr/predicates.md: Same.
34681         * config/avr/avr-c.c: Same.  And fix typo.
34683         * config/avr/avr-protos.h: Same.  And:
34684         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
34685         (init_cumulative_args): Rename to avr_init_cumulative_args.
34686         (expand_prologue): Rename to avr_expand_prologue.
34687         (expand_epilogue): Rename to avr_expand_epilogue.
34688         (adjust_insn_length): Rename to avr_adjust_insn_length.
34689         (notice_update_cc): Rename to avr_notice_update_cc.
34690         (final_prescan_insn): Rename to avr_final_prescan_insn.
34691         * config/avr/avr.c: Same.
34692         * config/avr/avr.h: Same.
34693         * config/avr/avr.md: Remove trailing blanks.
34694         (prologue): Use avr_expand_prologue.
34695         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
34697 2013-01-14  Richard Biener  <rguenther@suse.de>
34699         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
34700         verify_location, collect_subblocks): New functions.
34701         (verify_gimple_in_cfg): Verify that locations only reference
34702         BLOCKs in the functions BLOCK tree.
34704 2013-01-14  Richard Biener  <rguenther@suse.de>
34706         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
34707         PHI argument.
34708         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
34709         unshare reference.
34710         (insert_out_of_ssa_copy_on_edge): Likewise.
34711         (rewrite_close_phi_out_of_ssa): Likewise.
34712         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
34713         debug expressions.
34714         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
34715         propagated constants.
34716         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
34717         can not be shared.
34719 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34721         * config/avr/avr-modes.def: Add GPL copyright notice.
34723 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
34725         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
34726         MEMMODEL_MASK to determine memory model.
34727         (atomic_store<mode>): Ditto from operands[2].
34728         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
34730 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
34732         PR fortran/55935
34733         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
34734         (fold_gimple_assign): Don't call unshare_expr here.
34735         (fold_ctor_reference): Call unshare_expr.
34737 2013-01-13  Terry Guo  <terry.guo@arm.com>
34739         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
34740         * doc/fragments.texi: Document MULTILIB_REUSE.
34741         * gcc.c (multilib_reuse): New internal spec.
34742         (set_multilib_dir): Also search multilib from multilib_reuse.
34743         * genmultilib (tmpmultilib3): Refactor code.
34744         (tmpmultilib4): Ditto.
34745         (multilib_reuse): New multilib argument.
34747 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
34749         * Makefile.in: Update copyright.
34751 2013-01-12  Tom de Vries  <tom@codesourcery.com>
34753         PR middle-end/55890
34754         * calls.c (expand_call): Check if arg_nr is valid.
34756 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
34758         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
34759         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
34760         documentation.  Add missing '__' in front of
34761         __builtin_ia32_packssdw256.
34763 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34765         PR target/55719
34766         * config/s390/s390.c (s390_preferred_reload_class): Do not return
34767         NO_REGS for larl operands.
34768         (s390_reload_larl_operand): Use s390_load_address instead of
34769         emit_move_insn.
34771 2013-01-11  Richard Biener  <rguenther@suse.de>
34773         * tree-cfg.c (verify_node_sharing_1): Split out from ...
34774         (verify_node_sharing): ... here.
34775         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
34777 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
34779         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
34780         Substitute TREECHECKING.
34781         * configure: Regenerate.
34782         * Makefile.in (TREECHECKING): New.
34784 2013-01-11  Richard Guenther  <rguenther@suse.de>
34786         PR tree-optimization/44061
34787         * tree-vrp.c (extract_range_basic): Compute zero as
34788         value-range for __builtin_constant_p of function parameters.
34790 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
34792         Update copyright years.
34794 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
34796         PR rtl-optimization/55672
34797         * lra-eliminations.c (mark_not_eliminable): Permit addition with
34798         const to be eliminable.
34800 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
34802         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
34803         * configure: Regenerate.
34805 2013-01-10  Richard Biener  <rguenther@suse.de>
34807         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
34809 2013-01-10  Richard Biener  <rguenther@suse.de>
34811         PR bootstrap/55792
34812         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
34813         locations for virtual PHI arguments.
34814         (rewrite_update_phi_arguments): Likewise.
34816 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
34818         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
34819         on to assembler.
34821 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
34823         PR tree-optimization/55921
34824         * tree-complex.c (expand_complex_asm): New function.
34825         (expand_complex_operations_1): Call it for GIMPLE_ASM.
34827 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34829         PR target/55718
34830         * config/s390/s390.c (s390_symref_operand_p)
34831         (s390_loadrelative_operand_p): Merge the two functions.
34832         (s390_check_qrst_address, print_operand_address): Add parameters
34833         to s390_loadrelative_operand_p invokation.
34834         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
34835         (s390_reload_larl_operand, s390_secondary_reload): Use
34836         s390_loadrelative_operand_p instead of s390_symref_operand_p.
34837         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
34839 2013-01-09  Mike Stump  <mikestump@comcast.net>
34841         * dse.c (record_store): Remove unnecessary assert.
34843 2013-01-09  Jan Hubicka  <jh@suse.cz>
34845         PR tree-optimization/55569
34846         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
34847         * cfgloop.h (scale_loop_profile): Likewise.
34849 2013-01-09  Jan Hubicka  <jh@suse.cz>
34851         PR lto/45375
34852         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
34853         functions.
34854         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
34856 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
34858         PR middle-end/55114
34859         * expr.h (maybe_emit_group_store): Declare.
34860         * expr.c (maybe_emit_group_store): New function.
34861         * builtins.c (expand_builtin_int_roundingfn): Call it.
34862         (expand_builtin_int_roundingfn_2): Likewise.
34864 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
34866         PR rtl-optimization/55829
34867         * lra-constraints.c (match_reload): Add code for absent output.
34868         (curr_insn_transform): Add code for reloads of matched inputs
34869         without output.
34871 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
34873         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
34874         attribute of movddup insn to DF.
34875         (*vec_interleave_lowv2df): Ditto.
34876         (vec_dupv2df): Ditto.
34878 2013-01-09  Jan Hubicka  <jh@suse.cz>
34880         PR tree-optimiation/55875
34881         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
34882         EVERY_ITERATION parameter.
34883         (number_of_iterations_exit): Check if exit is executed every iteration.
34884         (idx_infer_loop_bounds): Similarly here.
34885         (n_of_executions_at_most): Simplify
34886         to only test for cases where statement is dominated by the
34887         particular bound; handle correctly the "postdominance" test.
34888         (scev_probably_wraps_p): Use max loop iterations info
34889         as a global bound first.
34891 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
34892             Nick Clifton  <nickc@redhat.com>
34894         * config/v850/v850.md (cbranchsf4): New pattern.
34895         (cstoresf4): New pattern.
34896         (cbranchdf4): New pattern.
34897         (cstoredf4): New pattern.
34898         (movsicc): Disallow floating point comparisons.
34899         (cmpsf_le_insn): Fix order of operators.
34900         (cmpsf_lt_insn): Likewise.
34901         (cmpsf_eq_insn): Likewise.
34902         (cmpdf_le_insn): Likewise.
34903         (cmpdf_lt_insn): Likewise.
34904         (cmpdf_eq_insn): Likewise.
34905         (cmpsf_ge_insn): Use LE comparison.
34906         (cmpdf_ge_insn): Likewise.
34907         (cmpsf_gt_insn): Use LT comparison.
34908         (cmpdf_gt_insn): Likewise.
34909         (cmpsf_ne_insn): Delete pattern.
34910         (cmpdf_ne_insn): Delete pattern.
34911         * config/v850/v850.c (v850_gen_float_compare): Use
34912         gen_cmpdf_eq_insn for NE comparison.
34913         (v850_float_z_comparison_operator)
34914         (v850_float_nz_comparison_operator): Move from here ...
34915         * config/v850/predicates.md: ... to here.  Move GT and GE
34916         comparisons into v850_float_z_comparison_operator.
34917         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
34918         Delete prototype.
34919         (v850_float_nz_comparison_operator): Likewise.
34921 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34923         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
34924         with calls to gen_insvsi/gen_insvdi.
34926 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
34928         * config/i386/i386.c (initial_ix86_tune_features): Set up
34929         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
34931 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
34932             Jakub Jelinek  <jakub@redhat.com>
34934         PR tree-optimization/48189
34935         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
34936         If nitercst is 0, don't predict the exit edge.
34938 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34940         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
34941         in asm_fprintf with reg_names.
34942         (aarch64_print_operand_address): Likewise.
34943         (aarch64_return_addr): Likewise.
34944         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
34946 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34948         * config/pa/pa.h (VAL_U6_BITS_P): Define.
34949         (INT_U6_BITS): Likewise.
34950         * config/pa/predicates.md (uint6_operand): New predicate.
34951         (shift5_operand, shift6_operand): Likewise.
34952         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
34953         arith32_operand.
34954         (lshrdi3): Use shift6_operand.
34955         (shrpsi4, shrpdi4): New insn patterns.
34956         (extzv): Delete expander.
34957         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
34958         predicates in unamed zero extract patterns.  Tighten common constraint.
34959         (extv): Delete expander.
34960         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
34961         predicates in unamed sign extract patterns.  Tighten common constraint.
34962         (insv): Delete expander.
34963         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
34964         predicates in unamed insert patterns.  Tighten common constraint.
34965         Change uint32_operand predicate to uint6_operand predicate in unamed
34966         DImode pattern to insert constant values of type 1...1xxxx.
34968 2013-01-04  Jan Hubicka  <jh@suse.cz>
34970         PR tree-optimization/55823
34971         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
34972         issue.
34974 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34975             Uros Bizjak  <ubizjak@gmail.com>
34977         PR rtl-optimization/55845
34978         * df-problems.c (can_move_insns_across): Stop scanning at
34979         volatile_insn_p source instruction or give up if
34980         across_from .. across_to range contains any volatile_insn_p
34981         instructions.
34983 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
34985         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
34986         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
34987         Declare.
34988         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
34989         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
34991 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34993         PR fortran/55341
34994         * asan.c (asan_clear_shadow): New function.
34995         (asan_emit_stack_protection): Use it.
34997 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
34999         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
35000         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
35001         with tab instead of space.
35003 2013-01-08  Nick Clifton  <nickc@redhat.com>
35005         * config/rl78/rl78.c (rl78_expand_prologue): Always select
35006         register bank 0 at the start of an interrupt handler.
35007         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
35008         MDBH registers.
35010 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
35012         * config/aarch64/aarch64-simd.md
35013         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
35014         (aarch64_simd_bsl): Likewise.
35015         (aarch64_vcond_internal<mode>): Likewise.
35016         (vcond<mode><mode>): Likewise.
35017         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
35018         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
35020 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
35022         * config/aarch64/aarch64-builtins.c
35023         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
35025 2013-01-08  Martin Jambor  <mjambor@suse.cz>
35027         PR debug/55579
35028         * tree-sra.c (analyze_access_subtree): Return true also after
35029         potentially creating a debug-only replacement.
35031 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35033         PR middle-end/55890
35034         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
35036         PR tree-optimization/54120
35037         * tree-vrp.c (range_fits_type_p): Don't allow
35038         src_precision < precision from signed vr to unsigned_p
35039         if vr->min or vr->max is negative.
35040         (simplify_float_conversion_using_ranges): Test can_float_p
35041         against CODE_FOR_nothing.
35043 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35044             Richard Biener  <rguenther@suse.de>
35046         PR middle-end/55851
35047         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
35048         types instead of just INTEGER_TYPE types.
35050 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
35052         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
35053         TF_SIZE): Define.
35055 2013-01-07  Steve Ellcey  <sellcey@mips.com>
35057         PR target/42661
35058         * config/mips/mips.opt: Change mad to mmad to match documentation.
35060 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35062         PR target/55897
35063         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
35064         .progmemx.data now.
35066 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35068         PR target/55897
35069         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
35070         (avr_addrspace_t): Add .section_name field.
35071         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
35072         array size.
35073         (avr_addrspace): Same.  Initialize .section_name.  Remove last
35074         NULL entry.  Put __memx into .progmemx.data.
35075         (progmem_section_prefix): Remove.
35076         (avr_asm_init_sections): No need to initialize progmem_section.
35077         (avr_asm_named_section): Use avr_addrspace[].section_name to get
35078         section name prefix.
35079         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
35080         retrieve the progmem section.
35081         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
35082         boundary to run over avr_addrspace[].
35083         (avr_register_target_pragmas): Ditto.
35085 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
35087         * varasm.c (output_constant_def_contents): For asan_protect_global
35088         protected strings, adjust DECL_ALIGN if needed, before testing for
35089         anchored symbols.
35090         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
35091         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
35092         normal decls.
35093         (output_object_block): For asan protected decls, emit asan padding
35094         after their contents.
35095         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
35096         (asan_finish_file): Test it here instead.
35098 2013-01-07  Nick Clifton  <nickc@redhat.com>
35099             Matthias Klose  <doko@debian.org>
35100             Doug Kwan  <dougkwan@google.com>
35101             H.J. Lu  <hongjiu.lu@intel.com>
35103         PR driver/55470
35104         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
35106         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
35108         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
35110         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
35112         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
35114 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35116         PR target/54461
35117         * doc/install.texi (Cross-Compiler-Specific Options): Document
35118         --with-avrlibc.
35120 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
35122         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
35123         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
35124         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
35125         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
35126         vqmovun_high_s64): Fix source operand number and update copyright.
35128 2013-01-07  Richard Biener  <rguenther@suse.de>
35130         PR middle-end/55890
35131         * gimple.h (gimple_call_builtin_p): New overload.
35132         * gimple.c (validate_call): New function.
35133         (gimple_call_builtin_p): Likewise.
35134         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35135         Use gimple_call_builtin_p.
35136         (find_func_clobbers): Likewise.
35137         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
35138         (strlen_optimize_stmt): Likewise.
35140 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35142         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
35143         (vld1q_dup_*): Likewise.
35144         (vld1_*): Likewise.
35145         (vld1q_*): Likewise.
35146         (vld1_lane_*): Likewise.
35147         (vld1q_lane_*): Likewise.
35149 2013-01-07  Richard Biener  <rguenther@suse.de>
35151         * lto-streamer.h (LTO_minor_version): Bump to 2.
35153 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35155         * config/aarch64/aarch64-protos.h
35156         (aarch64_const_double_zero_rtx_p): Rename to...
35157         (aarch64_float_const_zero_rtx_p): ...this.
35158         (aarch64_float_const_representable_p): New.
35159         (aarch64_output_simd_mov_immediate): Likewise.
35160         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
35161         move immediate case.
35162         * config/aarch64/aarch64.c
35163         (aarch64_const_double_zero_rtx_p): Rename to...
35164         (aarch64_float_const_zero_rtx_p): ...this.
35165         (aarch64_print_operand): Allow printing of new constants.
35166         (aarch64_valid_floating_const): New.
35167         (aarch64_legitimate_constant_p): Check for valid floating-point
35168         constants.
35169         (aarch64_simd_valid_immediate): Likewise.
35170         (aarch64_vect_float_const_representable_p): New.
35171         (aarch64_float_const_representable_p): Likewise.
35172         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
35173         (aarch64_output_simd_mov_immediate): New.
35174         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
35175         (*movdf_aarch64): Likewise.
35176         * config/aarch64/constraints.md (Ufc): New.
35177         (Y): call aarch64_float_const_zero_rtx.
35178         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
35180 2013-01-07  Richard Biener  <rguenther@suse.de>
35182         PR tree-optimization/55888
35183         PR tree-optimization/55862
35184         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
35185         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
35186         not if it is contained therein.
35188 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35190         * config/avr/t-avr: Typo.
35192 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35194         PR55243
35195         * config/avr/t-avr: Don't automatically rebuild
35196         $(srcdir)/config/avr/t-multilib
35197         $(srcdir)/config/avr/avr-tables.opt
35198         $(srcdir)/doc/avr-mmcu.texi
35199         (avr-mcus): New phony target to build them on request.
35200         (s-avr-mlib, s-avr-mmcu-texi): Remove.
35201         * avr/avr-mcus.def: Adjust comments.
35203 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
35205         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
35207 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
35209         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
35211 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
35213         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
35215 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
35217         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
35218         to generate profiling.
35219         * config/rs6000/aix64.h (LIB_SPEC): Same.
35221 2013-01-04  Andrew Pinski  <apinski@cavium.com>
35223         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
35224         New function.
35225         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
35227 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
35229         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
35230         unconditionally.
35231         (ix86_expand_move): Ditto.
35232         (ix86_zero_extend_to_Pmode): Ditto.
35233         (ix86_expand_call): Ditto.
35234         (ix86_expand_special_args_builtin): Ditto.
35235         (ix86_expand_builtin): Ditto.
35237 2013-01-04  Richard Biener  <rguenther@suse.de>
35239         PR tree-optimization/55862
35240         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
35241         translating them through PHI nodes.
35243 2013-01-04  Martin Jambor  <mjambor@suse.cz>
35245         PR tree-optimization/55755
35246         * tree-sra.c (sra_modify_assign): Do not check that an access has no
35247         children when trying to avoid producing a VIEW_CONVERT_EXPR.
35249 2013-01-04  Marek Polacek  <polacek@redhat.com>
35251         PR middle-end/55859
35252         * opts.c (default_options_optimization): Clarify error message.
35254 2013-01-04  Richard Biener  <rguenther@suse.de>
35256         PR middle-end/55863
35257         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
35258         reassociation.
35260 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35262         PR target/53789
35263         * config/pa/pa.md (movsi): Revert previous change.
35264         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
35265         references.
35267 2013-01-03  Richard Henderson  <rth@redhat.com>
35269         * config/i386/i386.c (ix86_expand_move): Always assign to op1
35270         after eliminating TLS symbols.
35272 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
35274         PR bootstrap/50167
35275         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
35276         * graphite-poly.c (debug_gmp_value): Likewise.
35278 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
35280         PR target/55712
35281         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
35282         selected code model, define __code_mode_small__, __code_model_medium__,
35283         __code_model_large__, __code_model_32__ or __code_model_kernel__.
35284         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
35285         xchg temporary register with %k.  Declare temporary register as
35286         early clobbered.
35287         [__x86_64__]: For medium and large code models, preserve %rbx register.
35289 2013-01-03  Richard Biener  <rguenther@suse.de>
35291         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
35292         (dump_subscript): Adjust.
35293         (finalize_ddr_dependent): Do not dump redundant info.
35294         (analyze_siv_subscript): Adjust.
35295         (subscript_dependence_tester): Likewise.
35296         (compute_affine_dependence): Likewise.
35298 2013-01-03  Richard Biener  <rguenther@suse.de>
35300         Revert
35301         2013-01-03  Richard Biener  <rguenther@suse.de>
35303         PR tree-optimization/55857
35304         * tree-vect-stmts.c (vectorizable_load): Do not setup
35305         re-alignment for invariant loads.
35307         2013-01-02  Richard Biener  <rguenther@suse.de>
35309         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
35310         invariant load do not generate a vector load from the scalar location.
35312 2013-01-03  Richard Biener  <rguenther@suse.de>
35314         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
35315         for not vectorizing.
35316         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
35317         not build INDIRECT_REFs, call get_name once only.
35318         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
35319         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
35321 2013-01-03  Richard Biener  <rguenther@suse.de>
35323         PR tree-optimization/55857
35324         * tree-vect-stmts.c (vectorizable_load): Do not setup
35325         re-alignment for invariant loads.
35327 2013-01-03  Richard Biener  <rguenther@suse.de>
35329         PR lto/55848
35330         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
35331         prefer a built-in decl.
35333 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35335         * gcc.c (process_command): Update copyright notice dates.
35336         * gcov.c (print_version): Likewise.
35337         * gcov-dump.c (print_version): Likewise.
35339         PR rtl-optimization/55838
35340         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
35341         iv0.step, iv1.step and step.
35343 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35344             Marc Glisse  <marc.glisse@inria.fr>
35346         PR tree-optimization/55832
35347         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
35348         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
35349         integer_{one,zero}_node.
35351 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35353         PR debug/54402
35354         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
35355         * var-tracking.c (reverse_op): Don't add reverse ops to
35356         VALUEs that have already
35357         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
35359 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
35361         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
35363 2013-01-02  Teresa Johnson  <tejohnson@google.com>
35365         * dumpfile.c (dump_loc): Print filename with location.
35366         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
35367         new location_t parameter to emit complete unroll message with
35368         new dump framework.
35369         (canonicalize_loop_induction_variables): Compute loops location
35370         and pass to try_unroll_loop_completely.
35371         * loop-unroll.c (report_unroll_peel): New function.
35372         (peel_loops_completely): Use new dump format with location
35373         for main dumpfile message, and invoke report_unroll_peel on success.
35374         (decide_unrolling_and_peeling): Ditto.
35375         (decide_peel_once_rolling): Remove old dumpfile message subsumed
35376         by report_unroll_peel.
35377         (decide_peel_completely): Ditto.
35378         (decide_unroll_constant_iterations): Ditto.
35379         (decide_unroll_runtime_iterations): Ditto.
35380         (decide_peel_simple): Ditto.
35381         (decide_unroll_stupid): Ditto.
35382         * cfgloop.c (get_loop_location): New function.
35383         * cfgloop.h (get_loop_location): Declare.
35385 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
35387         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
35388         NULL.
35390 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35392         PR middle-end/55198
35393         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
35394         BLKmode objects when EXPAND_MEMORY is specified.
35396 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
35398         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
35399         in loop predicate.
35400         (fold_builtin_cpu): Do not share cpu model decls across statements.
35402 2013-01-02  Jason Merrill  <jason@redhat.com>
35404         PR c++/55804
35405         * tree.c (build_array_type_1): Revert earlier change.
35407 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
35409         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
35410         "cortex-a57".
35411         * config/aarch64/aarch64-tune.md: Re-generate.
35413 2013-01-02  Richard Biener  <rguenther@suse.de>
35415         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
35416         invariant load do not generate a vector load from the scalar location.
35418 2013-01-02  Richard Biener  <rguenther@suse.de>
35420         PR bootstrap/55784
35421         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
35422         * configure: Regenerate.
35424 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35426         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
35427         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
35428         (expand_builtin_int_roundingfn_2): Keep the original target around
35429         for the fallback case.
35431 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35433         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
35434         to be clear for sign changes.
35436 2013-01-01  Jan Hubicka  <jh@suse.cz>
35438         * ipa-inline-analysis.c: Fix formatting.
35440 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
35442         PR tree-optimization/55831
35443         * tree-vect-loop.c (get_initial_def_for_induction): Use
35444         gsi_after_labels instead of gsi_start_bb.
35446 Copyright (C) 2013 Free Software Foundation, Inc.
35448 Copying and distribution of this file, with or without modification,
35449 are permitted in any medium without royalty provided the copyright
35450 notice and this notice are preserved.